[patch, fortran] Implement VOLATILE statement/attribute (PR 29601)
Tobias Burnus
burnus@net-b.de
Sat Nov 4 18:23:00 GMT 2006
Hi all,
Tobias Burnus wrote:
> TREE_THIS_VOLATILE (decl) = 1
>
Following the suggestion of Ian Lance Taylor I now also use
build_qualified_type (TREE_TYPE (decl), TYPE_QUAL_VOLATILE);
Therefore, a tree dump now shows also the word "volatile".
Regression-tested on x86_64-unknown-linux-gnu (alias openSUSE Factory).
Tobias
fortran/
2006-11-04 Tobias Burnus <burnus@net-b.de>
fortran/29601
* symbol.c (check_conflict, gfc_add_volatile): Add volatile support.
* decl.c (match_attr_spec, gfc_match_volatile): Add volatile support.
* gfortran.h (symbol_attribute): Add volatile_ to struct.
* resolve.c (was_declared): Add volatile support.
* trans-decl.c (gfc_finish_var_decl): Add volatile support.
* match.h: Declare gfc_match_volatile.
* parse.c (decode_statement): Recognize volatile.
testsuite/
2006-11-04 Tobias Burnus <burnus@net-b.de>
fortran/29601
* volatile.f90: Add.
* volatile2.f90: Add.
* volatile3.f90: Add.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: volatile.diff
Type: text/x-patch
Size: 11095 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061104/02e05c6a/attachment.bin>
More information about the Gcc-patches
mailing list