[Bug c++/12624] [3.4 Regression] [unit-at-a-time] ICE in notice_global_symbol

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 23 06:41:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |c++
  GCC build triplet|ia64-unknown-linux-gnu      |
   GCC host triplet|ia64-unknown-linux-gnu      |
 GCC target triplet|ia64-unknown-linux-gnu      |
           Keywords|                            |build, ice-on-valid-code
            Summary|Gcc failed to bootstrap on  |[3.4 Regression] [unit-at-a-
                   |ia64                        |time] ICE in
                   |                            |notice_global_symbol
   Target Milestone|---                         |3.4


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-23 06:14 -------
I can reproduce this with the simplifed testcase on powerpc-apple-darwin so this is generic bug 
not effecting only ia64.
Here is the backtrace I have:

#0  0x001e877c in notice_global_symbol (decl=0x41831d20) at /Volumes/UFS_Partition/pinskia/
src/fsf/gcc-clean/src/gcc/varasm.c:1067
#1  0x003145c4 in cgraph_varpool_mark_needed_node (node=0x41833018) at /Volumes/
UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cgraph.c:476
#2  0x002fce10 in rest_of_decl_compilation (decl=0x41831d20, asmspec=0x41015a98 "r13", 
top_level=1, at_end=0) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/toplev.c:
1950
#3  0x00021428 in cp_finish_decl (decl=0x41831d20, init=0x0, asmspec_tree=0x41831d20, 
flags=0) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/decl.c:4577
#4  0x0005912c in cp_parser_init_declarator (parser=0x440000, decl_specifiers=0x450000, 
prefix_attributes=0x0, function_definition_allowed_p=4521984, member_p=false, 
declares_class_or_enum=1099111712, function_definition_p=0x41015a98) at /Volumes/
UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:9492
#5  0x00059454 in cp_parser_simple_declaration (parser=0x41015a98, 
function_definition_allowed_p=1099111712) at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-
clean/src/gcc/cp/parser.c:6156
#6  0x00051b34 in cp_parser_block_declaration (parser=0x41831af0, statement_p=false) at /
Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:6072
#7  0x0005a7cc in cp_parser_declaration (parser=0x41831af0) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:5992
#8  0x0005aabc in cp_parser_declaration_seq_opt (parser=0x41831af0) at /Volumes/
UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cp/parser.c:5901
#9  0x0005ac98 in c_parse_file () at /Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
cp/parser.c:2163
#10 0x000b1034 in c_common_parse_file (set_yydebug=1099111712) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/c-opts.c:1226
#11 0x003115f4 in toplev_main (argc=4453932, argv=0x41831af0) at /Volumes/UFS_Partition/
pinskia/src/fsf/gcc-clean/src/gcc/toplev.c:1830
#12 0x000028a0 in _start (argc=15, argv=0xbffffba0, envp=0xbffffbe0) at /SourceCache/Csu/
Csu-46/crt.c:267
#13 0x00002714 in start ()

Also can reproduce with this on i686-pc-linux:
register int foo __asm__ ("ebx");

>From Phil's regression hunter with that testcase: Search converges between 2003-08-18-trunk 
(#376) and 2003-08-19-trunk (#377).

You just need the option -funit-a-at-time flag to reproduce this.



More information about the Gcc-bugs mailing list