From 3713f2e213602fdc5119c3b9ece371330ceeac30 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 12 Jun 2018 16:21:10 +0200 Subject: Come up with Deprecated option flag. 2018-06-12 Martin Liska * doc/options.texi: Document Deprecated option flag. 2018-06-12 Martin Liska * 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 * c.opt: Make MPX-related options as Deprecated. 2018-06-12 Martin Liska * g++.dg/opt/mpx.C: New test. * gcc.target/i386/mpx.c: New test. From-SVN: r261497 --- gcc/opt-functions.awk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/opt-functions.awk') diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk index 819a962..2c371e5 100644 --- a/gcc/opt-functions.awk +++ b/gcc/opt-functions.awk @@ -136,7 +136,8 @@ function switch_bit_fields (flags) flag_init("UInteger", flags) \ flag_init("Host_Wide_Int", hwi) \ flag_init("ToLower", flags) \ - flag_init("Report", flags) + flag_init("Report", flags) \ + flag_init("Deprecated", flags) sub(", $", "", result) return result -- cgit v1.1