summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-14 15:39:15 +0000
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-14 15:39:15 +0000
commitc937fbeaac7bffbf2f303022c416c8e0b63697fa (patch)
treea6afe100051b1474b7b795790ed0267dba258f01 /gcc/final.c
parent8700909ca9dc38ded589a295292951eed0e23476 (diff)
downloadgcc-c937fbeaac7bffbf2f303022c416c8e0b63697fa.tar.gz
2009-08-14 Rafael Avila de Espindola <espindola@google.com>
* final.c (add_debug_prefix_map): Don't use GC memory for old_prefix and new_prefix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150759 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c
index e84c2cabdb3..cca1883039d 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1450,10 +1450,10 @@ add_debug_prefix_map (const char *arg)
return;
}
map = XNEW (debug_prefix_map);
- map->old_prefix = ggc_alloc_string (arg, p - arg);
+ map->old_prefix = xstrndup (arg, p - arg);
map->old_len = p - arg;
p++;
- map->new_prefix = ggc_strdup (p);
+ map->new_prefix = xstrdup (p);
map->new_len = strlen (p);
map->next = debug_prefix_maps;
debug_prefix_maps = map;