tree-sra.c (type_internals_preclude_sra_p): Return true if the element type is volatile.
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 18 Jun 2011 11:02:45 +0000 (11:02 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 18 Jun 2011 11:02:45 +0000 (11:02 +0000)
commitc020c92b121315f101365221f05aca9d686a82f0
treec905c1e124af4453a2ccb5759bc9ce57ab62e467
parent10f13f2279ec2b2ea34dda5fe1d45a54b3725369
tree-sra.c (type_internals_preclude_sra_p): Return true if the element type is volatile.

* tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
if the element type is volatile.
ada/
* gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
local variable throughout.  Remove useless call to Base_Type.
(gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
Take it also into account for the volatileness of the field.  Set the
TREE_SIDE_EFFECTS flag as well in this case.  Reorder some warnings.

From-SVN: r175176
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/volatile6.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/volatile7.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/volatile8.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/volatile9.adb [new file with mode: 0644]
gcc/tree-sra.c