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
This commit is contained in:
Jason Merrill 2000-03-09 19:54:51 +00:00 committed by Jason Merrill
parent cb8b62b1a2
commit 217ab4b7e7
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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);