diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-19 03:12:55 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-19 03:12:55 +0000 |
commit | fe274e289933186d790d374de245cc293b1a4c6b (patch) | |
tree | 1cf97f7972cbaadc1fb26405dfc3a6ad0d7103b2 | |
parent | f94815084f77d174df569e6c8521f60814c0856e (diff) | |
download | gcc-fe274e289933186d790d374de245cc293b1a4c6b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15557 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/m68k/xm-mot3300.h | 4 | ||||
-rw-r--r-- | gcc/config/rs6000/xm-rs6000.h | 3 | ||||
-rw-r--r-- | gcc/config/rs6000/xm-sysv4.h | 3 |
4 files changed, 17 insertions, 0 deletions
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 <jason@yorick.cygnus.com> * 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 |