aboutsummaryrefslogtreecommitdiff
path: root/libgcc/enable-execute-stack-empty.c
diff options
context:
space:
mode:
authorAlex Coplan <alex.coplan@arm.com>2023-10-20 11:46:27 +0100
committerAlex Coplan <alex.coplan@arm.com>2023-10-20 11:46:27 +0100
commite90c7bd520545b31fee687aab58cb4b258d1db16 (patch)
tree0391bdb957b37ff6e859480b44865d115fc0f65b /libgcc/enable-execute-stack-empty.c
parentd6add7aa903726a9dcca1242cf16a94dcccb53d9 (diff)
downloadgcc-e90c7bd520545b31fee687aab58cb4b258d1db16.zip
gcc-e90c7bd520545b31fee687aab58cb4b258d1db16.tar.gz
gcc-e90c7bd520545b31fee687aab58cb4b258d1db16.tar.bz2
rtl-ssa: Don't leave NOTE_INSN_DELETED around
This patch tweaks change_insns to also call ::remove_insn to ensure the underlying RTL insn gets removed from the insn chain in the case of a deletion. This avoids leaving NOTE_INSN_DELETED around after deleting insns. For movement, the RTL insn chain is updated earlier in change_insns with the call to move_insn. For deletion, it seems reasonable to do it here. gcc/ChangeLog: * rtl-ssa/changes.cc (function_info::change_insns): Ensure we call ::remove_insn on deleted insns.
Diffstat (limited to 'libgcc/enable-execute-stack-empty.c')
0 files changed, 0 insertions, 0 deletions