]> git.ipfire.org Git - thirdparty/gcc.git/commit
[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, 9 Nov 2020 14:48:18 +0000 (14:48 +0000)
commit454702f5213a7a8b6b3581c29c817b952ce0f184
tree6941de78e5b101633b428432d95374781f28c261
parent3ec6a380bda3d2193925e1c017ea2739476cc125
[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

(cherry picked from commit ce99142c11b8090105cbf2aa853262f6d9abc0d3)
gcc/config/aarch64/aarch64-bti-insert.c
gcc/testsuite/gcc.target/aarch64/pr97638.c [new file with mode: 0644]