decl.c (warn_extern_redeclared_static): Simplify.
authorMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 16 Sep 1999 01:20:45 +0000 (01:20 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 16 Sep 1999 01:20:45 +0000 (01:20 +0000)
commit24f30ed448cf01c0fc89f75ea711fa04440beefc
tree8f287ea08cc8d076c9ded0ad71332b7743e7fdae
parent9605da8a3fda7f5f52221143d6af94e9ed13a306
decl.c (warn_extern_redeclared_static): Simplify.

* decl.c (warn_extern_redeclared_static): Simplify.  Catch
problems with extern "C" functions redeclared as static.
(duplicate_decls): When a builtin is redeclared static, make the
new function have internal linkage.

From-SVN: r29450
gcc/cp/decl.c
gcc/testsuite/g++.old-deja/g++.mike/net46.C
gcc/testsuite/g++.old-deja/g++.other/linkage3.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/linkage4.C [new file with mode: 0644]