aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-06-12 16:21:10 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-06-12 14:21:10 +0000
commit3713f2e213602fdc5119c3b9ece371330ceeac30 (patch)
tree592c42292c6ead5672c1bc6944f10d30928368ca /gcc/opts.h
parent09d69286160a4027dc5c8fc27bff0113f698b25f (diff)
downloadgcc-3713f2e213602fdc5119c3b9ece371330ceeac30.zip
gcc-3713f2e213602fdc5119c3b9ece371330ceeac30.tar.gz
gcc-3713f2e213602fdc5119c3b9ece371330ceeac30.tar.bz2
Come up with Deprecated option flag.
2018-06-12 Martin Liska <mliska@suse.cz> * doc/options.texi: Document Deprecated option flag. 2018-06-12 Martin Liska <mliska@suse.cz> * config/i386/i386.opt: Make MPX-related options as Deprecated. * opt-functions.awk: Handle Deprecated flag. * opts-common.c (decode_cmdline_option): Handle cl_deprecated and report error. (read_cmdline_option): Report warning for a deprecated option. * opts.h (struct cl_option): Add new field cl_deprecated. (CL_ERR_DEPRECATED): New. 2018-06-12 Martin Liska <mliska@suse.cz> * c.opt: Make MPX-related options as Deprecated. 2018-06-12 Martin Liska <mliska@suse.cz> * g++.dg/opt/mpx.C: New test. * gcc.target/i386/mpx.c: New test. From-SVN: r261497
Diffstat (limited to 'gcc/opts.h')
-rw-r--r--gcc/opts.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/opts.h b/gcc/opts.h
index 484fc1c..3c4065ea 100644
--- a/gcc/opts.h
+++ b/gcc/opts.h
@@ -100,6 +100,8 @@ struct cl_option
BOOL_BITFIELD cl_tolower : 1;
/* Report argument with -fverbose-asm */
BOOL_BITFIELD cl_report : 1;
+ /* Deprecated option */
+ BOOL_BITFIELD cl_deprecated: 1;
/* Offset of field for this option in struct gcc_options, or
(unsigned short) -1 if none. */
unsigned short flag_var_offset;
@@ -209,6 +211,7 @@ extern const unsigned int cl_enums_count;
#define CL_ERR_NEGATIVE (1 << 6) /* Negative form of option
not permitted (together
with OPT_SPECIAL_unknown). */
+#define CL_ERR_DEPRECATED (1 << 7) /* Deprecated option. */
/* Structure describing the result of decoding an option. */