Fixes e.g. g++.dg/abi/regparm1.C
gcc/ChangeLog:
* config/i386/i386.c (ix86_handle_cconv_attribute): Handle
location wrappers.
---
gcc/config/i386/i386.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b2c2934..7014e84 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -6283,6 +6283,7 @@ ix86_handle_cconv_attribute (tree *node, tree name,
}
cst = TREE_VALUE (args);
+ STRIP_ANY_LOCATION_WRAPPER (cst);
if (TREE_CODE (cst) != INTEGER_CST)
{
warning (OPT_Wattributes,
--
1.8.5.3