aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorJason Merrill <jason@casey.cygnus.com>2000-03-09 19:54:51 +0000
committerJason Merrill <jason@gcc.gnu.org>2000-03-09 14:54:51 -0500
commit217ab4b7e745db9ff5d1fd4ec8ad364f7060a388 (patch)
treefa2714f01e56adb849dc74516becb6c61c2d6842 /gcc/varasm.c
parentcb8b62b1a2faad38bce0b51d1c9c3c31fc443df8 (diff)
downloadgcc-217ab4b7e745db9ff5d1fd4ec8ad364f7060a388.zip
gcc-217ab4b7e745db9ff5d1fd4ec8ad364f7060a388.tar.gz
gcc-217ab4b7e745db9ff5d1fd4ec8ad364f7060a388.tar.bz2
varasm.c (make_decl_rtl): Skip initial '*' when setting DECL_ASSEMBLER_NAME.
* varasm.c (make_decl_rtl): Skip initial '*' when setting DECL_ASSEMBLER_NAME. From-SVN: r32452
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 7805c1d..18b6487 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -799,7 +799,8 @@ make_decl_rtl (decl, asmspec, top_level)
name = new_name;
}
- DECL_ASSEMBLER_NAME (decl) = get_identifier (name);
+ DECL_ASSEMBLER_NAME (decl)
+ = get_identifier (name[0] == '*' ? name + 1 : name);
DECL_RTL (decl) = gen_rtx_MEM (DECL_MODE (decl),
gen_rtx_SYMBOL_REF (Pmode, name));
MEM_ALIAS_SET (DECL_RTL (decl)) = get_alias_set (decl);