diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-06-29 04:24:55 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-06-29 04:24:55 +0000 |
commit | 485bad26cebcab75022e2abdfe8af0339330f25c (patch) | |
tree | edbd5c3beb19348da9f863e19262f0023e78bd21 /gcc/dwarf2out.c | |
parent | b01258dd1219ba584fd80dafa14566aa32bd4ccd (diff) | |
download | gcc-485bad26cebcab75022e2abdfe8af0339330f25c.zip gcc-485bad26cebcab75022e2abdfe8af0339330f25c.tar.gz gcc-485bad26cebcab75022e2abdfe8af0339330f25c.tar.bz2 |
dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X, -1) with ggc_strdup.
* dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
-1) with ggc_strdup.
* stmt.c (expand_asm_operands): Likewise.
* config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
From-SVN: r68659
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 6890e5a..4ae09b1 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; |