diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2024-07-17 19:38:12 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2024-07-17 19:38:12 +0100 |
commit | 43a7ece873eba47a11c0b21b0068eee53740551a (patch) | |
tree | d1f41074993638652c7a013008a1dab971820764 /libquadmath/strtod | |
parent | 71b31690a7c52413496e91bcc5ee4c68af2f366f (diff) | |
download | gcc-43a7ece873eba47a11c0b21b0068eee53740551a.zip gcc-43a7ece873eba47a11c0b21b0068eee53740551a.tar.gz gcc-43a7ece873eba47a11c0b21b0068eee53740551a.tar.bz2 |
rtl-ssa: Fix move range canonicalisation [PR115929]
In this PR, canonicalize_move_range walked off the end of a list
and triggered a null dereference. There are multiple ways of fixing
that, but I think the approach taken in the patch should be
relatively efficient.
gcc/
PR rtl-optimization/115929
* rtl-ssa/movement.h (canonicalize_move_range): Check for null prev
and next insns and create an invalid move range for them.
gcc/testsuite/
PR rtl-optimization/115929
* gcc.dg/torture/pr115929-2.c: New test.
Diffstat (limited to 'libquadmath/strtod')
0 files changed, 0 insertions, 0 deletions