(USE_C_ALLOCA): New macro. Define if not using GNU C's builtin alloca.
authorJames Van Artsdalen <jrv@gnu.org>
Sun, 11 Oct 1992 12:56:41 +0000 (12:56 +0000)
committerJames Van Artsdalen <jrv@gnu.org>
Sun, 11 Oct 1992 12:56:41 +0000 (12:56 +0000)
From-SVN: r2397

gcc/config/i386/xm-aix.h
gcc/config/i386/xm-sysv4.h

index e3e673972c36b10665b475cccaf7d3a0303c0fd9..d434a53e92315e5c520ffe2335020bb01cf43d26 100644 (file)
@@ -49,6 +49,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define bzero(a,b) memset (a,0,b)
 #define bcmp(a,b,c) memcmp (a,b,c)
 
+/* If compiled with GNU C, use the built-in alloca.  */
+#undef alloca
 #ifdef __GNUC__
-#define alloca(n) __builtin_alloca(n)
+#define alloca __builtin_alloca
+#else
+#define USE_C_ALLOCA
 #endif
index 955c42d7741247e77d68fb2270060f02e9974613..6aa397c6b3278cc6d02f7535d66784fb1bb927e7 100644 (file)
@@ -2,3 +2,11 @@
 
 #include "xm-i386.h"
 #include "xm-svr4.h"
+
+/* If compiled with GNU C, use the built-in alloca.  */
+#undef alloca
+#ifdef __GNUC__
+#define alloca __builtin_alloca
+#else
+#define USE_C_ALLOCA
+#endif