This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: That foo() stuff.
- To: alex dot buell at tahallah dot demon dot co dot uk (Alex Buell)
- Subject: Re: That foo() stuff.
- From: Joe Buck <jbuck at Synopsys dot COM>
- Date: Mon, 7 Dec 98 10:34:18 PST
- Cc: egcs at cygnus dot com, alex dot buell at tahallah dot demon dot co dot uk
> 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.