summaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-30 09:29:51 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-30 09:29:51 +0000
commitbe763a3f4f6c50e3f7126a20e907ee05a7f1aca6 (patch)
tree24e2174ad543566a5c88b09b153fa03cc82d65a4 /gcc/ada
parent0d79facfe3abb8ca516ac9b78aea0c96b571601d (diff)
downloadgcc-be763a3f4f6c50e3f7126a20e907ee05a7f1aca6.tar.gz
2009-03-30 Paolo Bonzini <bonzini@gnu.org>
* gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead of TREE_CONSTANT_OVERFLOW. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145287 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/gcc-interface/decl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 0b16cae9cce..bdb2c97c9b8 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-30 Paolo Bonzini <bonzini@gnu.org>
+
+ * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW
+ instead of TREE_CONSTANT_OVERFLOW.
+
2009-03-30 Joseph Myers <joseph@codesourcery.com>
PR rtl-optimization/323
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c
index 0d722f273ea..5e44c3cef2c 100644
--- a/gcc/ada/gcc-interface/decl.c
+++ b/gcc/ada/gcc-interface/decl.c
@@ -5949,7 +5949,7 @@ maybe_pad_type (tree type, tree size, unsigned int align,
&& TREE_CODE (type) == RECORD_TYPE
&& TYPE_MODE (type) == BLKmode
&& TREE_CODE (orig_size) == INTEGER_CST
- && !TREE_CONSTANT_OVERFLOW (orig_size)
+ && !TREE_OVERFLOW (orig_size)
&& compare_tree_int (orig_size, MAX_FIXED_MODE_SIZE) <= 0
&& (!size
|| (TREE_CODE (size) == INTEGER_CST