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) ...@@ -300,11 +300,11 @@ decl_attributes (decl, attributes, prefix_attributes)
} }
DECL_STATIC_DESTRUCTOR (decl) = 1; DECL_STATIC_DESTRUCTOR (decl) = 1;
} }
else if ( args = TREE_CHAIN (name), else if ((args = TREE_CHAIN (name)) != 0
(!strcmp (IDENTIFIER_POINTER (name = TREE_PURPOSE (name)), "mode") && (name == get_identifier ("mode")
|| !strcmp (IDENTIFIER_POINTER (name), "__mode__")) || name == get_identifier ("__mode__"))
&& list_length (args) == 1 && list_length (args) == 1
&& TREE_CODE (TREE_VALUE (args)) == IDENTIFIER_NODE) && TREE_CODE (TREE_VALUE (args)) == IDENTIFIER_NODE)
{ {
int i; int i;
char *specified_name = IDENTIFIER_POINTER (TREE_VALUE (args)); 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