Merge Ignore and Deprecated in .opt files

Programming / Compilers / GCC - marxin [138bc75d-0d04-0410-961f-82ee72b054a4] - 17 August 2018 09:25 EDT

2018-08-17 Martin Liska

- common.opt: Remove Warn, Init and Report for options with Ignore/Deprecated flag. Warning is done automatically for Deprecated flags.
- config/i386/i386.opt: Likewise.
- config/ia64/ia64.opt: Likewise.
- config/rs6000/rs6000.opt: Likewise.
- cppbuiltin.c (define_builtin_macros_for_compilation_flags): Remove usage of flag_check_pointer_bounds.
- lto-wrapper.c (merge_and_complain): Do not handle OPT_fcheck_pointer_bounds. (append_compiler_options): Likewise.
- opt-functions.awk: Do not handle Deprecated.
- optc-gen.awk: Check that Var, Report and Init are not used for an option with Ignore/Deprecated flag.
- opts-common.c (decode_cmdline_option): Do not report CL_ERR_DEPRECATED. (read_cmdline_option): Report warning for OPT_SPECIAL_deprecated options.
- opts.h (struct cl_option): Remove cl_deprecated flag. (CL_ERR_DEPRECATED): Remove error enum value. 2018-08-17 Martin Liska

- g++.dg/opt/mpx.C: Fix scanned pattern.
- gcc.target/i386/mpx.c: Likewise.
- g++.dg/warn/Wunreachable-code-1.C: Remove.
- g++.dg/warn/Wunreachable-code-2.C: Likewise.
- gcc.dg/torture/pr52969.c: Likewise.
- g++.dg/warn/pr31246-2.C: Likewise.
- g++.dg/warn/pr31246.C: Likewise.
- gcc.dg/pr33092.c: Likewise.
- g++.dg/opt/eh1.C: Remove a deprecated option.
- g++.dg/template/inline1.C: Likewise.
- g++.dg/tree-ssa/pr81408.C: Likewise.
- gcc.dg/pr41837.c: Likewise.
- gcc.dg/pr41841.c: Likewise.
- gcc.dg/pr42250.c: Likewise.
- gcc.dg/pr43084.c: Likewise.
- gcc.dg/pr43317.c: Likewise.
- gcc.dg/pr51879-18.c: Likewise.
- gcc.dg/torture/pr36066.c: Likewise.
- gcc.dg/tree-ssa/ifc-8.c: Likewise.
- gcc.dg/tree-ssa/ifc-cd.c: Likewise.
- gcc.dg/tree-ssa/pr19210-1.c: Likewise.
- gcc.dg/tree-ssa/pr45122.c: Likewise.
- gcc.target/i386/pr45352-2.c: Likewise.
- gcc.target/i386/zee.c: Likewise.
- gfortran.dg/auto_char_len_2.f90: Likewise.
- gfortran.dg/auto_char_len_4.f90: Likewise.
- gfortran.dg/c_ptr_tests_15.f90: Likewise.
- gfortran.dg/char_array_structure_constructor.f90: Likewise.
- gfortran.dg/gomp/pr47331.f90: Likewise.
- gfortran.dg/pr40999.f: Likewise.
- gfortran.dg/pr41011.f: Likewise.
- gfortran.dg/pr42051.f03: Likewise.
- gfortran.dg/pr46804.f90: Likewise.
- gfortran.dg/pr83149_1.f90: Likewise.
- gfortran.dg/pr83149_b.f90: Likewise.
- gfortran.dg/whole_file_1.f90: Likewise.
- gfortran.dg/whole_file_10.f90: Likewise.
- gfortran.dg/whole_file_11.f90: Likewise.
- gfortran.dg/whole_file_12.f90: Likewise.
- gfortran.dg/whole_file_13.f90: Likewise.
- gfortran.dg/whole_file_14.f90: Likewise.
- gfortran.dg/whole_file_15.f90: Likewise.
- gfortran.dg/whole_file_16.f90: Likewise.
- gfortran.dg/whole_file_17.f90: Likewise.
- gfortran.dg/whole_file_18.f90: Likewise.
- gfortran.dg/whole_file_19.f90: Likewise.
- gfortran.dg/whole_file_2.f90: Likewise.
- gfortran.dg/whole_file_20.f03: Likewise.
- gfortran.dg/whole_file_3.f90: Likewise.
- gfortran.dg/whole_file_4.f90: Likewise.
- gfortran.dg/whole_file_5.f90: Likewise.
- gfortran.dg/whole_file_6.f90: Likewise.
- gfortran.dg/whole_file_7.f90: Likewise.
- gfortran.dg/whole_file_8.f90: Likewise.
- gfortran.dg/whole_file_9.f90: Likewise.
- gcc.dg/vect/vect.exp: Likewise. 2018-08-17 Martin Liska

- c.opt: Remove Warn, Init and Report for options with Ignore/Deprecated flag. Warning is done automatically for Deprecated flags.

0c46a085a53 Merge Ignore and Deprecated in .opt files.
gcc/ChangeLog | 23 ++++++
gcc/c-family/ChangeLog | 6 ++
gcc/c-family/c.opt | 92 +++++++++++-----------
gcc/common.opt | 10 +--
gcc/config/i386/i386.opt | 6 +-
gcc/config/ia64/ia64.opt | 4 +-
gcc/config/rs6000/rs6000.opt | 5 +-
gcc/cppbuiltin.c | 3 -
gcc/dwarf2out.c | 1 +
gcc/lto-opts.c | 1 +
gcc/lto-wrapper.c | 6 +-
gcc/opt-functions.awk | 1 -
gcc/optc-gen.awk | 20 ++++-
gcc/opth-gen.awk | 1 +
gcc/opts-common.c | 28 +++----
gcc/opts.h | 3 -
gcc/testsuite/ChangeLog | 59 ++++++++++++++
gcc/testsuite/g++.dg/opt/eh1.C | 2 +-
gcc/testsuite/g++.dg/opt/mpx.C | 4 +-
gcc/testsuite/g++.dg/template/inline1.C | 2 +-
gcc/testsuite/g++.dg/tree-ssa/pr81408.C | 2 +-
gcc/testsuite/g++.dg/warn/Wunreachable-code-1.C | 22 ------
gcc/testsuite/g++.dg/warn/Wunreachable-code-2.C | 23 ------
gcc/testsuite/g++.dg/warn/pr31246-2.C | 9 ---
gcc/testsuite/g++.dg/warn/pr31246.C | 9 ---
gcc/testsuite/gcc.dg/pr33092.c | 6 --
gcc/testsuite/gcc.dg/pr41837.c | 2 +-
gcc/testsuite/gcc.dg/pr41841.c | 2 +-
gcc/testsuite/gcc.dg/pr42250.c | 2 +-
gcc/testsuite/gcc.dg/pr43084.c | 2 +-
gcc/testsuite/gcc.dg/pr43317.c | 2 +-
gcc/testsuite/gcc.dg/pr51879-18.c | 2 +-
gcc/testsuite/gcc.dg/torture/pr36066.c | 2 +-
gcc/testsuite/gcc.dg/torture/pr52969.c | 16 ----
gcc/testsuite/gcc.dg/tree-ssa/ifc-8.c | 2 +-
gcc/testsuite/gcc.dg/tree-ssa/ifc-cd.c | 2 +-
gcc/testsuite/gcc.dg/tree-ssa/pr19210-1.c | 2 +-
gcc/testsuite/gcc.dg/tree-ssa/pr45122.c | 2 +-
gcc/testsuite/gcc.dg/vect/vect.exp | 7 --
gcc/testsuite/gcc.target/i386/mpx.c | 2 +-
gcc/testsuite/gcc.target/i386/pr45352-2.c | 2 +-
gcc/testsuite/gcc.target/i386/zee.c | 2 +-
gcc/testsuite/gfortran.dg/auto_char_len_2.f90 | 2 +-
gcc/testsuite/gfortran.dg/auto_char_len_4.f90 | 1 -
gcc/testsuite/gfortran.dg/c_ptr_tests_15.f90 | 2 +-
.../char_array_structure_constructor.f90 | 1 -
gcc/testsuite/gfortran.dg/gomp/pr47331.f90 | 2 +-
gcc/testsuite/gfortran.dg/pr40999.f | 2 +-
gcc/testsuite/gfortran.dg/pr41011.f | 2 +-
gcc/testsuite/gfortran.dg/pr42051.f03 | 1 -
gcc/testsuite/gfortran.dg/pr46804.f90 | 2 +-
gcc/testsuite/gfortran.dg/pr83149_1.f90 | 1 -
gcc/testsuite/gfortran.dg/pr83149_b.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_1.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_10.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_11.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_12.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_13.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_14.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_15.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_16.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_17.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_18.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_19.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_2.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_20.f03 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_3.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_4.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_5.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_6.f90 | 2 +-
gcc/testsuite/gfortran.dg/whole_file_7.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_8.f90 | 1 -
gcc/testsuite/gfortran.dg/whole_file_9.f90 | 1 -
73 files changed, 219 insertions(+), 227 deletions(-)

Upstream: gcc.gnu.org


  • Share