OSDN Git Service

gcc/
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Apr 2008 22:27:22 +0000 (22:27 +0000)
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Apr 2008 22:27:22 +0000 (22:27 +0000)
PR bootstrap/35169
* optc-gen.awk: Work around HP-UX/IA awk bug.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134768 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/optc-gen.awk

index 2c575fd..f37574d 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       PR bootstrap/35169
+       * optc-gen.awk: Work around HP-UX/IA awk bug.
+
 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
index cd10244..f3b41a9 100644 (file)
@@ -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 != "")