diff options
author | Richard Biener <rguenther@suse.de> | 2023-10-20 15:08:49 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-10-20 15:45:37 +0200 |
commit | 9692309ed6b625f0fb358c0e230404b5603f69a6 (patch) | |
tree | e7a5414571f19cd919d1753c471d133d8d0a7aa5 /gcc/cp/error.cc | |
parent | 44e7e4498c3cdc27e087ab80aa76dac41819702f (diff) | |
download | gcc-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/cp/error.cc')
0 files changed, 0 insertions, 0 deletions