[Patch,Fortran,4.6] Coarray 7/n - add -fcoarray=<none|single>

Tobias Burnus burnus@net-b.de
Wed Mar 31 21:21:00 GMT 2010


This patch is rather simple compared with the others and justs add a new
compiler flag: -fcoarray=... with the options "none" (which is default)
and "single".

With "none" - the default -, the compiler gives an error message when
encountering a coarray declaration or an image control statement. This
gives the user a hint that the program uses coarrays; this helps to
reduce the change of running into the following problems:
(a) using a single image for programs which expects, e.g., at least two
images (this is the usage case which Nick mentioned)
(b) compiling one file with single-image support and the other one with
full, library-based coarray support, which can easily happen but leads
obviously to wrong code.

(Additionally, the -fcoarray= argument would have been added anyway for
the real parallel version.)

Build and regtested on x86-64-linux.
OK for the 4.6 trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coarray_fcoarray.diff
Type: text/x-patch
Size: 9220 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100331/57373b37/attachment.bin>


More information about the Gcc-patches mailing list