diff options
author | Richard Biener <rguenther@suse.de> | 2023-03-08 09:06:44 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-03-09 14:28:12 +0100 |
commit | ace65db9215882b95e2ead1bb0dc8c54c2ea69be (patch) | |
tree | 9418917716b26f7435a3e3af6974369308de599c /gcc/gimple-array-bounds.cc | |
parent | bad177e848787258070415dbe002b2c6fba1c511 (diff) | |
download | gcc-ace65db9215882b95e2ead1bb0dc8c54c2ea69be.zip gcc-ace65db9215882b95e2ead1bb0dc8c54c2ea69be.tar.gz gcc-ace65db9215882b95e2ead1bb0dc8c54c2ea69be.tar.bz2 |
middle-end/108995 - avoid folding when sanitizing overflow
The following plugs one place in extract_muldiv where it should avoid
folding when sanitizing overflow.
PR middle-end/108995
* fold-const.cc (extract_muldiv_1): Avoid folding
(CST * b) / CST2 when sanitizing overflow and we rely on
overflow being undefined.
* gcc.dg/ubsan/pr108995.c: New testcase.
Diffstat (limited to 'gcc/gimple-array-bounds.cc')
0 files changed, 0 insertions, 0 deletions