(USE_C_ALLOCA): New macro. Define if not using GNU C's builtin alloca.

From-SVN: r2397
This commit is contained in:
James Van Artsdalen 1992-10-11 12:56:41 +00:00
parent 5b970343a7
commit 5c8ad7f4ce
2 changed files with 13 additions and 1 deletions

View 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

View 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