aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-09-19 03:12:55 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-18 21:12:55 -0600
commit185110146ba51ce6e6506e405c2677e127338230 (patch)
tree1cf97f7972cbaadc1fb26405dfc3a6ad0d7103b2
parent4ac480d6052ec2c98b6cff0c4f3f959cfc68b1dc (diff)
downloadgcc-185110146ba51ce6e6506e405c2677e127338230.zip
gcc-185110146ba51ce6e6506e405c2677e127338230.tar.gz
gcc-185110146ba51ce6e6506e405c2677e127338230.tar.bz2
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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/m68k/xm-mot3300.h4
-rw-r--r--gcc/config/rs6000/xm-rs6000.h3
-rw-r--r--gcc/config/rs6000/xm-sysv4.h3
4 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b84b5e3..1cee6de 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 b20be33f..0c1ec67 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 9dbd41e..ddb2fab 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 5089c7d..f892f9e 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