Fixup --enable-target-optspace
[official-gcc.git] / libiberty / alloca-norm.h
blobbda4fc049adfe421dc66f21cc546ae696fbcae48
1 /* "Normal" configuration for alloca. */
3 #ifdef __GNUC__
4 #ifndef alloca
5 #define alloca __builtin_alloca
6 #endif
7 #else /* ! defined (__GNUC__) */
8 #if defined (sparc) && defined (sun)
9 #include <alloca.h>
10 #ifdef __STDC__
11 extern void *__builtin_alloca();
12 #else /* ! defined (__STDC__) */
13 extern char *__builtin_alloca(); /* Stupid include file doesn't declare it */
14 #endif /* ! defined (__STDC__) */
15 #else /* ! defined (sparc) || ! defined (sun) */
16 #ifdef __STDC__
17 PTR alloca (size_t);
18 #else /* ! defined (__STDC__) */
19 PTR alloca (); /* must agree with functions.def */
20 #endif /* ! defined (__STDC__) */
21 #endif /* ! defined (sparc) || ! defined (sun) */
22 #ifdef _WIN32
23 #include <malloc.h>
24 #endif
25 #endif /* ! defined (__GNUC__) */