http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51705
Andreas Tobler <andreast at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andreast at gcc dot gnu.org
--- Comment #17 from Andreas Tobler <andreast at gcc dot gnu.org> 2011-12-30
10:45:38 UTC ---
With the below 'hack' I'm able to bootstrap on x86_64-*-freebsd10.0.
I'm not sure why my system does not like the original four escape backslashes
in the select and sed line.
The diff between the sys/cdefs.h and the fixed sys/cdefs.h looks like this:
-#define _Noreturn [[noreturn]]
+#define _Noreturn __dead2
+ * g++ -std=c++11 defines __cplusplus to 201103L, which lies about
+ * the level of support g++ has for the C++11 standard.
+ */
+fix = {
+ hackname = cdef_cplusplus;
+ mach = "*-*-freebsd10.*";
+ files = sys/cdefs.h;
+ select = "\\[\\[noreturn\\]\\]";
+ sed = "s/\\[\\[noreturn\\]\\]/__dead2/";
+ test_text = "#define _Noreturn __dead2";
+};
+/*