possible compiler bug

Robert Dewar dewar@adacore.com
Sun May 1 20:35:00 GMT 2005


Diego Novillo wrote:
> On Sun, May 01, 2005 at 02:16:27PM -0400, Friends wrote:
> 
> 
>>Only when I compile with an optimization level of "O2" or "O3" does the 
>>program exit with a memory access error.
>>
> 
> It may be a bug in GCC and it may also be a bug in your program
> (some problems like aliasing bugs only are exposed at higher
> levels of optimization).

Also uninitialized variable problems often show up only with
optimization turned on (registers tend to be "more" uninitialized
than memory :-)



More information about the Gcc mailing list