OSDN Git Service

* gcc.dg/vect/vect.exp: Run tests with -funroll-loops for SPU in case
[pf3gnuchains/gcc-fork.git] / gcc / optc-gen.awk
index f0bd8e5..79fe800 100644 (file)
@@ -17,7 +17,7 @@
 # <http://www.gnu.org/licenses/>.
 
 # This Awk script reads in the option records generated from 
-# opt-gather.awk, combines the flags of duplicat options and generates a
+# opt-gather.awk, combines the flags of duplicate options and generates a
 # C file.
 #
 # This program uses functions from opt-functions.awk
@@ -150,7 +150,7 @@ for (i = 0; i < n_opts; i++) {
 
        len = length (opts[i]);
        enum = "OPT_" opts[i]
-       if (opts[i] == "finline-limit=")
+       if (opts[i] == "finline-limit=" || opts[i] == "Wlarger-than=")
                enum = enum "eq"
        gsub ("[^A-Za-z0-9]", "_", enum)
 
@@ -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 != "")