This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to ix86_valid_type_attribute_p


2000-03-09  Jason Merrill  <jason@casey.cygnus.com>

	* i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.

Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.c,v
retrieving revision 1.142
diff -c -p -r1.142 i386.c
*** config/i386/i386.c	2000/03/07 20:39:08	1.142
--- config/i386/i386.c	2000/03/09 19:16:58
*************** ix86_valid_type_attribute_p (type, attri
*** 737,745 ****
        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)
  	return 0;
  
        return 1;
--- 737,743 ----
        if (TREE_CODE (cst) != INTEGER_CST)
  	return 0;
  
!       if (compare_tree_int (cst, REGPARM_MAX) > 0)
  	return 0;
  
        return 1;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]