aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/decl.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2011-09-11 18:56:40 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-09-11 18:56:40 +0000
commit819a653eee396dc4db95ddc3c87805acab08c2de (patch)
tree516e2c4887e847582eb84e0f887fc435be474f8f /gcc/ada/gcc-interface/decl.c
parentc946adde12fa27f4572f3b23917b143e1767e475 (diff)
downloadgcc-819a653eee396dc4db95ddc3c87805acab08c2de.zip
gcc-819a653eee396dc4db95ddc3c87805acab08c2de.tar.gz
gcc-819a653eee396dc4db95ddc3c87805acab08c2de.tar.bz2
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
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
-rw-r--r--gcc/ada/gcc-interface/decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c
index 539c262..0854d5d 100644
--- a/gcc/ada/gcc-interface/decl.c
+++ b/gcc/ada/gcc-interface/decl.c
@@ -6521,6 +6521,7 @@ maybe_pad_type (tree type, tree size, unsigned int align,
if (align != 0
&& TREE_CODE (type) == RECORD_TYPE
&& TYPE_MODE (type) == BLKmode
+ && !TREE_ADDRESSABLE (type)
&& TREE_CODE (orig_size) == INTEGER_CST
&& !TREE_OVERFLOW (orig_size)
&& compare_tree_int (orig_size, MAX_FIXED_MODE_SIZE) <= 0