diff options
author | Martin Liska <mliska@suse.cz> | 2018-06-12 16:21:10 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-06-12 14:21:10 +0000 |
commit | 3713f2e213602fdc5119c3b9ece371330ceeac30 (patch) | |
tree | 592c42292c6ead5672c1bc6944f10d30928368ca /gcc/doc | |
parent | 09d69286160a4027dc5c8fc27bff0113f698b25f (diff) | |
download | gcc-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/doc')
-rw-r--r-- | gcc/doc/options.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index 6974312..80f1bd3 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -280,6 +280,10 @@ The state of this option should be stored in variable @var{var} (actually a macro for @code{global_options.x_@var{var}}). The way that the state is stored depends on the type of option: +@item Deprecated +The option is deprecated and every usage of such option will +result in a warning. + @itemize @bullet @item If the option uses the @code{Mask} or @code{InverseMask} properties, |