bernhardf reports with Bug 210:
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Apr 2005 04:06:14 +0000 (04:06 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 16 Apr 2005 04:06:14 +0000 (04:06 -0000)
For certain non-gcc compilers, alloca_h is defined (included) but there,
no alloca() is declared.  Fallback to malloc if _ALLOCA_H is defined but
still, there is no alloca() in the included _ALLOCA_H.

scripts/config/zconf.tab.c_shipped

index a5f69a0..bc2225f 100644 (file)
@@ -227,7 +227,7 @@ typedef union YYSTYPE {
 #  define YYSTACK_ALLOC alloca
 # else
 #  ifndef YYSTACK_USE_ALLOCA
-#   if defined (alloca) || defined (_ALLOCA_H)
+#   if defined (alloca) || (defined (_ALLOCA_H) && defined (__GNUC__))
 #    define YYSTACK_ALLOC alloca
 #   else
 #    ifdef __GNUC__