]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/35169 (SIGSEGV for stack growth failure while building 4.2.3)
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 2 May 2008 04:15:36 +0000 (04:15 +0000)
committerRalf Wildenhues <rwild@gcc.gnu.org>
Fri, 2 May 2008 04:15:36 +0000 (04:15 +0000)
gcc/
PR bootstrap/35169
* optc-gen.awk: Work around HP-UX/IA awk bug.

From-SVN: r134881

gcc/ChangeLog
gcc/optc-gen.awk

index f0f12a657e7b7ab661963a028baed5b48328bb00..6970062441116f1b4fe04c78e7ef91952a20eafa 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       PR bootstrap/35169
+       * optc-gen.awk: Work around HP-UX/IA awk bug.
+
 2008-05-01  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/36093
index d5fcd9fadbdc18845fd70ada6044a8df5a3f3d5a..4f06975fa312346c79e0e0ea12a4ab6ee0430c81 100644 (file)
@@ -188,8 +188,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 != "")