[PATCH] aarch64: Fix PR97638
authorSudakshina Das <sudi.das@arm.com>
Mon, 2 Nov 2020 15:52:22 +0000 (15:52 +0000)
committerSudakshina Das <sudi.das@arm.com>
Mon, 2 Nov 2020 15:52:22 +0000 (15:52 +0000)
commitce99142c11b8090105cbf2aa853262f6d9abc0d3
tree654b0f5a7c46cd1c799a635b28992fab99cc4a38
parente881774d0dda6d5127eb8f0642f6edc16dc0b1e7
[PATCH] aarch64: Fix PR97638

Currently the testcase in the patch was failing to produce
a 'bti c' at the beginning of the function. This was because
in aarch64_pac_insn_p, we were wrongly returning at the first
check!

2020-10-30  Sudakshina Das  <sudi.das@arm.com>

gcc/ChangeLog:

PR target/97638
* config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Update
return value on INSN_P check.

gcc/testsuite/ChangeLog:

PR target/97638
* gcc.target/aarch64/pr97638.c: New test.a
gcc/config/aarch64/aarch64-bti-insert.c
gcc/testsuite/gcc.target/aarch64/pr97638.c [new file with mode: 0644]