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

From-SVN: r10909
This commit is contained in:
Richard Kenner 1995-12-31 14:18:48 -05:00
parent a5f99f011f
commit 70f75202a7

View File

@ -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);