re PR c++/5998 (regression, all builtins disabled)

PR c++/5998:
	* decl.c (duplicate_decls): Don't mess with assembler names when
	redeclaring builtin functions as static.

From-SVN: r51812
This commit is contained in:
Roger Sayle 2002-04-03 21:29:26 +00:00 committed by Mark Mitchell
parent a261e0cc7b
commit cba2004a90
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-04-03 Roger Sayle <roger@eyesopen.com>
PR c++/5998:
* decl.c (duplicate_decls): Don't mess with assembler names when
redeclaring builtin functions as static.
2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
* call.c (build_addr_func): Update.

View File

@ -3219,9 +3219,6 @@ duplicate_decls (newdecl, olddecl)
will be banished. */
SET_DECL_LANGUAGE (olddecl, DECL_LANGUAGE (newdecl));
SET_DECL_RTL (olddecl, DECL_RTL (newdecl));
COPY_DECL_ASSEMBLER_NAME (olddecl, newdecl);
SET_IDENTIFIER_GLOBAL_VALUE (DECL_ASSEMBLER_NAME (newdecl),
newdecl);
}
}
else if (TREE_CODE (olddecl) != TREE_CODE (newdecl))