Commit 7ffa4f13 by Doug Evans

(attrib): Handle attribute ((section ("string"))).

From-SVN: r6581
parent 2ea998c8
......@@ -1110,6 +1110,16 @@ attrib
tree_cons ($5, $7, NULL_TREE),
NULL_TREE),
NULL_TREE); }
| IDENTIFIER '(' STRING ')'
{ /* If not "section (name)", then issue warning. */
if (strcmp (IDENTIFIER_POINTER ($1), "section") != 0)
{
warning ("`%s' attribute directive ignored",
IDENTIFIER_POINTER ($1));
$$ = $1;
}
else
$$ = tree_cons ($1, $3, NULL_TREE); }
;
/* Initializers. `init' is the entry point. */
......
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