Commit 18511014 by Jeffrey A Law Committed by Jeff Law

xm-mot3300.h (alloca): Properly declare if __STDC__.

        * m68k/xm-mot3300.h (alloca): Properly declare if __STDC__.
        * mips/mips.h (alloca): Likewise.
        * rs6000/xm-rs6000.h (alloca): Likewise.
        * rs6000/xm-sysv4.h: Likewise.
Fixes build problem when using an ANSI compiler that isn't gcc.

From-SVN: r15557
parent 4ac480d6
Thu Sep 18 21:13:40 1997 Jeffrey A Law (law@cygnus.com)
* m68k/xm-mot3300.h (alloca): Properly declare if __STDC__.
* mips/mips.h (alloca): Likewise.
* rs6000/xm-rs6000.h (alloca): Likewise.
* rs6000/xm-sysv4.h: Likewise.
Thu Sep 18 14:22:22 1997 Jason Merrill <jason@yorick.cygnus.com>
* final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code.
......
......@@ -36,8 +36,12 @@ Boston, MA 02111-1307, USA. */
/* do not use alloca from -lPW with cc, because function epilogues use %sp */
#ifndef __GNUC__
#define USE_C_ALLOCA
#ifdef __STDC__
extern void *alloca ();
#else
extern char *alloca ();
#endif
#endif
/* Override part of the obstack macros. */
......
......@@ -44,6 +44,9 @@ Boston, MA 02111-1307, USA. */
/* If not compiled with GNU C, use the C alloca and use only int bitfields. */
#ifndef __GNUC__
#define USE_C_ALLOCA
#if __STDC__
extern void *alloca ();
#else
extern char *alloca ();
#define ONLY_INT_FIELDS
#endif
......
......@@ -51,6 +51,9 @@ Boston, MA 02111-1307, USA. */
/* if not compiled with GNU C, use the C alloca and use only int bitfields. */
#ifndef __GNUC__
#define USE_C_ALLOCA
#ifdef __STDC__
extern void *alloca ();
#else
extern char *alloca ();
#undef ONLY_INT_FIELDS
#define ONLY_INT_FIELDS
......
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