diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2008-04-28 22:27:22 +0000 |
---|---|---|
committer | Ralf Wildenhues <rwild@gcc.gnu.org> | 2008-04-28 22:27:22 +0000 |
commit | b1c61c7efd8b570b149d6953df4a9e5a06918801 (patch) | |
tree | 8d3f2727f394693e275dabff5067f919ffbc3d46 /gcc/optc-gen.awk | |
parent | 805100b5e252563c8de8bb8ce17e5b3461d5b15f (diff) | |
download | gcc-b1c61c7efd8b570b149d6953df4a9e5a06918801.zip gcc-b1c61c7efd8b570b149d6953df4a9e5a06918801.tar.gz gcc-b1c61c7efd8b570b149d6953df4a9e5a06918801.tar.bz2 |
re PR bootstrap/35169 (SIGSEGV for stack growth failure while building 4.2.3)
gcc/
PR bootstrap/35169
* optc-gen.awk: Work around HP-UX/IA awk bug.
From-SVN: r134768
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 cd102440..f3b41a9 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 != "") |