diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2023-11-11 17:28:57 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-11-11 17:28:57 +0000 |
commit | 4b803fbf839439b1deca660e32d5ced211111dfa (patch) | |
tree | 94f0afe9e4cadef16f7e6d4c4e6f5a9ddea25f14 /gcc/rust | |
parent | e59ec35276599805cdc6c3979d8a167b027d286e (diff) | |
download | gcc-4b803fbf839439b1deca660e32d5ced211111dfa.zip gcc-4b803fbf839439b1deca660e32d5ced211111dfa.tar.gz gcc-4b803fbf839439b1deca660e32d5ced211111dfa.tar.bz2 |
mode-switching: Allow targets to set the mode for EH handlers
The mode-switching pass already had hooks to say what mode
an entity is in on entry to a function and what mode it must
be in on return. For SME, we also want to say what mode an
entity is guaranteed to be in on entry to an exception handler.
gcc/
* target.def (mode_switching.eh_handler): New hook.
* doc/tm.texi.in (TARGET_MODE_EH_HANDLER): New @hook.
* doc/tm.texi: Regenerate.
* mode-switching.cc (optimize_mode_switching): Use eh_handler
to get the mode on entry to an exception handler.
Diffstat (limited to 'gcc/rust')
0 files changed, 0 insertions, 0 deletions