[testsuite gfortran] partial fix for secnds*.f

R. D. Flowers, Chattanooga TN USA rd@chalice.us
Mon May 28 21:15:00 GMT 2007


> 
> Subject:
> Re: [testsuite gfortran] partial fix for secnds*.f
> From:
> Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
> Date:
> Mon, 28 May 2007 20:18:34 +0200
> To:
> Thomas Koenig <tkoenig@alice-dsl.net>
> 
> To:
> Thomas Koenig <tkoenig@alice-dsl.net>
> CC:
> Dominique Dhumieres <dominiq@lps.ens.fr>, brooks.moses@codesourcery.com, 
> gcc-patches@gcc.gnu.org, fortran@gcc.gnu.org
> 
> I think we should use parentheses to enforce the order.  Not that the 
> compiler reorders in its current incarnation, but it might at some 
> point.  I don't know of a way to enforce an order of evaluation in C 
> besides separating the addition into a series of statements or using 
> volatile.
> 
> - Tobi
> 

I could be missing something here, and it is almost separate statements, 
and might be ugly, but -- comma clauses?

foo=term1,foo+=term2,foo+=term3 ... ;



More information about the Fortran mailing list