summaryrefslogtreecommitdiffstats
path: root/binutils-2.22/include/alloca-conf.h
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2012-09-10 17:28:19 -0700
committerBen Cheng <bccheng@google.com>2012-09-10 17:28:19 -0700
commit112525715ec3dab782959ebe19f96f4454ec405c (patch)
tree75bd54b67f8356b54904cf95a7135a87945b301e /binutils-2.22/include/alloca-conf.h
parent68ba60c0e44c1187cb582474ebb001d95a7170f6 (diff)
downloadtoolchain_binutils-112525715ec3dab782959ebe19f96f4454ec405c.zip
toolchain_binutils-112525715ec3dab782959ebe19f96f4454ec405c.tar.gz
toolchain_binutils-112525715ec3dab782959ebe19f96f4454ec405c.tar.bz2
Initial checkin of unmodified binutils 2.22.
Change-Id: I8c1bf4cf62df8eb16439021f1a1bac6437f5c470
Diffstat (limited to 'binutils-2.22/include/alloca-conf.h')
-rw-r--r--binutils-2.22/include/alloca-conf.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/binutils-2.22/include/alloca-conf.h b/binutils-2.22/include/alloca-conf.h
new file mode 100644
index 0000000..628a598
--- /dev/null
+++ b/binutils-2.22/include/alloca-conf.h
@@ -0,0 +1,45 @@
+#include "config.h"
+
+/* This is a merge of code recommended in the autoconf-2.61 documentation
+ with that recommended in the autoconf-2.13 documentation, with added
+ tweaks to heed C_ALLOCA. */
+
+#if defined HAVE_ALLOCA_H && !defined C_ALLOCA
+# include <alloca.h>
+#else
+# if defined __GNUC__ && !defined C_ALLOCA
+# if !defined alloca
+# define alloca __builtin_alloca
+# endif
+# else
+# if defined _AIX
+/* Indented so that pre-ansi C compilers will ignore it, rather than
+ choke on it. Some versions of AIX require this to be the first
+ thing seen by the compiler except for comments and preprocessor
+ directives. */
+ #pragma alloca
+# else
+# if defined _MSC_VER && !defined C_ALLOCA
+# include <malloc.h>
+# define alloca _alloca
+# else
+# if !defined alloca
+# if defined __STDC__ || defined __hpux
+# if defined HAVE_STDDEF_H
+# include <stddef.h>
+# if defined __cplusplus
+extern "C" void *alloca (size_t);
+# else
+extern void *alloca (size_t);
+# endif
+# else
+extern void *alloca ();
+# endif
+# else
+extern char *alloca ();
+# endif
+# endif
+# endif
+# endif
+# endif
+#endif