diff mbox

[wide-int,committed] Obvious s390 build fix

Message ID 871twmfllc.fsf@talisman.default
State New
Headers show

Commit Message

Richard Sandiford April 24, 2014, 9:45 p.m. UTC
I committed this patch as obvious to fix the s390 build.

Thanks,
Richard

Comments

Mike Stump April 24, 2014, 10:27 p.m. UTC | #1
On Apr 24, 2014, at 2:45 PM, Richard Sandiford <rdsandiford@googlemail.com> wrote:
> I committed this patch as obvious to fix the s390 build.

Looks good, thanks.
diff mbox

Patch

Index: gcc/config/s390/s390.c
===================================================================
--- gcc/config/s390/s390.c	2014-04-24 22:42:21.799411496 +0100
+++ gcc/config/s390/s390.c	2014-04-24 22:42:42.993575959 +0100
@@ -474,9 +474,7 @@  s390_handle_hotpatch_attribute (tree *no
 
       if (TREE_CODE (expr) != INTEGER_CST
 	  || !INTEGRAL_TYPE_P (TREE_TYPE (expr))
-	  || TREE_INT_CST_HIGH (expr) != 0
-	  || TREE_INT_CST_LOW (expr) > (unsigned int)
-	  s390_hotpatch_trampoline_halfwords_max)
+	  || wi::gtu_p (expr, s390_hotpatch_trampoline_halfwords_max))
 	{
 	  error ("requested %qE attribute is not a non-negative integer"
 		 " constant or too large (max. %d)", name,