Commit 70f75202 by Richard Kenner

(gen_decl): DECL_REGISTER isn't defined for FUNCTION_DECL.

From-SVN: r10909
parent a5f99f01
......@@ -581,7 +581,7 @@ gen_decl (decl, is_func_definition, style)
ret_val = affix_data_type (ret_val);
if (DECL_REGISTER (decl))
if (TREE_CODE (decl) != FUNCTION_DECL && DECL_REGISTER (decl))
ret_val = concat ("register ", ret_val);
if (TREE_PUBLIC (decl))
ret_val = concat ("extern ", ret_val);
......
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