Commit 5c6f90e7 by J. David Anglin Committed by Jeff Law

pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is true.

	* pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
	true.

From-SVN: r34979
parent 31d432e4
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca> 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
true.
* aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
with MAP_ANONYMOUS and MAP_ANON. with MAP_ANONYMOUS and MAP_ANON.
* configure, config.in: Rebuilt. * configure, config.in: Rebuilt.
......
...@@ -5951,9 +5951,9 @@ output_call (insn, call_dest, sibcall) ...@@ -5951,9 +5951,9 @@ output_call (insn, call_dest, sibcall)
space), and special magic is needed to construct their address. space), and special magic is needed to construct their address.
For reasons too disgusting to describe storage for the new name For reasons too disgusting to describe storage for the new name
is allocated either on the saveable_obstack (released at function is allocated as a ggc string, or as a string on the saveable_obstack
exit) or on the permanent_obstack for things that can never change (released at function exit) or on the permanent_obstack for things
(libcall names for example). */ that can never change (libcall names for example). */
void void
hppa_encode_label (sym, permanent) hppa_encode_label (sym, permanent)
...@@ -5964,7 +5964,10 @@ hppa_encode_label (sym, permanent) ...@@ -5964,7 +5964,10 @@ hppa_encode_label (sym, permanent)
int len = strlen (str); int len = strlen (str);
char *newstr; char *newstr;
newstr = obstack_alloc ((permanent ? &permanent_obstack : saveable_obstack), if (ggc_p)
newstr = ggc_alloc_string (NULL, len + 1);
else
newstr = obstack_alloc ((permanent ? &permanent_obstack : saveable_obstack),
len + 2); len + 2);
if (str[0] == '*') if (str[0] == '*')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment