c++/10060: ICE on huge file (300k lines)

Giovanni Bajo giovannibajo@libero.it
Fri May 9 13:16:00 GMT 2003


Andrew Pinski <pinskia@physics.uc.edu> wrote:

>>  00281958 ggc_alloc (55, 0, 0, 550404, 0, 0)
>>  00129f98 copy_rtx_if_shared (0, 17527728, 0, 33a5c8, 2, 55) + 170
>>  00129f10 copy_rtx_if_shared (17527710, 17527b60, 0, 1, 33a5c8, 4c) +
>> e8
>>  00129f10 copy_rtx_if_shared (0, 17527f98, 0, 0, 33a5c8, 3) + e8
>>  00129f10 copy_rtx_if_shared (0, 175303d8, 0, 0, 33a5c8, 3) + e8
>>  00129f10 copy_rtx_if_shared (0, 17530810, 0, 0, 33a5c8, 3) + e8

> This looks like a stack overflow, a temporary fix is to up the limit on
> the stacksize.
> The real fix is to change copy_rtx_if_shared to be non-recursive.

I'm not confident with internals of GCC, but I guess this bug should be
moved to the "middle-end" section. Do you agree, Andrew?

Giovanni Bajo



More information about the Gcc-bugs mailing list