h8300.c: Remove obstack.
authorKazu Hirata <kazu@hxi.com>
Mon, 16 Oct 2000 13:55:24 +0000 (13:55 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 16 Oct 2000 13:55:24 +0000 (13:55 +0000)
2000-10-16  Kazu Hirata  <kazu@hxi.com>

* config/h8300/h8300.c: Remove obstack.

From-SVN: r36880

gcc/ChangeLog
gcc/config/h8300/h8300.c

index 566515cf12f18dfa1f0cf3fb9f5a583ab8ae2ac0..77dc9657975b501cee88a0340c5cb8307482c667 100644 (file)
@@ -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.
index c81cac95b0d9f7d01026760e33c74deb674aac37..7abe9a7bebccf904efe1557fb5b7354c325e67e8 100644 (file)
@@ -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 = '&';