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> 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. * final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code.
......
...@@ -36,8 +36,12 @@ Boston, MA 02111-1307, USA. */ ...@@ -36,8 +36,12 @@ Boston, MA 02111-1307, USA. */
/* do not use alloca from -lPW with cc, because function epilogues use %sp */ /* do not use alloca from -lPW with cc, because function epilogues use %sp */
#ifndef __GNUC__ #ifndef __GNUC__
#define USE_C_ALLOCA #define USE_C_ALLOCA
#ifdef __STDC__
extern void *alloca ();
#else
extern char *alloca (); extern char *alloca ();
#endif #endif
#endif
/* Override part of the obstack macros. */ /* Override part of the obstack macros. */
......
...@@ -44,6 +44,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -44,6 +44,9 @@ Boston, MA 02111-1307, USA. */
/* If not compiled with GNU C, use the C alloca and use only int bitfields. */ /* If not compiled with GNU C, use the C alloca and use only int bitfields. */
#ifndef __GNUC__ #ifndef __GNUC__
#define USE_C_ALLOCA #define USE_C_ALLOCA
#if __STDC__
extern void *alloca ();
#else
extern char *alloca (); extern char *alloca ();
#define ONLY_INT_FIELDS #define ONLY_INT_FIELDS
#endif #endif
......
...@@ -51,6 +51,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -51,6 +51,9 @@ Boston, MA 02111-1307, USA. */
/* if not compiled with GNU C, use the C alloca and use only int bitfields. */ /* if not compiled with GNU C, use the C alloca and use only int bitfields. */
#ifndef __GNUC__ #ifndef __GNUC__
#define USE_C_ALLOCA #define USE_C_ALLOCA
#ifdef __STDC__
extern void *alloca ();
#else
extern char *alloca (); extern char *alloca ();
#undef ONLY_INT_FIELDS #undef ONLY_INT_FIELDS
#define 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