OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / opth-gen.awk
index 93a9008..19af0ef 100644 (file)
@@ -331,13 +331,7 @@ for (i = 0; i < n_opts; i++) {
        }
 
        len = length (opts[i]);
-       enum = "OPT_" opts[i]
-       if (opts[i] == "finline-limit=" || opts[i] == "Wlarger-than=" \
-           || opts[i] == "ftemplate-depth=")
-               enum = enum "eq"
-       if (opts[i] == "gdwarf+")
-               enum = "OPT_gdwarfplus"
-       gsub ("[^A-Za-z0-9]", "_", enum)
+       enum = opt_enum(opts[i])
 
        # If this switch takes joined arguments, back-chain all
        # subsequent switches to it for which it is a prefix.  If
@@ -364,7 +358,10 @@ for (i = 0; i < n_opts; i++) {
        print "  " enum "," s "/* -" opts[i] " */"
 }
 
-print "  N_OPTS"
+print "  N_OPTS,"
+print "  OPT_SPECIAL_unknown,"
+print "  OPT_SPECIAL_program_name,"
+print "  OPT_SPECIAL_input_file"
 print "};"
 print ""
 print "#endif /* OPTIONS_H */"