This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
options -O1 and -O2 produce different results
- To: bug-gcc at gnu dot org
- Subject: options -O1 and -O2 produce different results
- From: Janka Erich <janka at statistik dot wu-wien dot ac dot at>
- Date: Tue, 4 Jul 2000 11:06:46 +0200 (CEST)
- Reply-To: janka at statistik dot wu-wien dot ac dot at
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