rs6000: Warn for deprecated options
authorSegher Boessenkool <segher@kernel.crashing.org>
Sun, 25 Feb 2018 20:54:41 +0000 (21:54 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Sun, 25 Feb 2018 20:54:41 +0000 (21:54 +0100)
Some command-line options have been deprecated for a long time.  This
patch adds a warning for them, so that we can remove them in GCC 9
without surprising any users.

* config/rs6000/rs6000.opt (mvrsave=no, mvrsave=yes, isel=no,
isel=yes): Warn for these deprecated options.

From-SVN: r257975

gcc/ChangeLog
gcc/config/rs6000/rs6000.opt

index 2b8c3b9795f01f01659661bde36a2107f3308fc3..724c476141864822123401aca2ff3d5c5a631035 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-25  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/rs6000.opt (mvrsave=no, mvrsave=yes, isel=no,
+       isel=yes): Warn for these deprecated options.
+
 2018-02-23  David Edelsohn  <dje.gcc@gmail.com>
 
        * config/rs6000/aix71.h (TARGET_DEFAULT): Change to
index 20162121a46383157739304eec1ddfe782cff3da..2ce19cefa8f67a02942d9b8dd84367eb9123f91c 100644 (file)
@@ -322,11 +322,11 @@ Target Report Var(TARGET_ALTIVEC_VRSAVE) Save
 Generate VRSAVE instructions when generating AltiVec code.
 
 mvrsave=no
-Target RejectNegative Alias(mvrsave) NegativeAlias
+Target RejectNegative Alias(mvrsave) NegativeAlias Warn(%<-mvrsave=no%> is deprecated; use %<-mno-vrsave%> instead)
 Deprecated option.  Use -mno-vrsave instead.
 
 mvrsave=yes
-Target RejectNegative Alias(mvrsave)
+Target RejectNegative Alias(mvrsave) Warn(%<-mvrsave=yes%> is deprecated; use %<-mvrsave%> instead)
 Deprecated option.  Use -mvrsave instead.
 
 mblock-move-inline-limit=
@@ -350,11 +350,11 @@ Target Report Mask(ISEL) Var(rs6000_isa_flags)
 Generate isel instructions.
 
 misel=no
-Target RejectNegative Alias(misel) NegativeAlias
+Target RejectNegative Alias(misel) NegativeAlias Warn(%<-misel=no%> is deprecated; use %<-mno-isel%> instead)
 Deprecated option.  Use -mno-isel instead.
 
 misel=yes
-Target RejectNegative Alias(misel)
+Target RejectNegative Alias(misel) Warn(%<-misel=yes%> is deprecated; use %<-misel%> instead)
 Deprecated option.  Use -misel instead.
 
 mpaired