This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SIMPLE: A language-independent tree IR
- From: Dale Johannesen <dalej at apple dot com>
- To: Paul Koning <pkoning at equallogic dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, geoffk at redhat dot com, toon at moene dot indiv dot nluug dot nl, gcc at gcc dot gnu dot org
- Date: Thu, 3 Jan 2002 10:38:41 -0800
- Subject: Re: SIMPLE: A language-independent tree IR
On Thursday, January 3, 2002, at 10:28 AM, Paul Koning wrote:
>>>>>> "Geoff" == Geoff Keating <geoffk@geoffk.org> writes:
> Geoff> You're probably thinking of
>
> Geoff> T = (f() + g()) compared to T = (f(), g())
>
> Geoff> in the first one, the compiler is (probably) permitted to call
> Geoff> g before f, but not in the second.
>
> The comma operator rule is pretty strange, given that the third
> example:
>
> T = foo (f(), g(x))
> (i.e., comma a actual argument separator) DOES allow g to be called
> before f...
And what of this case:
T = foo (f(), (g(x), h(y)) )
Is the call ordering g, f, h legal?
Take a look at the example in 3.3.2.2 (c89) before you answer...