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]
Other format: [Raw text]

Re: c/8395: gcc 2.95.4 and 3.2 generate wrong code for double onintel


> 2. I hope we all agree on the fact that the output produced by
>    a (sequential) C program is the same for a given input,
>    regardless of the compilation options that are used.

Absolutely false!

C does not specify the order in which mathematical expressions are
evaluated, unless the programmer makes these completely explicity.

And indeed compiling with optimizations turned on can eliminate many
subexpressions, cause compile-time evaluatiosn, register sorage etc, which
can also change results.

Bruce Allen


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