Commit 1ee9fb20 by Richard Henderson

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
parent 1e5cf796
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> 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* pa/elf.h (ASM_DECLARE_FUNCTION_NAME, * 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> ...@@ -37,7 +42,7 @@ Fri Nov 9 17:51:09 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
(FIXED_REGISTERS): VRSAVE is fixed. (FIXED_REGISTERS): VRSAVE is fixed.
(CALL_USED_REGISTERS): VRSAVE is call used. (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 * config/mips/mips.c (mips_output_conditional_branch): Do not hard
code the branch target as ".+16/.+12", but rather use labels. code the branch target as ".+16/.+12", but rather use labels.
......
...@@ -763,6 +763,7 @@ dw2_force_const_mem (x) ...@@ -763,6 +763,7 @@ dw2_force_const_mem (x)
rtx x; rtx x;
{ {
splay_tree_node node; splay_tree_node node;
const char *str;
tree decl; tree decl;
if (! indirect_pool) if (! indirect_pool)
...@@ -773,7 +774,9 @@ dw2_force_const_mem (x) ...@@ -773,7 +774,9 @@ dw2_force_const_mem (x)
if (GET_CODE (x) != SYMBOL_REF) if (GET_CODE (x) != SYMBOL_REF)
abort (); 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) if (node)
decl = (tree) node->value; decl = (tree) node->value;
else else
...@@ -782,9 +785,9 @@ dw2_force_const_mem (x) ...@@ -782,9 +785,9 @@ dw2_force_const_mem (x)
if (USE_LINKONCE_INDIRECT) 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); id = get_identifier (ref_name);
decl = build_decl (VAR_DECL, id, ptr_type_node); decl = build_decl (VAR_DECL, id, ptr_type_node);
DECL_ARTIFICIAL (decl) = 1; DECL_ARTIFICIAL (decl) = 1;
...@@ -804,11 +807,11 @@ dw2_force_const_mem (x) ...@@ -804,11 +807,11 @@ dw2_force_const_mem (x)
DECL_INITIAL (decl) = decl; DECL_INITIAL (decl) = decl;
} }
id = maybe_get_identifier (XSTR (x, 0)); id = maybe_get_identifier (str);
if (id) if (id)
TREE_SYMBOL_REFERENCED (id) = 1; 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); (splay_tree_value) decl);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment