diff options
author | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-28 22:27:22 +0000 |
---|---|---|
committer | rwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-28 22:27:22 +0000 |
commit | 13c2c3942e2eca1c9338fafae5eff0fb0f6cdc17 (patch) | |
tree | 8d3f2727f394693e275dabff5067f919ffbc3d46 /gcc/optc-gen.awk | |
parent | c12e7556c0e06b4c0e40731e2b3501f09243272b (diff) | |
download | gcc-13c2c3942e2eca1c9338fafae5eff0fb0f6cdc17.tar.gz |
gcc/
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
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r-- | gcc/optc-gen.awk | 7 |
1 files changed, 5 insertions, 2 deletions
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 != "") |