diff options
Diffstat (limited to 'libiberty/alloca-norm.h')
-rw-r--r-- | libiberty/alloca-norm.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libiberty/alloca-norm.h b/libiberty/alloca-norm.h new file mode 100644 index 00000000000..394a6533277 --- /dev/null +++ b/libiberty/alloca-norm.h @@ -0,0 +1,23 @@ +/* "Normal" configuration for alloca. */ + +#ifdef __GNUC__ +#define alloca __builtin_alloca +#else /* ! defined (__GNUC__) */ +#if defined (sparc) && defined (sun) +#include <alloca.h> +#ifdef __STDC__ +extern void *__builtin_alloca(); +#else /* ! defined (__STDC__) */ +extern char *__builtin_alloca(); /* Stupid include file doesn't declare it */ +#endif /* ! defined (__STDC__) */ +#else /* ! defined (sparc) || ! defined (sun) */ +#ifdef __STDC__ +PTR alloca (size_t); +#else /* ! defined (__STDC__) */ +PTR alloca (); /* must agree with functions.def */ +#endif /* ! defined (__STDC__) */ +#endif /* ! defined (sparc) || ! defined (sun) */ +#ifdef _WIN32 +#include <malloc.h> +#endif +#endif /* ! defined (__GNUC__) */ |