summaryrefslogtreecommitdiff
path: root/gcc/gencheck.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/gencheck.c
parent45f97e2e08b016d585fd38f932ee7d2ca9302acf (diff)
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/gencheck.c')
-rw-r--r--gcc/gencheck.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/gencheck.c b/gcc/gencheck.c
index f7548ceda0c..e53f4ab7ad5 100644
--- a/gcc/gencheck.c
+++ b/gcc/gencheck.c
@@ -61,7 +61,7 @@ int main (argc, argv)
return 0;
}
-#if defined(USE_C_ALLOCA) && !defined(__GNUC__)
+#if defined(USE_C_ALLOCA)
/* FIXME: We only need an xmalloc definition because we are forced to
link with alloca.o on some platforms. This should go away if/when
we link against libiberty.a. (ghazi@caip.rutgers.edu 6/3/98) */
@@ -73,10 +73,11 @@ 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 */