@@ -1922,6 +1922,8 @@ arc_handle_interrupt_attribute (tree *, tree name, tree args, int,
tree value = TREE_VALUE (args);
+ STRIP_ANY_LOCATION_WRAPPER (value);
+
if (TREE_CODE (value) != STRING_CST)
{
warning (OPT_Wattributes,
@@ -496,6 +496,7 @@ epiphany_handle_interrupt_attribute (tree *node, tree name, tree args,
}
value = TREE_VALUE (args);
+ STRIP_ANY_LOCATION_WRAPPER (value);
if (TREE_CODE (value) != STRING_CST)
{
@@ -537,6 +538,8 @@ epiphany_handle_forwarder_attribute (tree *node ATTRIBUTE_UNUSED,
value = TREE_VALUE (args);
+ STRIP_ANY_LOCATION_WRAPPER (value);
+
if (TREE_CODE (value) != STRING_CST)
{
warning (OPT_Wattributes,
@@ -742,6 +742,7 @@ ia64_handle_model_attribute (tree *node, tree name, tree args,
init_idents ();
arg = TREE_VALUE (args);
+ STRIP_ANY_LOCATION_WRAPPER (arg);
if (arg == small_ident1 || arg == small_ident2)
{
addr_area = ADDR_AREA_SMALL;
@@ -399,6 +399,8 @@ m32r_handle_model_attribute (tree *node ATTRIBUTE_UNUSED, tree name,
init_idents ();
arg = TREE_VALUE (args);
+ STRIP_ANY_LOCATION_WRAPPER (arg);
+
if (arg != small_ident1
&& arg != small_ident2
&& arg != medium_ident1
@@ -1474,6 +1474,7 @@ mips_handle_interrupt_attr (tree *node ATTRIBUTE_UNUSED, tree name, tree args,
tree cst;
cst = TREE_VALUE (args);
+ STRIP_ANY_LOCATION_WRAPPER (cst);
if (TREE_CODE (cst) != STRING_CST)
{
warning (OPT_Wattributes,
@@ -1528,6 +1529,7 @@ mips_handle_use_shadow_register_set_attr (tree *node ATTRIBUTE_UNUSED,
tree cst;
cst = TREE_VALUE (args);
+ STRIP_ANY_LOCATION_WRAPPER (cst);
if (TREE_CODE (cst) != STRING_CST)
{
warning (OPT_Wattributes,
@@ -1867,7 +1867,7 @@ msp430_attr (tree * node,
gcc_assert (TREE_NAME_EQ (name, ATTR_INTR));
tree value = TREE_VALUE (args);
-
+ STRIP_ANY_LOCATION_WRAPPER (value);
switch (TREE_CODE (value))
{
case STRING_CST:
@@ -1110,6 +1110,8 @@ s390_handle_hotpatch_attribute (tree *node, tree name, tree args,
{
expr = TREE_VALUE (args);
expr2 = TREE_VALUE (TREE_CHAIN (args));
+ STRIP_ANY_LOCATION_WRAPPER (expr);
+ STRIP_ANY_LOCATION_WRAPPER (expr2);
}
if (args == NULL || TREE_CHAIN (args) == NULL)
err = 1;