aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@casey.cygnus.com>2000-03-09 19:30:09 +0000
committerJason Merrill <jason@gcc.gnu.org>2000-03-09 14:30:09 -0500
commitcce097f1f959eb3ccca99f8fb7465ff4b9e885a9 (patch)
tree478d948e2cdccc689d84b2da02ce66b3a0373c78
parentfb13d4d024b03ae9c2e43171ebd43babd6ebb4e2 (diff)
downloadgcc-cce097f1f959eb3ccca99f8fb7465ff4b9e885a9.zip
gcc-cce097f1f959eb3ccca99f8fb7465ff4b9e885a9.tar.gz
gcc-cce097f1f959eb3ccca99f8fb7465ff4b9e885a9.tar.bz2
* i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
From-SVN: r32450
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/config/i386/i386.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cc420c7..ac1168f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2000-03-09 Jason Merrill <jason@casey.cygnus.com>
+ * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
+
* except.c (can_throw): See through a SEQUENCE.
(nothrow_function_p): New fn.
* except.h: Declare it.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b977c32..bc634c4 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -737,9 +737,7 @@ ix86_valid_type_attribute_p (type, attributes, identifier, args)
if (TREE_CODE (cst) != INTEGER_CST)
return 0;
- if (TREE_INT_CST_HIGH (cst) != 0
- || TREE_INT_CST_LOW (cst) < 0
- || TREE_INT_CST_LOW (cst) > REGPARM_MAX)
+ if (compare_tree_int (cst, REGPARM_MAX) > 0)
return 0;
return 1;