aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorKonstantinos Eleftheriou <konstantinos.eleftheriou@vrull.eu>2025-07-30 17:06:33 +0200
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>2025-08-04 15:34:03 +0200
commitbe377ef9ce3eb870ffd18ac02dabe32260dfcb6f (patch)
tree179399aec31728e97c7934bc933b0cce647a86dd /libcpp
parent102179f11d35705f384817d7edec32bbda22b2b7 (diff)
downloadgcc-be377ef9ce3eb870ffd18ac02dabe32260dfcb6f.zip
gcc-be377ef9ce3eb870ffd18ac02dabe32260dfcb6f.tar.gz
gcc-be377ef9ce3eb870ffd18ac02dabe32260dfcb6f.tar.bz2
asf: Fix null pointer dereference in is_store_forwarding [PR121303]
We were calling `is_store_forwarding` with a NULL value for `off_val`, which was causing a null pointer dereference in `is_constant`, leading to an ICE. This patch updates the call to `is_constant` in `is_store_forwarding` and adds a check for `off_val`, in order to update it with the right value. Bootstrapped/regtested on AArch64 and x86_64. PR rtl-optimization/121303 gcc/ChangeLog: * avoid-store-forwarding.cc (is_store_forwarding): Add check for `off_val` in `is_store_forwarding`. gcc/testsuite/ChangeLog: * gcc.target/i386/pr121303.c: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions