OSDN Git Service

2010-04-28 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / opth-gen.awk
index ecccbdd..cf2ef96 100644 (file)
@@ -1,4 +1,5 @@
-#  Copyright (C) 2003,2004,2005,2006,2007,2008 Free Software Foundation, Inc.
+#  Copyright (C) 2003,2004,2005,2006,2007,2008, 2010
+#  Free Software Foundation, Inc.
 #  Contributed by Kelley Cook, June 2004.
 #  Original code from Neil Booth, May 2003.
 #
@@ -330,10 +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=")
-               enum = enum "eq"
-       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
@@ -348,7 +346,7 @@ for (i = 0; i < n_opts; i++) {
                }
        }
 
-       s = substr("                                     ", length (opts[i]))
+       s = substr("                                         ", length (enum))
        if (i + 1 == n_opts)
                comma = ""