summaryrefslogtreecommitdiff
path: root/gcc/config/c6x/predicates.md
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/c6x/predicates.md')
-rw-r--r--gcc/config/c6x/predicates.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/c6x/predicates.md b/gcc/config/c6x/predicates.md
index 1a2fe8f69f5..fbcbdd02457 100644
--- a/gcc/config/c6x/predicates.md
+++ b/gcc/config/c6x/predicates.md
@@ -210,9 +210,9 @@
t = DECL_SIZE_UNIT (t);
else
t = TYPE_SIZE_UNIT (TREE_TYPE (t));
- if (t && host_integerp (t, 0))
+ if (t && tree_fits_shwi_p (t))
{
- size = tree_low_cst (t, 0);
+ size = tree_to_shwi (t);
if (size < 0)
size = 0;
}