]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: skip copy of RA state register into target context
authorMatthieu Longo <matthieu.longo@arm.com>
Mon, 23 Sep 2024 14:03:35 +0000 (15:03 +0100)
committerTamar Christina <tamar.christina@arm.com>
Mon, 23 Sep 2024 14:12:07 +0000 (15:12 +0100)
commitba3e597681b640f6f9a676ec4f6cd3ca3878cefc
tree561658a46303033d053851abbd386c4473420816
parentf531673917e4f80ad51eda0d806f0479c501a907
aarch64: skip copy of RA state register into target context

The RA state register is local to a frame, so it should not be copied to
the target frame during the context installation.

This patch adds a new backend handler that check whether a register
needs to be skipped or not before its installation.

libgcc/ChangeLog:

* config/aarch64/aarch64-unwind.h
(MD_FRAME_LOCAL_REGISTER_P): new handler checking whether a register
from the current context needs to be skipped before installation into
the target context.
(aarch64_frame_local_register): Likewise.
* unwind-dw2.c (uw_install_context_1): use MD_FRAME_LOCAL_REGISTER_P.
libgcc/config/aarch64/aarch64-unwind.h
libgcc/unwind-dw2.c