This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Optimizer bug: virtual memory exhausted [971114, sparc]
- To: egcs-bugs at cygnus dot com
- Subject: Optimizer bug: virtual memory exhausted [971114, sparc]
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Sun, 16 Nov 1997 02:39:23 +0100 (MET)
- Reply-To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
One of our C++ projects (making heavy usage of STL and templates [1])
compiles fine for any optimization level of gcc 2.7.2 as well as both
egcs 971105 and 971114 without optimization on sparc-sun-solaris2.5.1,
usually needing some 20 to 30MB of memory.
As soon, however, as -O1 is used, cc1plus starts growing and growing
until it dies with a "virtual memory exhausted" message:
Memory: 128M real, 472K free, 252M swap in use, 48M swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
9769 pfeifer 1 27 0 318M 100M run 0:49 13.52% cc1plus
Problem is, I have not been able to destill this into some small code
snippet. -- All I can offer is the entire code base (~10000 loc) and my
help. (If required, also an account on our system should be possible.)
How should we proceed?
Gerald
[1] I had to employ -ftemplate-depth-18, if that matters...
--
Gerald Pfeifer (Jerry) Vienna University of Technology
pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/