OSDN Git Service

2001-07-30 H.J. Lu (hjl@gnu.org)
[pf3gnuchains/gcc-fork.git] / gcc / ggc-none.c
index e05107e..01399d2 100644 (file)
@@ -1,5 +1,5 @@
 /* Null garbage collection for the GNU compiler.
-   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
 
    This file is part of GNU CC.
 
    need GC at all.  This prevents problems with pulling in all the
    tree stuff.  */
 
-/* We are used by gengenrtl, before genrtl.h exists.  But we don't 
-   need it either.  */
-#define NO_GENRTL_H
-
 #include "config.h"
 #include "system.h"
-#include "rtl.h"
-#include "tm_p.h"
 #include "ggc.h"
 
-/* For now, keep using the old obstack scheme in the gen* programs.  */
-int ggc_p = 0;
-
 void *
-ggc_alloc_obj (size, zero)
+ggc_alloc (size)
      size_t size;
-     int zero;
 {
-  void *p = xmalloc (size);
-  if (zero)
-    memset (p, 0, size);
-  return p;
+  return xmalloc (size);
 }