This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wide-int, committed] Obvious s390 build fix
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: zadeck at naturalbridge dot com, mikestump at comcast dot net
- Date: Thu, 24 Apr 2014 22:45:19 +0100
- Subject: [wide-int, committed] Obvious s390 build fix
- Authentication-results: sourceware.org; auth=none
I committed this patch as obvious to fix the s390 build.
Thanks,
Richard
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,