diff options
author | Kazu Hirata <kazu@hxi.com> | 2000-10-16 13:55:24 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2000-10-16 13:55:24 +0000 |
commit | 4d231df749a870f47fe356b27193a96be1efc0a1 (patch) | |
tree | 642b848e5b344827634848db807a0b0a6f9b310a | |
parent | 1df1abe2b02336da4a019b15dfa324436c66aac2 (diff) | |
download | gcc-4d231df749a870f47fe356b27193a96be1efc0a1.zip gcc-4d231df749a870f47fe356b27193a96be1efc0a1.tar.gz gcc-4d231df749a870f47fe356b27193a96be1efc0a1.tar.bz2 |
h8300.c: Remove obstack.
2000-10-16 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c: Remove obstack.
From-SVN: r36880
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 566515c..77dc965 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-10-16 Kazu Hirata <kazu@hxi.com> + + * config/h8300/h8300.c: Remove obstack. + 2000-10-16 Jakub Jelinek <jakub@redhat.com> * 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 c81cac9..7abe9a7 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 = '&'; |