backport: decl.c (maybe_pad_type): Use TREE_OVERFLOW instead of TREE_CONSTANT_OVERFLOW.

Backport from mainline:
	2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
	* gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
	of TREE_CONSTANT_OVERFLOW.

From-SVN: r145334
This commit is contained in:
Eric Botcazou 2009-03-31 07:19:11 +00:00 committed by Eric Botcazou
parent 3c968d41ce
commit 5fbfdb02ab
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
Backport from mainline:
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-11 Olivier Hainque <hainque@adacore.com>
* gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range

View File

@ -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