dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING on the symbol string.

* dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
        on the symbol string.

From-SVN: r46906
This commit is contained in:
Richard Henderson 2001-11-09 15:18:56 -08:00
parent 1e5cf79655
commit 1ee9fb202a
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2001-11-09 Richard Henderson <rth@redhat.com>
* dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
on the symbol string.
2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
@ -37,7 +42,7 @@ Fri Nov 9 17:51:09 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
(FIXED_REGISTERS): VRSAVE is fixed.
(CALL_USED_REGISTERS): VRSAVE is call used.
2001-11-08 Jason Eckhardt <jle@rice.edu>
2001-11-09 Jason Eckhardt <jle@rice.edu>
* config/mips/mips.c (mips_output_conditional_branch): Do not hard
code the branch target as ".+16/.+12", but rather use labels.

View File

@ -763,6 +763,7 @@ dw2_force_const_mem (x)
rtx x;
{
splay_tree_node node;
const char *str;
tree decl;
if (! indirect_pool)
@ -773,7 +774,9 @@ dw2_force_const_mem (x)
if (GET_CODE (x) != SYMBOL_REF)
abort ();
node = splay_tree_lookup (indirect_pool, (splay_tree_key) XSTR (x, 0));
STRIP_NAME_ENCODING (str, XSTR (x, 0));
node = splay_tree_lookup (indirect_pool, (splay_tree_key) str);
if (node)
decl = (tree) node->value;
else
@ -782,9 +785,9 @@ dw2_force_const_mem (x)
if (USE_LINKONCE_INDIRECT)
{
char *ref_name = alloca (strlen (XSTR (x, 0)) + sizeof "DW.ref.");
char *ref_name = alloca (strlen (str) + sizeof "DW.ref.");
sprintf (ref_name, "DW.ref.%s", XSTR (x, 0));
sprintf (ref_name, "DW.ref.%s", str);
id = get_identifier (ref_name);
decl = build_decl (VAR_DECL, id, ptr_type_node);
DECL_ARTIFICIAL (decl) = 1;
@ -804,11 +807,11 @@ dw2_force_const_mem (x)
DECL_INITIAL (decl) = decl;
}
id = maybe_get_identifier (XSTR (x, 0));
id = maybe_get_identifier (str);
if (id)
TREE_SYMBOL_REFERENCED (id) = 1;
splay_tree_insert (indirect_pool, (splay_tree_key) XSTR (x, 0),
splay_tree_insert (indirect_pool, (splay_tree_key) str,
(splay_tree_value) decl);
}