From: Ralf Wildenhues Date: Mon, 28 Apr 2008 22:27:22 +0000 (+0000) Subject: re PR bootstrap/35169 (SIGSEGV for stack growth failure while building 4.2.3) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1c61c7efd8b570b149d6953df4a9e5a06918801;p=gcc.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: r134768 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c575fd08e1..f37574d4521 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-04-28 Ralf Wildenhues + + PR bootstrap/35169 + * optc-gen.awk: Work around HP-UX/IA awk bug. + 2008-04-28 Danny Smith * config/i386/cygming-crtend.c (register_frame_ctor): Revert my diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index cd1024406da..f3b41a96778 100644 --- a/gcc/optc-gen.awk +++ b/gcc/optc-gen.awk @@ -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 != "")