xm-mot3300.h (alloca): Properly declare if __STDC__.
authorJeffrey A Law <law@cygnus.com>
Fri, 19 Sep 1997 03:12:55 +0000 (03:12 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 19 Sep 1997 03:12:55 +0000 (21:12 -0600)
        * 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
gcc/config/m68k/xm-mot3300.h
gcc/config/rs6000/xm-rs6000.h
gcc/config/rs6000/xm-sysv4.h

index b84b5e321cd5f9a8669e57c41a1172bf92af260e..1cee6de9652918c18471e0df845f9960e3ca0542 100644 (file)
@@ -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.
index b20be33f99e024a37e1bb27b331b5c39b96f60a5..0c1ec676115e6491970f0195a89899708ca1b7c4 100644 (file)
@@ -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.  */
 
index 9dbd41ed7babdd68313f5a87d0c64172223502e6..ddb2fab5595eb5d5832dbba444bd009044eba1b3 100644 (file)
@@ -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
index 5089c7dd467259812b98e9fbdd13b26c338e0700..f892f9e18572669594de5f88d6f868030dd60b65 100644 (file)
@@ -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