summaryrefslogtreecommitdiffstats
path: root/contrib/gdb/libiberty/alloca-norm.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gdb/libiberty/alloca-norm.h')
-rw-r--r--contrib/gdb/libiberty/alloca-norm.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/gdb/libiberty/alloca-norm.h b/contrib/gdb/libiberty/alloca-norm.h
new file mode 100644
index 0000000..8d91b5a
--- /dev/null
+++ b/contrib/gdb/libiberty/alloca-norm.h
@@ -0,0 +1,16 @@
+/* "Normal" configuration for alloca. */
+
+#ifdef __GNUC__
+#define alloca __builtin_alloca
+#else /* not __GNUC__ */
+#ifdef sparc
+#include <alloca.h>
+extern char *__builtin_alloca(); /* Stupid include file doesn't declare it */
+#else
+#ifdef __STDC__
+PTR alloca (size_t);
+#else
+PTR alloca (); /* must agree with functions.def */
+#endif
+#endif /* sparc */
+#endif /* not __GNUC__ */
OpenPOWER on IntegriCloud