PR c++/5998:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Apr 2002 21:29:26 +0000 (21:29 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Apr 2002 21:29:26 +0000 (21:29 +0000)
* decl.c (duplicate_decls): Don't mess with assembler names when
redeclaring builtin functions as static.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51812 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index 8527f0a..7c03c0d 100644 (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.
index b2b501a..840dcff 100644 (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))