diff options
author | Jason Merrill <jason@casey.cygnus.com> | 2000-03-09 19:54:51 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-03-09 14:54:51 -0500 |
commit | 217ab4b7e745db9ff5d1fd4ec8ad364f7060a388 (patch) | |
tree | fa2714f01e56adb849dc74516becb6c61c2d6842 | |
parent | cb8b62b1a2faad38bce0b51d1c9c3c31fc443df8 (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/varasm.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed6a621..25fb409 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-09 Jason Merrill <jason@casey.cygnus.com> + + * varasm.c (make_decl_rtl): Skip initial '*' when setting + DECL_ASSEMBLER_NAME. + 2000-03-09 Andreas Jaeger <aj@suse.de> * config/mips/linux.h (NO_IMPLICIT_EXTERN_C): Define. 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); |