This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/46510] [4.6 Regression] r166812 breaks bootstrap on x86_64-apple-darwin10


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

--- Comment #6 from Jack Howarth <howarth at nitro dot med.uc.edu> 2010-11-17 16:34:33 UTC ---
(In reply to comment #5)
> Can you, please, try if the following works?
> Index: tree-emutls.c
> ===================================================================
> --- tree-emutls.c       (revision 166864)
> +++ tree-emutls.c       (working copy)
> @@ -324,7 +324,8 @@ new_emutls_decl (tree decl)
>        record_references_in_initializer (to, false);
>      }
> 
> -  varpool_finalize_decl (to);
> +  if (!DECL_EXTERNAL (to))
> +    varpool_finalize_decl (to);
>    return to;
>  }
> 
> We should not finalize external vars.

Converts the ICE to a segfault...

libtool: compile:  /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./gcc/xgcc
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./gcc/
-B/sw/lib/gcc4.6/x86_64-apple-darwin10.5.0/bin/
-B/sw/lib/gcc4.6/x86_64-apple-darwin10.5.0/lib/ -isystem
/sw/lib/gcc4.6/x86_64-apple-darwin10.5.0/include -isystem
/sw/lib/gcc4.6/x86_64-apple-darwin10.5.0/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-4.6-20101117/libgomp
-I../../../gcc-4.6-20101117/libgomp/config/bsd
-I../../../gcc-4.6-20101117/libgomp/config/posix
-I../../../gcc-4.6-20101117/libgomp -Wall -pthread -Werror -g -O2 -MT loop.lo
-MD -MP -MF .deps/loop.Tpo -c ../../../gcc-4.6-20101117/libgomp/loop.c 
-fno-common -DPIC -o .libs/loop.o
../../../gcc-4.6-20101117/libgomp/barrier.c: In function 'GOMP_barrier':
../../../gcc-4.6-20101117/libgomp/barrier.c:41:1: internal compiler error:
Segmentation fault


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]