http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56835



Jack Howarth <howarth at nitro dot med.uc.edu> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |howarth at nitro dot

                   |                            |med.uc.edu



--- Comment #3 from Jack Howarth <howarth at nitro dot med.uc.edu> 2013-04-09 
20:33:39 UTC ---

I can't reproduce this crash with the fink build of gcc 4.8.0 on

x86_64-apple-darwin12. Notice that MacPorts is building the their gcc48 package

with additional change of...



https://trac.macports.org/browser/trunk/dports/lang/gcc48/files/libstdc%2B%2B-configure-timespec.patch



to get the _GLIBCXX_USE_CLOCK_MONOTONIC defined in config.h. This is claimed to

be in order to get  libstdc++ to use nanosleep. However, a different fix was

checked in...



r192335 | redi | 2012-10-10 19:12:10 -0400 (Wed, 10 Oct 2012) | 6 lines



2012-10-10  Jack Howarth  <howa...@bromo.med.uc.edu>

            Jonathan Wakely  <jwakely....@gmail.com>



        * config/os/bsd/darwin/os_defines.h: Define _GLIBCXX_USE_NANOSLEEP

        and _GLIBCXX_USE_SCHED_YIELD.

        * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add comment.



which results in nanosleep being used on darwin by default...



% cd

/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin12.3.0/libstdc++-v3/src/c++11

% nm thread.o | grep nanosleep

                 U _nanosleep

Reply via email to