From: Bill Schmidt Date: Wed, 29 May 2019 03:37:29 +0000 (+0000) Subject: rs6000-cpus.def (OTHER_FUTURES_MASK): New #define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=510d3a73130a60e19885f023e2954bf3fe39dca8;p=gcc.git rs6000-cpus.def (OTHER_FUTURES_MASK): New #define. [gcc] 2019-05-28 Bill Schmidt Michael Meissner * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define. [gcc/testsuite] 2019-05-28 Bill Schmidt * gcc.target/powerpc/localentry-detect-1.c: New file. Co-Authored-By: Michael Meissner From-SVN: r271728 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 721a1e0f36f..d5e89b783a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-05-28 Bill Schmidt + Michael Meissner + + * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define. + 2019-05-28 Michael Meissner * rtl.h (LABEL_REF_P): New #define. diff --git a/gcc/config/rs6000/rs6000-cpus.def b/gcc/config/rs6000/rs6000-cpus.def index 64292c923e6..5337382bdcf 100644 --- a/gcc/config/rs6000/rs6000-cpus.def +++ b/gcc/config/rs6000/rs6000-cpus.def @@ -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) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 663cedb1705..d888ebe45c3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-05-28 Bill Schmidt + + * gcc.target/powerpc/localentry-detect-1.c: New file. + 2019-05-28 Marek Polacek 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 index 00000000000..db20aedeb71 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/localentry-detect-1.c @@ -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} } } */