varasm.c (make_decl_rtl): Don't append var_labelno discriminator to variable names...
authorJakub Jelinek <jakub@redhat.com>
Fri, 23 Mar 2001 22:00:40 +0000 (23:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 23 Mar 2001 22:00:40 +0000 (23:00 +0100)
* varasm.c (make_decl_rtl): Don't append var_labelno discriminator
to variable names where DECL_NAME is different from
DECL_ASSEMBLER_NAME.

From-SVN: r40794

gcc/ChangeLog
gcc/varasm.c

index a6ff3aa8a1d4281e963e10d86864d100c225269f..08bdfae2dd01f67a467c5f398eee0cfc474d3332 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-23  Jakub Jelinek  <jakub@redhat.com>
+
+       * varasm.c (make_decl_rtl): Don't append var_labelno discriminator
+       to variable names where DECL_NAME is different from
+       DECL_ASSEMBLER_NAME.
+
 2001-03-23  Jim Wilson  <wilson@redhat.com>
 
        * varasm.c (make_decl_rtl): Add TREE_PUBLIC check to abort test.
index 3a6d61dfa412ebd14b53971a5d51fb2299d57746..8b14dc88e39276e7140b7bd98c2891e5a577327c 100644 (file)
@@ -708,7 +708,8 @@ make_decl_rtl (decl, asmspec)
      Concatenate a distinguishing number.  */
   if (!top_level && !TREE_PUBLIC (decl)
       && ! (DECL_CONTEXT (decl) && TYPE_P (DECL_CONTEXT (decl)))
-      && asmspec == 0)
+      && asmspec == 0
+      && name == IDENTIFIER_POINTER (DECL_NAME (decl)))
     {
       char *label;
       ASM_FORMAT_PRIVATE_NAME (label, name, var_labelno);