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.
This commit is contained in:
Martin Liska 2020-12-11 17:06:49 +01:00
parent 8833eab446
commit 5137d1ae6a
4 changed files with 3 additions and 10 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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"

View File

@ -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