Re: Stupid Compiler Tricks

From: Sammy (samedi@DHC.NET)
Date: 05/21/98


On Tue, 19 May 1998, James Turner wrote:

> Downside of not using -O is that gcc can't follow data.  Basically it
> won't warn for possible use of uninitialized data plus a few other
> things I believe.  Turning it on can help with compile-time warnings
> at the cost of debugging.  Sometimes it's useful to have it on,
> other times not.

I'm not recommending removing optimization.  I now have a makefile option
to compile with optimization off for debugging.  I'm very tempted to try
to find this particular optimization in the gcc source and remove it,
since I don't see any flags to turn it off at the command line.

Sam


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST