This is the mail archive of the gcc-prs@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: preprocessor/10323: The preprocessor consumes all the memory


The following reply was made to PR preprocessor/10323; it has been noted by GNATS.

From: Zack Weinberg <zack at codesourcery dot com>
To: Neil Booth <neil at daikokuya dot co dot uk>
Cc: lu_zero at gentoo dot org,  gcc-gnats at gcc dot gnu dot org
Subject: Re: preprocessor/10323: The preprocessor consumes all the memory
Date: Sun, 06 Apr 2003 23:36:31 -0700

 Neil Booth <neil at daikokuya dot co dot uk> writes:
 
 > Zack Weinberg wrote:-
 >
 >> lu_zero at gentoo dot org writes:
 >> 
 >> > Preprocessing altivec code it just consumes all the memory and then
 >> > dies reporting:
 >> > cpp0: Cannot allocate 262144112 bytes after allocating 7222368 bytes
 >> 
 >> I can confirm this with mainline, it looks like infinite recursion in
 >> the macro expander.  Neil, can you take a look?
 >
 > I'm pretty certain that the macro expander doesn't recurse or loop.
 >
 > I've looked at it briefly.  It looks like everything is OK - the expansion
 > is just 100s of megabytes or even gigabytes big.
 
 Oh, ok, I probably just got sick of waiting and ^C-ed it before it
 finished / ran out of memory.
 
 zw


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