[graphite] set CLooG's language to C
Toon Moene
toon@moene.indiv.nluug.nl
Fri Feb 1 13:21:00 GMT 2008
Sebastian Pop wrote:
> This is from an email from Tobias Grosser.
> Committed to graphite-branch.
>
> Sebastian
>
> The default output language of cloog is FORTRAN. But the FORTRAN output can only
> show complete loops with upper/lower bound, otherwise it fails.
This is not completely true. The most-used form of a loop construct in
Fortran certainly is the following:
DO I = 1, N
.... <loop body>
ENDDO
but it is perfectly legal (in Fortran 95, i.e., the language that's
covered by gfortran) to write:
DO
IF (condition) EXIT
... <loop body>
ENDDO
or
DO WHILE (condition)
... <loop body>
ENDDO
Hope this helps,
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.indiv.nluug.nl/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/ml/gcc/2008-01/msg00009.html
More information about the Gcc-patches
mailing list