]> git.saurik.com Git - bison.git/commitdiff
* src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
authorAkim Demaille <akim@epita.fr>
Thu, 27 Dec 2001 18:30:40 +0000 (18:30 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 27 Dec 2001 18:30:40 +0000 (18:30 +0000)
cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
Sparc, as they were causing more porting problems than the
(minor) performance improvement was worth.

ChangeLog
NEWS
src/bison.simple

index 66f16ad411bdaf1983052f46db0099bfc2bb42b9..f24b35b24f6d9f013a6913d0b410d96af827f141 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-12-27  Paul Eggert  <eggert@twinsun.com>
+
+       * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
+       cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
+       Sparc, as they were causing more porting problems than the
+       (minor) performance improvement was worth.
+
 2001-12-22  Akim Demaille  <akim@epita.fr>
 
        * src/output.c (output_short_table, output_short_or_char_table):
diff --git a/NEWS b/NEWS
index cb5c0325faddf96618099956a7e2197946258d3b..145620e48fe2c856c045a4f945143a4f5ad5d85c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,9 @@ Changes in version 1.30i:
   If YYSTACK_USE_ALLOCA is defined to 0, then the parsers will use
   malloc exclusively.  Since 1.29, but was not NEWS'ed.
 
+  alloca is used only when compiled with GCC, to avoid portability
+  problems as on AIX.
+
 * Bug fixes
 
 Changes in version 1.30h:
index 72f18becbf0f9021f789538b0b2e6360e39c11ca..e1da7ec16d7688d2512965d1884a57df60bb523f 100644 (file)
 #    define YYSTACK_ALLOC alloca
 #    define YYSIZE_T YYSTD (size_t)
 #   else
-#    if defined (__GNUC__) || defined (_AIX) || defined (__hpux)
+#    ifdef __GNUC__
 #     define YYSTACK_ALLOC __builtin_alloca
 #    endif
-#    ifndef __GNUC__
-#     ifdef _AIX
- #     pragma alloca
-#     endif
-#     if defined (__sgi) || defined (__sparc__) || defined (__sparc) || defined (__sun)
-#      include <alloca.h> /* INFRINGES ON USER NAME SPACE */
-#      define YYSTACK_ALLOC alloca
-#      define YYSIZE_T YYSTD (size_t)
-#     endif
-#    endif
 #   endif
 #  endif
 # endif