aboutsummaryrefslogtreecommitdiff
path: root/gcc/gengenrtl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1998-07-17 08:00:11 -0700
committerRichard Henderson <rth@gcc.gnu.org>1998-07-17 08:00:11 -0700
commit402cdad5e7e27154bfeb296fbcdc67a30cf586c9 (patch)
tree80b89240a48844dc4084342e504e7630722b7734 /gcc/gengenrtl.c
parent45f97e2e08b016d585fd38f932ee7d2ca9302acf (diff)
downloadgcc-402cdad5e7e27154bfeb296fbcdc67a30cf586c9.zip
gcc-402cdad5e7e27154bfeb296fbcdc67a30cf586c9.tar.gz
gcc-402cdad5e7e27154bfeb296fbcdc67a30cf586c9.tar.bz2
alloca.c: Respect USE_C_ALLOCA.
* alloca.c: Respect USE_C_ALLOCA. * gencheck.c (xmalloc): Ignore __GNUC__ for definition. * gengenrtl.c (xmalloc): Likewise. From-SVN: r21264
Diffstat (limited to 'gcc/gengenrtl.c')
-rw-r--r--gcc/gengenrtl.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c
index ade07ff..73eb39d 100644
--- a/gcc/gengenrtl.c
+++ b/gcc/gengenrtl.c
@@ -22,10 +22,6 @@ Boston, MA 02111-1307, USA. */
#include "hconfig.h"
#include "system.h"
-#include "obstack.h"
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
#define NO_GENRTL_H
#include "rtl.h"
@@ -284,7 +280,7 @@ gencode (f)
gendef (f, *fmt);
}
-#if defined(USE_C_ALLOCA) && !defined(__GNUC__)
+#if defined(USE_C_ALLOCA)
char *
xmalloc (nbytes)
int nbytes;
@@ -293,13 +289,14 @@ xmalloc (nbytes)
if (!tmp)
{
- fprintf (stderr, "can't allocate %d bytes (out of virtual memory)\n", nbytes);
+ fprintf (stderr, "can't allocate %d bytes (out of virtual memory)\n",
+ nbytes);
exit (FATAL_EXIT_CODE);
}
return tmp;
}
-#endif /* USE_C_ALLOCA && !__GNUC__ */
+#endif /* USE_C_ALLOCA */
int
main(argc, argv)