Commit 515f0e72 by Richard Kenner

(decl_attributes): Clean up test for __mode__.

From-SVN: r9241
parent d10b562e
......@@ -300,11 +300,11 @@ decl_attributes (decl, attributes, prefix_attributes)
}
DECL_STATIC_DESTRUCTOR (decl) = 1;
}
else if ( args = TREE_CHAIN (name),
(!strcmp (IDENTIFIER_POINTER (name = TREE_PURPOSE (name)), "mode")
|| !strcmp (IDENTIFIER_POINTER (name), "__mode__"))
&& list_length (args) == 1
&& TREE_CODE (TREE_VALUE (args)) == IDENTIFIER_NODE)
else if ((args = TREE_CHAIN (name)) != 0
&& (name == get_identifier ("mode")
|| name == get_identifier ("__mode__"))
&& list_length (args) == 1
&& TREE_CODE (TREE_VALUE (args)) == IDENTIFIER_NODE)
{
int i;
char *specified_name = IDENTIFIER_POINTER (TREE_VALUE (args));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment