re PR bootstrap/35169 (SIGSEGV for stack growth failure while building 4.2.3)
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 28 Apr 2008 22:27:22 +0000 (22:27 +0000)
committerRalf Wildenhues <rwild@gcc.gnu.org>
Mon, 28 Apr 2008 22:27:22 +0000 (22:27 +0000)
gcc/
PR bootstrap/35169
* optc-gen.awk: Work around HP-UX/IA awk bug.

From-SVN: r134768

gcc/ChangeLog
gcc/optc-gen.awk

index 2c575fd08e1d61d76b6009475968fd32e6e998ee..f37574d4521d2f7b94cd32ea1b370f347180ad8a 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       PR bootstrap/35169
+       * optc-gen.awk: Work around HP-UX/IA awk bug.
+
 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
index cd1024406daf9f0d59a83e92d641215bf1e873ea..f3b41a9677875062dbdec9eb7301a3ebd4591670 100644 (file)
@@ -189,8 +189,11 @@ for (i = 0; i < n_opts; i++) {
                                idx = -1;
                }
        }
-       printf("  { %c-%s%c,\n    %s,\n    %s, %u, %d,\n",
-              quote, opts[i], quote, hlp, back_chain[i], len, idx)
+       # Split the printf after %u to work around an ia64-hp-hpux11.23
+       # awk bug.
+       printf("  { %c-%s%c,\n    %s,\n    %s, %u,",
+              quote, opts[i], quote, hlp, back_chain[i], len)
+       printf(" %d,\n", idx)
        condition = opt_args("Condition", flags[i])
        cl_flags = switch_flags(flags[i])
        if (condition != "")