summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 6890e5a2797..4ae09b14f14 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -4703,7 +4703,7 @@ add_AT_string (die, attr_kind, str)
if (*slot == NULL)
*slot = ggc_alloc_cleared (sizeof (struct indirect_string_node));
node = (struct indirect_string_node *) *slot;
- node->str = ggc_alloc_string (str, -1);
+ node->str = ggc_strdup (str);
node->refcount++;
attr->dw_attr_next = NULL;