options -O1 and -O2 produce different results

Janka Erich janka@statistik.wu-wien.ac.at
Tue Jul 4 02:07:00 GMT 2000


c-code

Dear reader,

envoronment:
linux 
Intel PII
Version: 2.95.1

compiling err.c with the options
-Wall -O1 -lm
-Wall -O2 -lm
produced programs which differ in output.

err.c is the shortest possible version of the original code reproducing that
behavior. 
omitting the statement:
printf("%f \n", bm /(bm+w) );
won't produce different output.

yours,
erich janka


-------------- next part --------------
A non-text attachment was scrubbed...
Name: err.c
Type: text/x-c
Size: 730 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000704/27878ed3/attachment.bin>


More information about the Gcc-bugs mailing list