This is the mail archive of the gcc-help@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: parse arguments sequentially



> I know one of my colleague already submited this problem.
> Let remind you the problem.
> asume that you have
> 
> foo(foo(foo(inv(x), foo1(y))))
> 
> I am using the same compiler g++ on both linux and solaris,
> The evaluation order of inv(x) and foo1(y) differ from linux to solaris,
> and this is really bad for my application.
> 
> I need the evaluation order tobe the same for both architecture.
> my question is: for the same compiler (g++), can we control that order?

For *all* compilers,

i1=inv(x), i2=foo1(y), foo(foo(foo(i1,i2)));

This is an issue regarding the C language, not any particular compiler.

This question's already been answered by several people.  I even sent
your colleague a personal email yesterday.


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