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

[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
This commit is contained in:
Bill Schmidt 2019-05-29 03:37:29 +00:00 committed by William Schmidt
parent 02441f3eec
commit 510d3a7313
4 changed files with 24 additions and 0 deletions

View 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.

View 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)

View 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.

View File

@ -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} } } */