summaryrefslogtreecommitdiff
path: root/gcc/dwarf2asm.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-09 23:18:56 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-09 23:18:56 +0000
commitdc4303d7dc07bfa011764ace2c338f9fa059cbe7 (patch)
treedbfb4fbeb6da1e5284896f2bbe7a6468b31f38fa /gcc/dwarf2asm.c
parentb810486ae5ee665b6e112a85eaeddb65d50feaf9 (diff)
downloadgcc-dc4303d7dc07bfa011764ace2c338f9fa059cbe7.tar.gz
* dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
on the symbol string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46906 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r--gcc/dwarf2asm.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c
index ad5ecc24367..05a1ed81487 100644
--- a/gcc/dwarf2asm.c
+++ b/gcc/dwarf2asm.c
@@ -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);
}