aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-12-11 17:06:49 +0100
committerMartin Liska <mliska@suse.cz>2020-12-16 12:43:56 +0100
commit5137d1ae6a1fe4a3ff8b5983f6e4d9aeb69e5486 (patch)
tree26e16ed4b1b1eb8132fd67665e534c6982746035 /gcc
parent8833eab4461b4b7050f06a231c3311cc1fa87523 (diff)
downloadgcc-5137d1ae6a1fe4a3ff8b5983f6e4d9aeb69e5486.zip
gcc-5137d1ae6a1fe4a3ff8b5983f6e4d9aeb69e5486.tar.gz
gcc-5137d1ae6a1fe4a3ff8b5983f6e4d9aeb69e5486.tar.bz2
Remove Report keyword for options
Since g:7caa49706316e650fb67719e1a1bf3a35054b685 the option is ignored as we print used command line for -fverbose-asm output. gcc/ChangeLog: * doc/options.texi: Remove Report keyword. * opt-functions.awk: Print error when Report keyword is used. * optc-gen.awk: Do not handle Report keyword. * opts.h (struct cl_option): Remove cl_report bitfield flag.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/doc/options.texi3
-rw-r--r--gcc/opt-functions.awk4
-rw-r--r--gcc/optc-gen.awk4
-rw-r--r--gcc/opts.h2
4 files changed, 3 insertions, 10 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi
index a8e83fc..aabfb82 100644
--- a/gcc/doc/options.texi
+++ b/gcc/doc/options.texi
@@ -454,9 +454,6 @@ operands, which is passed to the @samp{warning} function. If an alias
is marked @code{Warn}, the target of the alias must not also be marked
@code{Warn}.
-@item Report
-The state of the option should be printed by @option{-fverbose-asm}.
-
@item Warning
This is a warning option and should be shown as such in
@option{--help} output. This flag does not currently affect anything
diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk
index b4952b8..0c489e0 100644
--- a/gcc/opt-functions.awk
+++ b/gcc/opt-functions.awk
@@ -166,9 +166,11 @@ function switch_bit_fields (flags)
uinteger_flag \
hwi_flag \
flag_init("ToLower", flags) \
- flag_init("Report", flags) \
byte_size_flag
+ if (flag_set_p("Report", flags))
+ print "#error Report option property is dropped"
+
sub(", $", "", result)
return result
}
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk
index be5566b..0c9fa16 100644
--- a/gcc/optc-gen.awk
+++ b/gcc/optc-gen.awk
@@ -332,8 +332,6 @@ for (i = 0; i < n_opts; i++) {
print "#error Ignored option with Warn"
if (var_name(flags[i]) != "")
print "#error Ignored option with Var"
- if (flag_set_p("Report", flags[i]))
- print "#error Ignored option with Report"
}
else if (flag_set_p("Deprecated", flags[i]))
print "#error Deprecated was replaced with WarnRemoved"
@@ -341,8 +339,6 @@ for (i = 0; i < n_opts; i++) {
alias_data = "NULL, NULL, OPT_SPECIAL_warn_removed"
if (warn_message != "NULL")
print "#error WarnRemoved option with Warn"
- if (flag_set_p("Report", flags[i]))
- print "#error WarnRemoved option with Report"
}
else
alias_data = "NULL, NULL, N_OPTS"
diff --git a/gcc/opts.h b/gcc/opts.h
index b36c0d1..2cf24d1 100644
--- a/gcc/opts.h
+++ b/gcc/opts.h
@@ -104,8 +104,6 @@ struct cl_option
BOOL_BITFIELD cl_host_wide_int : 1;
/* Argument should be converted to lowercase. */
BOOL_BITFIELD cl_tolower : 1;
- /* Report argument with -fverbose-asm */
- BOOL_BITFIELD cl_report : 1;
/* Argument is an unsigned integer with an optional byte suffix. */
BOOL_BITFIELD cl_byte_size: 1;
/* Offset of field for this option in struct gcc_options, or