This is the mail archive of the gcc@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]

Re: That foo() stuff.



> I just ran the same code on both a Solaris box and my i586 machine. 
> Both produces different results - UH OH!!! 

Please don't send any more messages concerning this "problem".  It has
already been correctly diagnosed and explained ... you are writing
an invalid program.  You will get different results, and this is not a
bug or a problem.  The problem is with the input source code.

The compiler may choose, based on very specific features of the internal
RTL, which function argument to evaluate first.  It is free to do so,
and the decision may come out different on a machine with many registers
than on a machine with few registers.



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