From 6008088011584c779e326dc0e3dc3fb4a8c000a8 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 23 Mar 2001 23:00:40 +0100 Subject: [PATCH] varasm.c (make_decl_rtl): Don't append var_labelno discriminator to variable names where DECL_NAME is... * 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 | 6 ++++++ gcc/varasm.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6ff3aa8a1d..08bdfae2dd0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-03-23 Jakub Jelinek + + * 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 * varasm.c (make_decl_rtl): Add TREE_PUBLIC check to abort test. diff --git a/gcc/varasm.c b/gcc/varasm.c index 3a6d61dfa41..8b14dc88e39 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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); -- 2.30.2