On Mon, Sep 8, 2008 at 12:56 PM, Klaus Grue <[EMAIL PROTECTED]> wrote:
> On Mon, 8 Sep 2008, Andrew Haley wrote:
>
>> Klaus Grue wrote:
>>
>>> Is this a known problem:
>>>
>>> After upgrading to gcc 4.3.1, I can no longer compile a function whose
>>> source code is 0.7 Megabyte before preprocessing and 3.5 Megabyte after
>>> preprocessing.
>>>
>>> The function (named "testsuite") is just a long list of statements
>>> essentially of form if(!condition){complain();exit();}
>>>
>>> The behaviour is: CPU time goes to 100%, then RAM size grows to
>>> 1 Gigabyte, then swap space starts growing and CPU time goes to 10%.
>>>
>>> On my previous gcc (4.2.something, I think), compilation went fine.
>>
>> Isn't this simply that you need more RAM?  Sure, as gcc grows and we
>> add more optimizations, you need more memory, but there's no
>> explicit limitation.  Is this with -O0?  If so, I think that's a
>> bug.
>
> Thanks for the reply.
>
> I compiled without -Ox.
>
> To double check, I tried with -O0 which gave the same result as not using
> -Ox.
>
> By the way, the source text is a http://logiweb.eu/grue/lgwam.c
> and is compiled with gcc -ldl -o lgwam lgwam.c

I suggest you file a bugreport on gcc.gnu.org/bugzilla.

Thanks,
Richard.

Reply via email to