[patch, fortran] Implement VOLATILE statement/attribute (PR 29601)

Tobias Burnus burnus@net-b.de
Sat Nov 4 20:17:00 GMT 2006


Hi,

Tobias Burnus wrote:
> Regression-tested on x86_64-unknown-linux-gnu (alias openSUSE Factory).
>   
Somehow it should be possible to disable ctrl+enter (or to have a "do
you really want to send this email?" dialog).
I actually wanted to wait for the regression suit to exit :-/

Needed changes:
-! { dg-final { scan-tree-dump "VolatileNotOptimizedAway"  } } */
-! { dg-final { scan-tree-dump-not "NonVolatileNotOptimizedAway" } } */
+! { dg-final { scan-tree-dump "VolatileNotOptimizedAway" "optimized" } } */
+! { dg-final { scan-tree-dump-not "NonVolatileNotOptimizedAway"
"optimized" } } */


gfc_notify_std (GFC_STD_F2003, ...

We currently use the following

"In the selected standard, the ALLOCATABLE attribute at %C is not
allowed in a TYPE definition"
"New in Fortran 2003: [...] style array constructors at %C"
"New in Fortran 2003: ENUM AND ENUMERATOR at %C"
"Fortran 2003: IOMSG tag at %L"
"Fortran 2003: %s specifier in %s statement at %C has value '%s'"
"Fortran 2003: FLUSH statement at %C"
"Internal file at %L is incompatible with namelist"
"Fortran 2003: PARAMETER symbol in complex constant at %C"
"Fortran 2003: CHAR intrinsic allowed as actual argument at %L"

Clearest would be probably something like the following, but this is
rather long:

"In the selected standard, the ALLOCATABLE attribute at %C is not
allowed in a TYPE definition. (Allowed since Fortran 2003)"

Tobias



More information about the Gcc-patches mailing list