[Bug bootstrap/14671] [3.3/3.4 regression] caller-save.c:491: internal compiler error: Segmentation fault
dave at hiauly1 dot hia dot nrc dot ca
gcc-bugzilla@gcc.gnu.org
Fri May 28 15:55:00 GMT 2004
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2004-05-27 20:45 -------
Subject: Re: [3.3/3.4 regression] caller-save.c:491: int
> No, but it compiles with these as well. However, I was able to hit
> a similar ICE building pooma-2.4.0:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x08289805 in ggc_set_mark (p=0x8891450) at ../../gcc/gcc/ggc-page.c:525
> 525 L2 = LOOKUP_L2 (p);
> (gdb) bt
> #0 0x08289805 in ggc_set_mark (p=0x8891450) at ../../gcc/gcc/ggc-page.c:525
> #1 0x080e0918 in gt_ggc_ma_alias_invariant (x_p=0x8891450) at gt-alias.h:47
> #2 0x08167b30 in ggc_mark_roots () at ../../gcc/gcc/ggc-common.c:124
> #3 0x08289f07 in ggc_collect () at ../../gcc/gcc/ggc-page.c:1727
> #4 0x080fe10d in cse_main (f=0x1, nregs=-1073748992, after_loop=1,
> file=0x0)
> at ../../gcc/gcc/cse.c:7250
> #5 0x082705f0 in rest_of_compilation (decl=0x417c91c0)
> at ../../gcc/gcc/toplev.c:3059
>
> (gdb) p alias_invariant
> $4 = (rtx *) 0x8891450
> (gdb) p p
> $5 = (const void *) 0x8891450
This appears to be because alias_invariant was not GC allocated. I
think the patch that I posted earlier today will fix this. It's basically
the same as that applied to the trunk except that in 3.3 the arrays are
over allocated to allow for expansion during loop_optimize.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14671
More information about the Gcc-bugs
mailing list