This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PING^2: [PATCH] PR bootstrap/35169: HP-UX/IA awk bug
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, bugzilla-gcc at thewrittenword dot com
- Date: Tue, 29 Apr 2008 20:05:25 +0200
- Subject: Re: PING^2: [PATCH] PR bootstrap/35169: HP-UX/IA awk bug
- References: <20080331211815.GH8708@ins.uni-bonn.de> <20080424204833.GC13185@ins.uni-bonn.de> <4814E0E5.7000906@codesourcery.com>
Hi Mark,
* Mark Mitchell wrote on Sun, Apr 27, 2008 at 10:24:05PM CEST:
> Ralf Wildenhues wrote:
>>> PR bootstrap/35169
>>> * optc-gen.awk: Work around HP-UX/IA awk bug.
>
> OK, but:
>
>>> + # Split the printf after %u to work around an HP-UX awk bug.
>>> + printf(" { %c-%s%c,\n %s,\n %s, %u,",
>>> + quote, opts[i], quote, hlp, back_chain[i], len)
>>> + printf(" %d,\n", idx)
>
> update the comment to say what version of awk on what version of HP-UX,
> please.
Thanks for the review. Here's what I installed to trunk last night,
I'll put it on the other branches in a couple of days.
Cheers,
Ralf
2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR bootstrap/35169
* optc-gen.awk: Work around HP-UX/IA awk bug.
Index: gcc/optc-gen.awk
===================================================================
--- gcc/optc-gen.awk (Revision 134760)
+++ gcc/optc-gen.awk (Arbeitskopie)
@@ -189,8 +189,11 @@
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 != "")