This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PING^2: [PATCH] PR bootstrap/35169: HP-UX/IA awk bug


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 != "")


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]