From 3d043c51f5356d614ce8cc6678dff874a9c1f4f2 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 5 Sep 2018 10:07:48 +0200 Subject: [PATCH] Ignore properly -mdirect-move (PR target/87164). 2018-09-05 Martin Liska PR target/87164 * config/rs6000/rs6000.opt: Mark the option as Deprecated. * optc-gen.awk: Allow 'Var' for Deprecated options in order to generate a MASK value. From-SVN: r264111 --- gcc/ChangeLog | 7 +++++++ gcc/config/rs6000/rs6000.opt | 3 +-- gcc/optc-gen.awk | 2 -- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b19487000a..ce7a3b13700 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-09-05 Martin Liska + + PR target/87164 + * config/rs6000/rs6000.opt: Mark the option as Deprecated. + * optc-gen.awk: Allow 'Var' for Deprecated options in order + to generate a MASK value. + 2018-09-04 H.J. Lu PR debug/86593 diff --git a/gcc/config/rs6000/rs6000.opt b/gcc/config/rs6000/rs6000.opt index 0abeeafc646..138ce26d03f 100644 --- a/gcc/config/rs6000/rs6000.opt +++ b/gcc/config/rs6000/rs6000.opt @@ -483,9 +483,8 @@ mcrypto Target Report Mask(CRYPTO) Var(rs6000_isa_flags) Use ISA 2.07 Category:Vector.AES and Category:Vector.SHA2 instructions. -; We can't use Ignore flag because DIRECT_MOVE mask is still used. mdirect-move -Target Undocumented Mask(DIRECT_MOVE) Var(rs6000_isa_flags) Warn(%qs is deprecated) +Target Undocumented Mask(DIRECT_MOVE) Var(rs6000_isa_flags) Deprecated mhtm Target Report Mask(HTM) Var(rs6000_isa_flags) diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk index 9a79bb86243..3668b3ef0e4 100644 --- a/gcc/optc-gen.awk +++ b/gcc/optc-gen.awk @@ -336,8 +336,6 @@ for (i = 0; i < n_opts; i++) { alias_data = "NULL, NULL, OPT_SPECIAL_deprecated" if (warn_message != "NULL") print "#error Deprecated option with Warn" - if (var_name(flags[i]) != "") - print "#error Deprecated option with Var" if (flag_set_p("Report", flags[i])) print "#error Deprecated option with Report" } -- 2.30.2