From 4d231df749a870f47fe356b27193a96be1efc0a1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 16 Oct 2000 13:55:24 +0000 Subject: [PATCH] h8300.c: Remove obstack. 2000-10-16 Kazu Hirata * config/h8300/h8300.c: Remove obstack. From-SVN: r36880 --- gcc/ChangeLog | 4 ++++ gcc/config/h8300/h8300.c | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 566515cf12f..77dc9657975 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-10-16 Kazu Hirata + + * config/h8300/h8300.c: Remove obstack. + 2000-10-16 Jakub Jelinek * rtlanal.c (may_trap_p): Check operand modes of COMPARE. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index c81cac95b0d..7abe9a7bebc 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -37,7 +37,6 @@ Boston, MA 02111-1307, USA. */ #include "recog.h" #include "expr.h" #include "function.h" -#include "obstack.h" #include "toplev.h" #include "c-pragma.h" #include "tm_p.h" @@ -3045,8 +3044,6 @@ h8300_valid_machine_decl_attribute (decl, attributes, attr, args) return 0; } -extern struct obstack *saveable_obstack; - void h8300_encode_label (decl) tree decl; @@ -3055,7 +3052,7 @@ h8300_encode_label (decl) int len = strlen (str); char *newstr; - newstr = obstack_alloc (saveable_obstack, len + 2); + newstr = ggc_alloc_string (NULL, len + 1); strcpy (newstr + 1, str); *newstr = '&';