This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ memory bug.
- To: mark at markmitchell dot com
- Subject: Re: g++ memory bug.
- From: mrs at wrs dot com (Mike Stump)
- Date: Fri, 8 Jan 1999 07:36:20 -0800
- Cc: Jose dot Gomes at sophia dot inria dot fr, Theodore dot Papadopoulo at sophia dot inria dot fr, egcs-bugs at cygnus dot com, egcs-patches at cygnus dot com
> Date: Thu, 7 Jan 1999 23:28:44 -0800
> From: Mark Mitchell <mark@markmitchell.com>
> IMO, all such limits should be user-configurable. I'm always
> distressed to see things like the following (made-up) code:
>
> /* If there are more than 2000 instructions, don't inline this
> function. That's too big to be worth inlining. */
> if (num_insns > 2000)
> return;
Uhm, you should have flamed me for the obviously made up:
max_insns *= 100;
stuff. I admit that I pulled this one out of thin air, and can't do
much in the way to defend it. Maybe the number should be 1000, maybe
42... Maybe configurable via a flag, maybe...