From: Ralf Wildenhues Date: Fri, 2 May 2008 04:15:36 +0000 (+0000) Subject: re PR bootstrap/35169 (SIGSEGV for stack growth failure while building 4.2.3) X-Git-Tag: prereleases/gcc-4.2.4-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6580618712f227211a01e6735f70e5cbec5a4388;p=thirdparty%2Fgcc.git re PR bootstrap/35169 (SIGSEGV for stack growth failure while building 4.2.3) gcc/ PR bootstrap/35169 * optc-gen.awk: Work around HP-UX/IA awk bug. From-SVN: r134881 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0f12a657e7b..697006244111 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-02 Ralf Wildenhues + + PR bootstrap/35169 + * optc-gen.awk: Work around HP-UX/IA awk bug. + 2008-05-01 Richard Guenther PR middle-end/36093 diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index d5fcd9fadbdc..4f06975fa312 100644 --- a/gcc/optc-gen.awk +++ b/gcc/optc-gen.awk @@ -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 != "")