diff mbox series

[10/11] i386: handle location wrappers in ix86_handle_cconv_attribute

Message ID 1510973563-10046-11-git-send-email-dmalcolm@redhat.com
State New
Headers show
Series C++: locations for (almost) everything (PR 43486) | expand

Commit Message

David Malcolm Nov. 18, 2017, 2:52 a.m. UTC
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 mbox series

Patch

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,