This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g++ memory bug.


> 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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]