Commit 1a16a053 by Richard Kenner

(decl_attributes, case A_CONSTRUCTOR, A_DESTRUCTOR): Set TREE_USED.

From-SVN: r10064
parent c645b1c9
......@@ -396,7 +396,10 @@ decl_attributes (node, attributes, prefix_attributes)
if (TREE_CODE (decl) == FUNCTION_DECL
&& TREE_CODE (type) == FUNCTION_TYPE
&& decl_function_context (decl) == 0)
DECL_STATIC_CONSTRUCTOR (decl) = 1;
{
DECL_STATIC_CONSTRUCTOR (decl) = 1;
TREE_USED (decl) = 1;
}
else
warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name));
break;
......@@ -405,7 +408,10 @@ decl_attributes (node, attributes, prefix_attributes)
if (TREE_CODE (decl) == FUNCTION_DECL
&& TREE_CODE (type) == FUNCTION_TYPE
&& decl_function_context (decl) == 0)
DECL_STATIC_DESTRUCTOR (decl) = 1;
{
DECL_STATIC_DESTRUCTOR (decl) = 1;
TREE_USED (decl) = 1;
}
else
warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name));
break;
......
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