diff options
author | Omar Tahir <omar.tahir@arm.com> | 2020-07-01 21:56:16 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-07-01 21:56:16 +0100 |
commit | be7c41a556464680b17a2c3d5d099ec56a2c223e (patch) | |
tree | 401276a98cfa498e34f82f17028af3f3102e6efe /gcc/fortran/interface.c | |
parent | 553c6572061f6f9ef92514e8f13de95d509ad614 (diff) | |
download | gcc-be7c41a556464680b17a2c3d5d099ec56a2c223e.zip gcc-be7c41a556464680b17a2c3d5d099ec56a2c223e.tar.gz gcc-be7c41a556464680b17a2c3d5d099ec56a2c223e.tar.bz2 |
aarch64: Fix missing BTI instruction in trampolines
If two functions require trampolines, and the first has BTI enabled
while the second doesn't, the generated template will be lacking
a BTI instruction. This patch fixes this by always adding a BTI
instruction, which is safe as BTI instructions are ignored on
unsupported architecture versions.
2020-07-01 Omar Tahir <omar.tahir@arm.com>
gcc/
* config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Always
generate a BTI instruction.
gcc/testsuite/
* gcc.target/aarch64/bti-4.c: New test.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions