(USE_C_ALLOCA): New macro. Define if not using GNU C's builtin alloca.
From-SVN: r2397
This commit is contained in:
parent
5b970343a7
commit
5c8ad7f4ce
@ -49,6 +49,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#define bzero(a,b) memset (a,0,b)
|
#define bzero(a,b) memset (a,0,b)
|
||||||
#define bcmp(a,b,c) memcmp (a,b,c)
|
#define bcmp(a,b,c) memcmp (a,b,c)
|
||||||
|
|
||||||
|
/* If compiled with GNU C, use the built-in alloca. */
|
||||||
|
#undef alloca
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define alloca(n) __builtin_alloca(n)
|
#define alloca __builtin_alloca
|
||||||
|
#else
|
||||||
|
#define USE_C_ALLOCA
|
||||||
#endif
|
#endif
|
||||||
|
@ -2,3 +2,11 @@
|
|||||||
|
|
||||||
#include "xm-i386.h"
|
#include "xm-i386.h"
|
||||||
#include "xm-svr4.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
|
||||||
|
Loading…
Reference in New Issue
Block a user