Commit 4d231df7 by Kazu Hirata Committed by Kazu Hirata

h8300.c: Remove obstack.

2000-10-16  Kazu Hirata  <kazu@hxi.com>

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

From-SVN: r36880
parent 1df1abe2
2000-10-16 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c: Remove obstack.
2000-10-16 Jakub Jelinek <jakub@redhat.com> 2000-10-16 Jakub Jelinek <jakub@redhat.com>
* rtlanal.c (may_trap_p): Check operand modes of COMPARE. * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
......
...@@ -37,7 +37,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -37,7 +37,6 @@ Boston, MA 02111-1307, USA. */
#include "recog.h" #include "recog.h"
#include "expr.h" #include "expr.h"
#include "function.h" #include "function.h"
#include "obstack.h"
#include "toplev.h" #include "toplev.h"
#include "c-pragma.h" #include "c-pragma.h"
#include "tm_p.h" #include "tm_p.h"
...@@ -3045,8 +3044,6 @@ h8300_valid_machine_decl_attribute (decl, attributes, attr, args) ...@@ -3045,8 +3044,6 @@ h8300_valid_machine_decl_attribute (decl, attributes, attr, args)
return 0; return 0;
} }
extern struct obstack *saveable_obstack;
void void
h8300_encode_label (decl) h8300_encode_label (decl)
tree decl; tree decl;
...@@ -3055,7 +3052,7 @@ h8300_encode_label (decl) ...@@ -3055,7 +3052,7 @@ h8300_encode_label (decl)
int len = strlen (str); int len = strlen (str);
char *newstr; char *newstr;
newstr = obstack_alloc (saveable_obstack, len + 2); newstr = ggc_alloc_string (NULL, len + 1);
strcpy (newstr + 1, str); strcpy (newstr + 1, str);
*newstr = '&'; *newstr = '&';
......
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