decl.c (maybe_pad_type): Do not try to change the form of an addressable type.
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 11 Sep 2011 18:56:40 +0000 (18:56 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 11 Sep 2011 18:56:40 +0000 (18:56 +0000)
commit819a653eee396dc4db95ddc3c87805acab08c2de
tree516e2c4887e847582eb84e0f887fc435be474f8f
parentc946adde12fa27f4572f3b23917b143e1767e475
decl.c (maybe_pad_type): Do not try to change the form of an addressable type.

* gcc-interface/decl.c (maybe_pad_type): Do not try to change the form
of an addressable type.
* gcc-interface/trans.c (gnat_gimplify_expr) <VIEW_CONVERT_EXPR>: New.
Deal with those cases for which creating a temporary is mandatory.

From-SVN: r178764
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/atomic5.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/atomic5.ads [new file with mode: 0644]