-O2 -Wall give virtual memory exhausted

Jason Merrill jason@cygnus.com
Sun Dec 7 01:09:00 GMT 1997


>>>>> Bill Gribble <grib@cs.utexas.edu> writes:

> Jason Merrill <jason@cygnus.com> writes:
>> >>>>> Yotam Medini <yotamm@tmai.com> writes:
>> 
>> > Small example that gives:  virtual memory exhausted
>> > Note: Without -O2 or -Wall compilation passes!
>> 
>> That's in the FAQ.

> "It's in the FAQ" is not terribly informative.  Nor is the FAQ entry,
> which gives the impression that one had best get used to this behavior
> because it's just your own damn fault for writing "template heavy"
> code in "large" source files.

I don't see anything in the entry that blames the user, though I suppose
the words "known bug" could be added.  I've just gotten tired of explaining
the problem.  It's a frequently asked question (or frequently reported
bug).  That's what the FAQ is there for.

> Has this problem taken up permanent residence in the FAQ, along with
> other issues that will get fixed "eventually"?  Or is it something
> that's actually near the top of someone's queue of things to work on?

It's not at the top of my queue.  I've explained the problem in detail on
the egcs list; anyone is welcome to take a crack at it, but I only have so
much time in the day, and there are plenty of issues that I feel are more
important.  Like code-gen problems.  Or most anything else that doesn't
have such a simple workaround.  Your sarcasm isn't particularly helpful,
either.

Jason



More information about the Gcc-bugs mailing list