aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2018-02-25 21:54:41 +0100
committerSegher Boessenkool <segher@gcc.gnu.org>2018-02-25 21:54:41 +0100
commitf727d9afe353d234b6026d8cb0185e8bd817c3cc (patch)
tree8c77e8edba1e0cf393575a4a3870eb5d50f1e451
parent09ef33c10863f37a99396040bfa4329de1271eb3 (diff)
downloadgcc-f727d9afe353d234b6026d8cb0185e8bd817c3cc.zip
gcc-f727d9afe353d234b6026d8cb0185e8bd817c3cc.tar.gz
gcc-f727d9afe353d234b6026d8cb0185e8bd817c3cc.tar.bz2
rs6000: Warn for deprecated options
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.opt8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2b8c3b9..724c476 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/rs6000/rs6000.opt b/gcc/config/rs6000/rs6000.opt
index 2016212..2ce19ce 100644
--- a/gcc/config/rs6000/rs6000.opt
+++ b/gcc/config/rs6000/rs6000.opt
@@ -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