OSDN Git Service

* varasm.c (make_decl_rtl): Don't append var_labelno discriminator
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2001 22:00:40 +0000 (22:00 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2001 22:00:40 +0000 (22:00 +0000)
to variable names where DECL_NAME is different from
DECL_ASSEMBLER_NAME.

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

gcc/ChangeLog
gcc/varasm.c

index a6ff3aa..08bdfae 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 3a6d61d..8b14dc8 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);