IBM Z: Spectre: Prevent thunk cfi to be emitted with -fno-dwarf2-cfi-asm
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 12 Apr 2018 09:14:57 +0000 (09:14 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Thu, 12 Apr 2018 09:14:57 +0000 (09:14 +0000)
commitb9dd1a79284dd9883c1eec0412145108135e3d75
tree8cc85a16fe626b1297e2c269ba4d36e8fc19286b
parentc72a0e67a2fe102d9b40463ab01c9080a996a09f
IBM Z: Spectre: Prevent thunk cfi to be emitted with -fno-dwarf2-cfi-asm

The CFI magic we emit as part of the indirect branch thunks in order to
have somewhat sane unwind information must not be emitted with
-fno-dwarf2-cfi-asm.

gcc/ChangeLog:

2018-04-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390.c (s390_output_indirect_thunk_function): Check
also for flag_dwarf2_cfi_asm.

gcc/testsuite/ChangeLog:

2018-04-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* gcc.target/s390/nobp-no-dwarf2-cfi.c: New test.

From-SVN: r259340
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/nobp-no-dwarf2-cfi.c [new file with mode: 0644]