PING^2: [PATCH] PR bootstrap/35169: HP-UX/IA awk bug
Ralf Wildenhues
Ralf.Wildenhues@gmx.de
Thu Apr 24 21:46:00 GMT 2008
PING^2! This really simple patch has been confirmed to work:
<http://gcc.gnu.org/ml/gcc-patches/2008-03/msg02037.html>
So can somebody please approve it? Thanks.
* Ralf Wildenhues wrote on Mon, Mar 31, 2008 at 11:18:15PM CEST:
> GCC PR 35169 uncovers an awk printf %u bug on ia64-hp-hpux11.23 not
> present on HP-UX/PA. I confirmed that the patch against GCC produces
> a correct options.c with its awk, and of course with GNU awk.
> OK for trunk, 4.3, 4.2, and 4.1?
>
> This is a 4.1 regression introduced inadvertently on 2006-05-16
> (by adding another output field after the %u). I checked *.awk
> files in GCC for other instances of this.
> gcc/ChangeLog:
> 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
>
> PR bootstrap/35169
> * optc-gen.awk: Work around HP-UX/IA awk bug.
>
> diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk
> index cd10244..717f384 100644
> --- a/gcc/optc-gen.awk
> +++ b/gcc/optc-gen.awk
> @@ -189,8 +189,10 @@ 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 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)
> condition = opt_args("Condition", flags[i])
> cl_flags = switch_flags(flags[i])
> if (condition != "")
More information about the Gcc-patches
mailing list