http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52569
Bug #: 52569 Summary: [4.8 Regression] bootstrap fails on x86_64-apple-darwin10 at revision 185261 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: domi...@lps.ens.fr CC: ia...@gcc.gnu.org, rguent...@suse.de Host: x86_64-apple-darwin10 Target: x86_64-apple-darwin10 Build: x86_64-apple-darwin10 Bootstrapping revision 185261 on x86_64-apple-darwin10 fails with: /opt/gcc/build_w/./gcc/xgcc -B/opt/gcc/build_w/./gcc/ -B/opt/gcc/gcc4.8w/x86_64-apple-darwin10.8.0/bin/ -B/opt/gcc/gcc4.8w/x86_64-apple-darwin10.8.0/lib/ -isystem /opt/gcc/gcc4.8w/x86_64-apple-darwin10.8.0/include -isystem /opt/gcc/gcc4.8w/x86_64-apple-darwin10.8.0/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -pipe -fno-common -I. -I. -I../.././gcc -I../../../work/libgcc -I../../../work/libgcc/. -I../../../work/libgcc/../gcc -I../../../work/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o unwind-dw2-fde-darwin_s.o -MT unwind-dw2-fde-darwin_s.o -MD -MP -MF unwind-dw2-fde-darwin_s.dep -DSHARED -fexceptions -c ../../../work/libgcc/config/unwind-dw2-fde-darwin.c In file included from ../../../work/libgcc/config/unwind-dw2-fde-darwin.c:36:0: ../../../work/libgcc/unwind-dw2-fde.h: In function 'last_fde': ../../../work/libgcc/unwind-dw2-fde.h:173:10: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] In file included from ../../../work/libgcc/config/unwind-dw2-fde-darwin.c:47:0: ../../../work/libgcc/unwind-dw2-fde.c: In function 'init_object_mutex': ../../../work/libgcc/unwind-dw2-fde.c:57:3: warning: implicit declaration of function '__GTHREAD_MUTEX_INIT_FUNCTION' [-Wimplicit-function-declaration] ../../../work/libgcc/unwind-dw2-fde.c: In function 'init_object_mutex_once': ../../../work/libgcc/unwind-dw2-fde.c:63:3: error: unknown type name '__gthread_once_t' ../../../work/libgcc/unwind-dw2-fde.c:63:34: error: '__GTHREAD_ONCE_INIT' undeclared (first use in this function) ../../../work/libgcc/unwind-dw2-fde.c:63:34: note: each undeclared identifier is reported only once for each function it appears in ../../../work/libgcc/unwind-dw2-fde.c:64:3: warning: implicit declaration of function '__gthread_once' [-Wimplicit-function-declaration] ../../../work/libgcc/config/unwind-dw2-fde-darwin.c: At top level: ../../../work/libgcc/config/unwind-dw2-fde-darwin.c:279:1: warning: no previous prototype for '_darwin10_Unwind_FindEnclosingFunction' [-Wmissing-prototypes] This is likely due to revision 185231 Author: rguenth Date: Mon Mar 12 14:23:27 2012 UTC (5 hours, 21 minutes ago) Changed paths: 6 Log Message: 2012-03-12 Richard Guenther <rguent...@suse.de> * gthr.h (__GTHREAD_MUTEX_INIT_FUNCTION): Adjust specification. * gthr-posix.h (__GTHREAD_MUTEX_INIT_FUNCTION): Define. (__gthread_mutex_init_function): New function. * gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Define. PR gcov/49484 * libgcov.c: Include gthr.h. (__gcov_flush_mx): New global variable. (init_mx, init_mx_once): New functions. (__gcov_flush): Protect self with a mutex. (__gcov_fork): Re-initialize mutex after forking. * unwind-dw2-fde.c: Change condition under which to use __GTHREAD_MUTEX_INIT_FUNCTION.