This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
memory explosion with -O1 (was: egcs-1.0 Release)
Gerald --
>>>>> "Gerald" == Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:
Gerald> On Mon, 8 Dec 1997, Tudor Hulubei wrote:
>> I just tried the new snapshot (971207) and it seems that the
>> memory problem when using lots of templates is still present.
>> cc1plus goes up to about 138Mb and then sometimes reports
>> "memory exhausted",
Gerald> I can confirm this report:
Gerald> On sparc-sun-solaris2.5.1 with egcs-2.91.02 971206 I
Gerald> experience exactly the same problem with "-O1
Gerald> -ftemplate-depth-20" only, no -Wall etc!
Gerald> I have reported this problem, which doesn't occur with
Gerald> either gcc 2.7.2 or egcs without optimizations,
Gerald> before. (It's available as
Gerald> http://www.cygnus.com/ml/egcs-bugs/1997-Nov/0142.html.)
Gerald> If anyone would like to have a look at my sources, just
Gerald> let me know!
Please send me, and just me, not the list, the .ii file generated when
you compile with -save-temps. I'll see if I can figure anything out
about where the memory is going. I don't guarantee anything, but I'll
see what I can do.
Again, please be sure not to send the preprocessed source to this
list, since you earlier message indicated that it was quite large.
Thanks,
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu