migrate to c++11
authorAndrew Waterman <waterman@cs.berkeley.edu>
Wed, 13 Feb 2013 06:59:56 +0000 (22:59 -0800)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Wed, 13 Feb 2013 06:59:56 +0000 (22:59 -0800)
configure
configure.ac
riscv/common.h

index ceffbf749b43e0c3e8f6794a2868dc40a6acc996..da2d49c69525597ca65325a75e58dd91142e653c 100755 (executable)
--- a/configure
+++ b/configure
@@ -4008,7 +4008,7 @@ fi
 
 CFLAGS="-Wall -O2 -Wno-unused"
 
-CXXFLAGS="-Wall -O2 -Wno-pmf-conversions"
+CXXFLAGS="-Wall -O2 -std=c++0x -Wno-pmf-conversions"
 
 
 #-------------------------------------------------------------------------
index 4a124694cfea88f85075208258117f183fc0abd3..94d9980b2d8fd7d0e14b01e7c433e58ba96b9e0e 100644 (file)
@@ -72,7 +72,7 @@ AC_HEADER_STDC
 #-------------------------------------------------------------------------
 
 AC_SUBST([CFLAGS],  ["-Wall -O2 -Wno-unused"])
-AC_SUBST([CXXFLAGS],["-Wall -O2 -Wno-pmf-conversions"])
+AC_SUBST([CXXFLAGS],["-Wall -O2 -std=c++0x -Wno-pmf-conversions"])
 
 #-------------------------------------------------------------------------
 # MCPPBS subproject list
index 801baf8d677c9aba79727dd62cad079e7cc545d8..03f8c8e1702e6397b697612c689a71ca757246e0 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef _RISCV_COMMON_H
 #define _RISCV_COMMON_H
 
-#define static_assert(x)       switch (x) case 0: case (x):
-
 #define   likely(x) __builtin_expect(x, 1)
 #define unlikely(x) __builtin_expect(x, 0)