This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Continued: egcs-971201: testsuite results for i586-pc-linux-gnulibc1
- To: mlawson at drfmc dot ceng dot cea dot fr (Max Lawson), egcs at cygnus dot com, law at cygnus dot com
- Subject: Re: Continued: egcs-971201: testsuite results for i586-pc-linux-gnulibc1
- From: Jason Merrill <jason at cygnus dot com>
- Date: 02 Dec 1997 18:08:52 -0800
- References: <9712021644.AA20857.cygnus.egcs@drfmc.ceng.cea.fr>
>>>>> Max Lawson <mlawson@drfmc.ceng.cea.fr> writes:
> $g++ -Wall -O test.cc
> test.cc: In function `int main()':
> test.cc:10: virtual memory exhausted
As I said before, you need to add -Wno-return-type or the old memory
explosion bug resurfaces. This is a known bug. The problem is that
save_for_inline_copying wastes a ridiculous amount of memory in the
presence of recursive function definitions, which you get with templates.
With -Wno-return-type, we don't need to use save_for_inline_copying.
Jeff, want to add something to the release notes to the effect that
-Wreturn-type and -pedantic cause template-heavy code to suffer from
compiler explosion?
Jason