Ignore properly -mdirect-move (PR target/87164).
authorMartin Liska <mliska@suse.cz>
Wed, 5 Sep 2018 08:07:48 +0000 (10:07 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 5 Sep 2018 08:07:48 +0000 (08:07 +0000)
2018-09-05  Martin Liska  <mliska@suse.cz>

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
gcc/config/rs6000/rs6000.opt
gcc/optc-gen.awk

index 4b19487..ce7a3b1 100644 (file)
@@ -1,3 +1,10 @@
+2018-09-05  Martin Liska  <mliska@suse.cz>
+
+       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  <hongjiu.lu@intel.com>
 
        PR debug/86593
index 0abeeaf..138ce26 100644 (file)
@@ -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)
index 9a79bb8..3668b3e 100644 (file)
@@ -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"
       }