rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
authorBill Schmidt <wschmidt@linux.ibm.com>
Wed, 29 May 2019 03:37:29 +0000 (03:37 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Wed, 29 May 2019 03:37:29 +0000 (03:37 +0000)
[gcc]

2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
    Michael Meissner  <meissner@linux.ibm.com>

* config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.

[gcc/testsuite]

2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>

* gcc.target/powerpc/localentry-detect-1.c: New file.

Co-Authored-By: Michael Meissner <meissner@linux.ibm.com>
From-SVN: r271728

gcc/ChangeLog
gcc/config/rs6000/rs6000-cpus.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/localentry-detect-1.c [new file with mode: 0644]

index 721a1e0f36f66d0b192f12c1c2654eefc1cb488b..d5e89b783a239f8335ffb234b859b4c39e6b98cd 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
+           Michael Meissner  <meissner@linux.ibm.com>
+
+       * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
+
 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
 
        * rtl.h (LABEL_REF_P): New #define.
index 64292c923e63bfb48dccf67fea8a19f99ecfadbc..5337382bdcfb780e667b1dc22575f4c4bc329442 100644 (file)
@@ -77,6 +77,9 @@
                                 | OPTION_MASK_FUTURE                   \
                                 | OPTION_MASK_PCREL)
 
+/* Flags that need to be turned off if -mno-future.  */
+#define OTHER_FUTURE_MASKS     (OPTION_MASK_PCREL)
+
 /* Flags that need to be turned off if -mno-power9-vector.  */
 #define OTHER_P9_VECTOR_MASKS  (OPTION_MASK_FLOAT128_HW                \
                                 | OPTION_MASK_P9_MINMAX)
index 663cedb17050fb77041e8b9bb7c0c9ebc2ee720b..d888ebe45c33ea2b406d7e78ea25eb9fa755bc4d 100644 (file)
@@ -1,3 +1,7 @@
+2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
+
+       * gcc.target/powerpc/localentry-detect-1.c: New file.
+
 2019-05-28  Marek Polacek  <polacek@redhat.com>
 
        PR c++/90548 - ICE with generic lambda and empty pack.
diff --git a/gcc/testsuite/gcc.target/powerpc/localentry-detect-1.c b/gcc/testsuite/gcc.target/powerpc/localentry-detect-1.c
new file mode 100644 (file)
index 0000000..db20aed
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target powerpc_elfv2 } */
+/* { dg-options "-O2 -mdejagnu-cpu=future" } */
+
+
+int localentry1 () { return 5; }
+
+#pragma GCC target ("cpu=power9")
+int localentry2 () { return 5; }
+
+/* { dg-final { scan-assembler {\.localentry\tlocalentry1,1\M} } } */
+/* { dg-final { scan-assembler-not {\.localentry\tlocalentry2,1\M} } } */