From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4389 invoked by alias); 9 May 2003 16:36:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4345 invoked by uid 71); 9 May 2003 16:36:01 -0000 Date: Fri, 09 May 2003 16:36:00 -0000 Message-ID: <20030509163601.4343.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Andrew Pinski Subject: Re: c++/10060: ICE on huge file (300k lines) Reply-To: Andrew Pinski X-SW-Source: 2003-05/txt/msg00775.txt.bz2 List-Id: The following reply was made to PR c++/10060; it has been noted by GNATS. From: Andrew Pinski To: "Giovanni Bajo" Cc: Andrew Pinski , , , , , Subject: Re: c++/10060: ICE on huge file (300k lines) Date: Fri, 9 May 2003 12:31:50 -0400 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 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 > > >