Merge FreeBSD modifications into gcc 3.3.1-release:

1.3 suppress warnings on K&R main.
This commit is contained in:
Alexander Kabaev 2003-08-22 03:14:37 +00:00
parent 5f020c09b4
commit 63cde6278d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119268

View File

@ -1580,6 +1580,15 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
Update OLDDECL to be the same. */
DECL_ATTRIBUTES (olddecl) = DECL_ATTRIBUTES (newdecl);
/* If OLDDECL had its DECL_RTL instantiated, re-invoke make_decl_rtl
so that encode_section_info has a chance to look at the new decl
flags and attributes. */
if (DECL_RTL_SET_P (olddecl)
&& (TREE_CODE (olddecl) == FUNCTION_DECL
|| (TREE_CODE (olddecl) == VAR_DECL
&& TREE_STATIC (olddecl))))
make_decl_rtl (olddecl, NULL);
return 1;
}