OSDN Git Service

* i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Mar 2000 19:30:09 +0000 (19:30 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Mar 2000 19:30:09 +0000 (19:30 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32450 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index cc420c7..ac1168f 100644 (file)
@@ -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.
index b977c32..bc634c4 100644 (file)
@@ -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;