mirror of git://gcc.gnu.org/git/gcc.git
final.c (add_debug_prefix_map): Don't use GC memory for old_prefix and new_prefix.
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.
From-SVN: r150759
This commit is contained in:
parent
1a15bfdcdc
commit
fe83055dfa
|
|
@ -1,3 +1,8 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2009-08-14 Richard Guenther <rguenther@suse.de>
|
2009-08-14 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
* ipa-prop.c (compute_complex_pass_through): If we cannot
|
* ipa-prop.c (compute_complex_pass_through): If we cannot
|
||||||
|
|
|
||||||
|
|
@ -1450,10 +1450,10 @@ add_debug_prefix_map (const char *arg)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
map = XNEW (debug_prefix_map);
|
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;
|
map->old_len = p - arg;
|
||||||
p++;
|
p++;
|
||||||
map->new_prefix = ggc_strdup (p);
|
map->new_prefix = xstrdup (p);
|
||||||
map->new_len = strlen (p);
|
map->new_len = strlen (p);
|
||||||
map->next = debug_prefix_maps;
|
map->next = debug_prefix_maps;
|
||||||
debug_prefix_maps = map;
|
debug_prefix_maps = map;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue