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
This commit is contained in:
parent
45f97e2e08
commit
402cdad5e7
@ -1,3 +1,9 @@
|
|||||||
|
Fri Jul 17 14:58:44 1998 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
|
* alloca.c: Respect USE_C_ALLOCA.
|
||||||
|
* gencheck.c (xmalloc): Ignore __GNUC__ for definition.
|
||||||
|
* gengenrtl.c (xmalloc): Likewise.
|
||||||
|
|
||||||
Fri Jul 17 14:18:14 1998 Richard Henderson <rth@cygnus.com>
|
Fri Jul 17 14:18:14 1998 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
* loop.h (struct induction): Add no_const_addval.
|
* loop.h (struct induction): Add no_const_addval.
|
||||||
|
@ -36,8 +36,9 @@
|
|||||||
#include "blockinput.h"
|
#include "blockinput.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If compiling with GCC 2, this file's not needed. */
|
/* If compiling with GCC 2, this file's not needed. Except of course if
|
||||||
#if !defined (__GNUC__) || __GNUC__ < 2
|
the C alloca is explicitly requested. */
|
||||||
|
#if defined (USE_C_ALLOCA) || !defined (__GNUC__) || __GNUC__ < 2
|
||||||
|
|
||||||
/* If someone has defined alloca as a macro,
|
/* If someone has defined alloca as a macro,
|
||||||
there must be some other way alloca is supposed to work. */
|
there must be some other way alloca is supposed to work. */
|
||||||
|
@ -61,7 +61,7 @@ int main (argc, argv)
|
|||||||
return 0;
|
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
|
/* 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
|
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) */
|
we link against libiberty.a. (ghazi@caip.rutgers.edu 6/3/98) */
|
||||||
@ -73,10 +73,11 @@ xmalloc (nbytes)
|
|||||||
|
|
||||||
if (!tmp)
|
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);
|
exit (FATAL_EXIT_CODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
#endif /* USE_C_ALLOCA && !__GNUC__ */
|
#endif /* USE_C_ALLOCA */
|
||||||
|
@ -22,10 +22,6 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#include "hconfig.h"
|
#include "hconfig.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include "obstack.h"
|
|
||||||
#define obstack_chunk_alloc xmalloc
|
|
||||||
#define obstack_chunk_free free
|
|
||||||
|
|
||||||
#define NO_GENRTL_H
|
#define NO_GENRTL_H
|
||||||
#include "rtl.h"
|
#include "rtl.h"
|
||||||
|
|
||||||
@ -284,7 +280,7 @@ gencode (f)
|
|||||||
gendef (f, *fmt);
|
gendef (f, *fmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(USE_C_ALLOCA) && !defined(__GNUC__)
|
#if defined(USE_C_ALLOCA)
|
||||||
char *
|
char *
|
||||||
xmalloc (nbytes)
|
xmalloc (nbytes)
|
||||||
int nbytes;
|
int nbytes;
|
||||||
@ -293,13 +289,14 @@ xmalloc (nbytes)
|
|||||||
|
|
||||||
if (!tmp)
|
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);
|
exit (FATAL_EXIT_CODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
#endif /* USE_C_ALLOCA && !__GNUC__ */
|
#endif /* USE_C_ALLOCA */
|
||||||
|
|
||||||
int
|
int
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user