[v3 patch] fix PR43865

Jonathan Wakely jwakely.gcc@gmail.com
Tue Apr 27 23:01:00 GMT 2010


This fixes freestanding builds

2010-04-27  Jonathan Wakely  <jwakely.gcc@gmail.com>

        PR libstdc++/43865
        * include/c_global/cstdlib (abort, exit): _GLIBCXX_NORETURN typo.

Tested x86_64/Linux with --disable-hosted-libstdcxx

Checked in to trunk, it's a regression against 4.4 so I'll check in to
the 4.5 branch too once I've bootstrapped and tested there.
-------------- next part --------------
Index: include/c_global/cstdlib
===================================================================
--- include/c_global/cstdlib	(revision 158803)
+++ include/c_global/cstdlib	(working copy)
@@ -57,9 +57,9 @@
 
 _GLIBCXX_BEGIN_NAMESPACE(std)
 
-  extern "C" void abort(void) throw () _GLIBC_NORETURN;
+  extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
   extern "C" int atexit(void (*)()) throw ();
-  extern "C" void exit(int) throw () _GLIBC_NORETURN;
+  extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
 
 _GLIBCXX_END_NAMESPACE
 


More information about the Gcc-patches mailing list