aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-10-20 15:08:49 +0200
committerRichard Biener <rguenther@suse.de>2023-10-20 15:45:37 +0200
commit9692309ed6b625f0fb358c0e230404b5603f69a6 (patch)
treee7a5414571f19cd919d1753c471d133d8d0a7aa5 /gcc/rust/backend
parent44e7e4498c3cdc27e087ab80aa76dac41819702f (diff)
downloadgcc-9692309ed6b625f0fb358c0e230404b5603f69a6.zip
gcc-9692309ed6b625f0fb358c0e230404b5603f69a6.tar.gz
gcc-9692309ed6b625f0fb358c0e230404b5603f69a6.tar.bz2
tree-optimization/111445 - simple_iv simplification fault
The following fixes a missed check in the simple_iv attempt to simplify (signed T)((unsigned T) base + step) where it allows a truncating inner conversion leading to wrong code. PR tree-optimization/111445 * tree-scalar-evolution.cc (simple_iv_with_niters): Add missing check for a sign-conversion. * gcc.dg/torture/pr111445.c: New testcase.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions