This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

options -O1 and -O2 produce different results


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]