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]

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


That seems like a good idea, since copy_rtx_if_shared is in emit-rtl.c.


Thanks, Andrew Pinski


On Friday, May 9, 2003, at 09:10 US/Eastern, Giovanni Bajo wrote:


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





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