This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: parse arguments sequentially
- To: Housseine Rejouan - Engineering Logic Sythesis Group <hrejouan at get2chip dot com>
- Subject: Re: parse arguments sequentially
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 18 May 2001 16:08:49 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3B05628A.8030803@get2chip.com>
On May 18, 2001, Housseine Rejouan - Engineering Logic Sythesis Group <hrejouan@get2chip.com> wrote:
> The evaluation order of inv(x) and foo1(y) differ from linux to solaris,
> and this is really bad for my application.
Then fix your application. There's no sequence point between the
evaluation of arguments to a function. So, not only the order of
their evaluation might change from one build to another, but also they
could be interleaved.
> my question is: for the same compiler (g++), can we control that order?
I suppose you'd have to modify the compiler and, as a result, you
might end up generating much less efficient code.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me