From 185110146ba51ce6e6506e405c2677e127338230 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Fri, 19 Sep 1997 03:12:55 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++++ gcc/config/m68k/xm-mot3300.h | 4 ++++ gcc/config/rs6000/xm-rs6000.h | 3 +++ gcc/config/rs6000/xm-sysv4.h | 3 +++ 4 files changed, 17 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b84b5e321cd..1cee6de9652 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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 * final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code. diff --git a/gcc/config/m68k/xm-mot3300.h b/gcc/config/m68k/xm-mot3300.h index b20be33f99e..0c1ec676115 100644 --- a/gcc/config/m68k/xm-mot3300.h +++ b/gcc/config/m68k/xm-mot3300.h @@ -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. */ diff --git a/gcc/config/rs6000/xm-rs6000.h b/gcc/config/rs6000/xm-rs6000.h index 9dbd41ed7ba..ddb2fab5595 100644 --- a/gcc/config/rs6000/xm-rs6000.h +++ b/gcc/config/rs6000/xm-rs6000.h @@ -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 diff --git a/gcc/config/rs6000/xm-sysv4.h b/gcc/config/rs6000/xm-sysv4.h index 5089c7dd467..f892f9e1857 100644 --- a/gcc/config/rs6000/xm-sysv4.h +++ b/gcc/config/rs6000/xm-sysv4.h @@ -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 -- 2.30.2