This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/10323: The preprocessor consumes all the memory
- From: Zack Weinberg <zack at codesourcery dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 7 Apr 2003 06:46:00 -0000
- Subject: Re: preprocessor/10323: The preprocessor consumes all the memory
- Reply-to: Zack Weinberg <zack at codesourcery dot com>
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