OSDN Git Service

* objc.dg/isa-field-1.m: Only run on darwin.
[pf3gnuchains/gcc-fork.git] / gcc / opth-gen.awk
index 92c0e7e..1a63bc9 100644 (file)
@@ -68,12 +68,9 @@ for (i = 0; i < n_opts; i++) {
        if (name == "")
                continue;
 
-       print "/* Set by -" opts[i] "."
-       print "   " help[i] "  */"
-       print "extern int " name ";"
-       print ""
-
-    }
+       print "extern " var_type(flags[i]) name ";"
+}
+print ""
 
 for (i = 0; i < n_opts; i++) {
        name = opt_args("Mask", flags[i])
@@ -141,14 +138,14 @@ print "{"
 for (i = 0; i < n_opts; i++)
        back_chain[i] = "N_OPTS";
 
-       for (i = 0; i < n_opts; i++) {
-               # Combine the flags of identical switches.  Switches
-               # appear many times if they are handled by many front
-               # ends, for example.
-               while( i + 1 != n_opts && opts[i] == opts[i + 1] ) {
-                       flags[i + 1] = flags[i] " " flags[i + 1];
-                       i++;
-               }
+for (i = 0; i < n_opts; i++) {
+       # Combine the flags of identical switches.  Switches
+       # appear many times if they are handled by many front
+       # ends, for example.
+       while( i + 1 != n_opts && opts[i] == opts[i + 1] ) {
+               flags[i + 1] = flags[i] " " flags[i + 1];
+               i++;
+       }
 
        len = length (opts[i]);
        enum = "OPT_" opts[i]