[BUG][GCC] *Serious* optimization bug: Any gcc specialists out there?

Arjen van Elteren ak.elteren at quicknet.nl
Fri Aug 4 19:22:48 UTC 2000


Hi stephan,

I've got the same problem (also the same version)
but could solve it adding
#define __NO_MATH_INLINES
before 
#include <math.h>

Seems to work ok after this...
See also the libc info pages.

Arjen

On Fri, 4 Aug 2000, Stephan Rudlof wrote:

> Dear Squeakers,
> 
> please compile
> <SNIP>
> 
> with
> 	gcc -O testDoubles.c -lm
> and without optimization:
> 	gcc testDoubles.c -lm
> ;
> the result strongly differs! (the optimized version gives the *wrong*
> result)
> 
> At least for:
> sr at Klaus:~/tmp > gcc -v
> Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> .
>  <SNIP>






More information about the Squeak-dev mailing list