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 target/24284] [4.0/4.1 regression] ICE (Segmentation fault)



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-09 14:02 -------
Confirmed.
The backtrace:
#0  0x001bfaf0 in dwarf2out_frame_debug_expr (expr=0x0, label=0x55c1dc
"*.LLCFI0") at ../../gcc/dwarf2out.c:1461
#1  0x001c0de0 in dwarf2out_frame_debug (insn=0x0, after_p=1 '\001') at
../../gcc/dwarf2out.c:1849
#2  0x0022c3f4 in final_scan_insn (insn=0x41e12500, file=0xa36778d0,
optimize=2, prescan=0, nopeepholes=0, seen=0xbffff768) at
../../gcc/final.c:2542
#3  0x0022ad90 in final (first=0x41e0b220, file=0xa36778d0, optimize=2,
prescan=0) at ../../gcc/final.c:1577
#4  0x003ced88 in rest_of_handle_final () at ../../gcc/passes.c:300
#5  0x003d2304 in rest_of_compilation () at ../../gcc/passes.c:1756
#6  0x0009da64 in execute_one_pass (pass=0x547624) at
../../gcc/tree-optimize.c:533
#7  0x0009dbc8 in execute_pass_list (pass=0x547624) at
../../gcc/tree-optimize.c:570
#8  0x0009df88 in tree_rest_of_compilation (fndecl=0x41e708dc) at
../../gcc/tree-optimize.c:668
#9  0x0001d3d0 in c_expand_body (fndecl=0x41e708dc) at ../../gcc/c-decl.c:6608
#10 0x003f5dd0 in cgraph_expand_function (node=0x41e70d14) at
../../gcc/cgraphunit.c:835
#11 0x003f8598 in cgraph_expand_all_functions () at ../../gcc/cgraphunit.c:1706
#12 0x003f89bc in cgraph_optimize () at ../../gcc/cgraphunit.c:1803
#13 0x000204dc in c_write_global_declarations () at ../../gcc/c-decl.c:7586
#14 0x0039ef68 in compile_file () at ../../gcc/toplev.c:1004
#15 0x003a1c58 in do_compile () at ../../gcc/toplev.c:2103
#16 0x003a1cf4 in toplev_main (argc=4, argv=0xbffffd64) at
../../gcc/toplev.c:2135
#17 0x0007ebf8 in main (argc=4, argv=0xbffffd64) at ../../gcc/main.c:35


The insn which we are getting an ICE for:
(insn/f 33 37 34 t.c:3 (set (reg/f:SI 14 %sp)
        (plus:SI (reg/f:SI 14 %sp)
            (reg:SI 1 %g1))) 127 {addsi3} (insn_list:REG_DEP_TRUE 32 (nil))
    (expr_list:REG_DEAD (reg:SI 1 %g1)
        (expr_list:REG_FRAME_RELATED_EXPR (nil)
            (nil))))

We are looking at REG_FRAME_RELATED_EXPR but its expression is null.
The regnote is created around sparc.c:4603 (this is from the 4.0 branch.

Oh, the reason why smaller stacks fail is because the regnote is only created
for stack size greater than 8192.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   GCC host triplet|sparc-linux                 |
 GCC target triplet|                            |sparc-*
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-09 14:02:43
               date|                            |
            Summary|[4.0 4.1 regression] ICE    |[4.0/4.1 regression] ICE
                   |(Segmentation fault)        |(Segmentation fault)
   Target Milestone|---                         |4.0.3


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


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