aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-array-bounds.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-03-08 09:06:44 +0100
committerRichard Biener <rguenther@suse.de>2023-03-09 14:28:12 +0100
commitace65db9215882b95e2ead1bb0dc8c54c2ea69be (patch)
tree9418917716b26f7435a3e3af6974369308de599c /gcc/gimple-array-bounds.cc
parentbad177e848787258070415dbe002b2c6fba1c511 (diff)
downloadgcc-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