aboutsummaryrefslogtreecommitdiff
path: root/gcc/optc-gen.awk
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2005-05-15 08:10:10 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2005-05-15 08:10:10 +0000
commitb167666c7f863ee8e551fa6720460ded30fca08d (patch)
tree35e4c21a7369fe5539b33cc05d3f15893c262aed /gcc/optc-gen.awk
parentb078dfbf39bdea09e613beb800c8261d57ba4c3b (diff)
downloadgcc-b167666c7f863ee8e551fa6720460ded30fca08d.zip
gcc-b167666c7f863ee8e551fa6720460ded30fca08d.tar.gz
gcc-b167666c7f863ee8e551fa6720460ded30fca08d.tar.bz2
* optc-gen.awk: Remove excess indentation.
From-SVN: r99714
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r--gcc/optc-gen.awk72
1 files changed, 36 insertions, 36 deletions
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk
index ebf6a44..5476674 100644
--- a/gcc/optc-gen.awk
+++ b/gcc/optc-gen.awk
@@ -98,47 +98,47 @@ print "const struct cl_option cl_options[] =\n{"
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]
- if (opts[i] == "finline-limit=")
- enum = enum "eq"
- gsub ("[^A-Za-z0-9]", "_", enum)
-
- # If this switch takes joined arguments, back-chain all
- # subsequent switches to it for which it is a prefix. If
- # a later switch S is a longer prefix of a switch T, T
- # will be back-chained to S in a later iteration of this
- # for() loop, which is what we want.
- if (flag_set_p("Joined.*", flags[i])) {
- for (j = i + 1; j < n_opts; j++) {
- if (substr (opts[j], 1, len) != opts[i])
- break;
- back_chain[j] = enum;
- }
+ len = length (opts[i]);
+ enum = "OPT_" opts[i]
+ if (opts[i] == "finline-limit=")
+ enum = enum "eq"
+ gsub ("[^A-Za-z0-9]", "_", enum)
+
+ # If this switch takes joined arguments, back-chain all
+ # subsequent switches to it for which it is a prefix. If
+ # a later switch S is a longer prefix of a switch T, T
+ # will be back-chained to S in a later iteration of this
+ # for() loop, which is what we want.
+ if (flag_set_p("Joined.*", flags[i])) {
+ for (j = i + 1; j < n_opts; j++) {
+ if (substr (opts[j], 1, len) != opts[i])
+ break;
+ back_chain[j] = enum;
}
+ }
- s = substr(" ", length (opts[i]))
- if (i + 1 == n_opts)
- comma = ""
+ s = substr(" ", length (opts[i]))
+ if (i + 1 == n_opts)
+ comma = ""
- if (help[i] == "")
- hlp = "0"
- else
- hlp = quote help[i] quote;
+ if (help[i] == "")
+ hlp = "0"
+ else
+ hlp = quote help[i] quote;
- printf(" { %c-%s%c,\n %s,\n %s, %u, %s, %s, %s }%s\n",
- quote, opts[i], quote, hlp, back_chain[i], len,
- switch_flags(flags[i]),
- var_ref(flags[i]), var_set(flags[i]), comma)
+ printf(" { %c-%s%c,\n %s,\n %s, %u, %s, %s, %s }%s\n",
+ quote, opts[i], quote, hlp, back_chain[i], len,
+ switch_flags(flags[i]),
+ var_ref(flags[i]), var_set(flags[i]), comma)
}
print "};"