aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/ada-tree.h
diff options
context:
space:
mode:
authorAlex Coplan <alex.coplan@arm.com>2021-05-11 13:11:09 +0100
committerAlex Coplan <alex.coplan@arm.com>2021-05-11 13:11:09 +0100
commit2ac1f0eb3887335b7a7e845812956fa436e72a91 (patch)
tree669c82dc015203eaa09cf5903e8b04b7adf6f3c6 /gcc/ada/gcc-interface/ada-tree.h
parent28de75d27685b2735612d264bb96f39001f4d836 (diff)
downloadgcc-2ac1f0eb3887335b7a7e845812956fa436e72a91.zip
gcc-2ac1f0eb3887335b7a7e845812956fa436e72a91.tar.gz
gcc-2ac1f0eb3887335b7a7e845812956fa436e72a91.tar.bz2
arm: Avoid emitting bogus CFA adjusts for CMSE nonsecure calls [PR99725]
The PR shows us attaching REG_CFA_ADJUST_CFA notes to stack pointer adjustments emitted in cmse_nonsecure_call_inline_register_clear (when -march=armv8.1-m.main). However, the stack pointer is not guaranteed to be the CFA reg. If we're at -O0 or we have -fno-omit-frame-pointer, then the frame pointer will be used as the CFA reg, and these notes on the sp adjustments will lead to ICEs in dwarf2out_frame_debug_adjust_cfa. This patch avoids emitting these notes if the current function has a frame pointer. gcc/ChangeLog: PR target/99725 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear): Avoid emitting CFA adjusts on the sp if we have the fp. gcc/testsuite/ChangeLog: PR target/99725 * gcc.target/arm/cmse/pr99725.c: New test.
Diffstat (limited to 'gcc/ada/gcc-interface/ada-tree.h')
0 files changed, 0 insertions, 0 deletions