+2018-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+
+ * config/rs6000/rs6000.c (rs6000_option_override_internal):
+ Display warning message for -mno-speculate-indirect-jumps.
+
2018-02-06 Andrew Jenner <andrew@codesourcery.com>
* config/powerpcspe/powerpcspe.opt: (msimple-fpu, mfpu) Add
if (TARGET_LINK_STACK == -1)
SET_TARGET_LINK_STACK (rs6000_tune == PROCESSOR_PPC476 && flag_pic);
+ /* Deprecate use of -mno-speculate-indirect-jumps. */
+ if (!rs6000_speculate_indirect_jumps)
+ warning (0, "%qs is deprecated and not recommended in any circumstances",
+ "-mno-speculate-indirect-jumps");
+
return ret;
}
+2018-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+
+ * gcc.target/powerpc/safe-indirect-jump-1.c: Detect deprecation
+ warning for -mno-speculate-indirect-jumps.
+ * gcc.target/powerpc/safe-indirect-jump-2.c: Likewise.
+ * gcc.target/powerpc/safe-indirect-jump-3.c: Likewise.
+ * gcc.target/powerpc/safe-indirect-jump-4.c: Likewise.
+ * gcc.target/powerpc/safe-indirect-jump-5.c: Likewise.
+ * gcc.target/powerpc/safe-indirect-jump-6.c: Likewise.
+ * gcc.target/powerpc/safe-indirect-jump-7.c: Likewise.
+
2018-02-06 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
PR target/84145
/* { dg-do compile } */
/* { dg-additional-options "-mno-speculate-indirect-jumps" } */
+/* { dg-warning "'-mno-speculate-indirect-jumps' is deprecated" "" { target *-*-* } 0 } */
/* Test for deliberate misprediction of indirect calls. */
/* { dg-do compile } */
/* { dg-options "-mno-speculate-indirect-jumps" } */
+/* { dg-warning "'-mno-speculate-indirect-jumps' is deprecated" "" { target *-*-* } 0 } */
/* Test for deliberate misprediction of computed goto. */
/* { dg-do compile } */
/* { dg-options "-mno-speculate-indirect-jumps" } */
+/* { dg-warning "'-mno-speculate-indirect-jumps' is deprecated" "" { target *-*-* } 0 } */
/* Test for deliberate misprediction of jump tables. */
/* { dg-do run } */
/* { dg-additional-options "-mno-speculate-indirect-jumps" } */
+/* { dg-warning "'-mno-speculate-indirect-jumps' is deprecated" "" { target *-*-* } 0 } */
/* Test for deliberate misprediction of indirect calls for ELFv2. */
/* { dg-do run } */
/* { dg-additional-options "-mno-speculate-indirect-jumps -Wno-pedantic" } */
+/* { dg-warning "'-mno-speculate-indirect-jumps' is deprecated" "" { target *-*-* } 0 } */
/* Test for deliberate misprediction of computed goto. */
/* { dg-do run } */
/* { dg-additional-options "-mno-speculate-indirect-jumps" } */
+/* { dg-warning "'-mno-speculate-indirect-jumps' is deprecated" "" { target *-*-* } 0 } */
/* Test for deliberate misprediction of jump tables. */
/* { dg-do compile } */
/* { dg-additional-options "-mno-speculate-indirect-jumps" } */
+/* { dg-warning "'-mno-speculate-indirect-jumps' is deprecated" "" { target *-*-* } 0 } */
/* Test for deliberate misprediction of indirect calls. */