]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/alloca-conf.h
alloca-conf.h (alloca): Don't use Gcc builtin or <alloca.h>.
[thirdparty/gcc.git] / libiberty / alloca-conf.h
index 4eb87d3cfa4dd7d3608190995cf9577127dec49d..9c3eea396c19359acacad49f735999982ec56410 100644 (file)
@@ -1,6 +1,6 @@
 #include "config.h"
 
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(C_ALLOCA)
 # ifndef alloca
 #  define alloca __builtin_alloca
 # endif
@@ -8,7 +8,7 @@
 #  ifdef _AIX
  #pragma alloca
 #  else
-#  ifdef HAVE_ALLOCA_H
+#  if defined(HAVE_ALLOCA_H) && !defined(C_ALLOCA)
 #   include <alloca.h>
 #  else /* ! defined (HAVE_ALLOCA_H) */
 #   ifdef __STDC__