On 06/08/2018 05:09 AM, Martin Liška wrote:
> Hi.
>
> First follow-up MPX removal patch comes up with Deprecated option flag.
> That prints warning for options that have no effect:
>
> $ ./xgcc -B. /tmp/main.c -Wchkp -static-libmpxwrappers
> xgcc: warning: deprecated command line option ‘-static-libmpxwrappers’
> cc1: warning: deprecated command line option ‘-Wchkp’
>
> Is the string OK, or?
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> Ready to be installed?
> Martin
>
>
> 0001-Come-up-with-Deprecated-option-flag.patch
>
>
> From 0b1473e517373386e674c6736de5007960138d03 Mon Sep 17 00:00:00 2001
> From: marxin <mli...@suse.cz>
> Date: Fri, 8 Jun 2018 10:52:23 +0200
> Subject: [PATCH] Come up with Deprecated option flag.
>
> gcc/ChangeLog:
>
> 2018-06-08 Martin Liska <mli...@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.
>
> gcc/c-family/ChangeLog:
>
> 2018-06-08 Martin Liska <mli...@suse.cz>
>
> * c.opt: Make MPX-related options as Deprecated.
>
> gcc/testsuite/ChangeLog:
>
> 2018-06-08 Martin Liska <mli...@suse.cz>
>
> * g++.dg/opt/mpx.C: New test.
> * gcc.target/i386/mpx.c: New test.
OK.
jeff