]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/105080 - make sure SCEV is available for ranger
authorRichard Biener <rguenther@suse.de>
Mon, 28 Mar 2022 12:55:49 +0000 (14:55 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 29 Mar 2022 06:14:40 +0000 (08:14 +0200)
commit28c5df79300ab354cbc381aab200f7c2bd0331ad
tree6368653bc67b50720ff7f200a045f94b35c371fb
parent3734527dfa0d10a50aee2f088d37320000fd65bf
tree-optimization/105080 - make sure SCEV is available for ranger

When doing format diagnostics at -O0 we should make sure to make
SCEV available to avoid false positives due to ranges we otherwise
can trivially compute.

2022-03-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105080
* tree-ssa-strlen.cc (printf_strlen_execute): Always init
loops and SCEV.

* gcc.dg/pr105080.c: New testcase.
gcc/testsuite/gcc.dg/pr105080.c [new file with mode: 0644]
gcc/tree-ssa-strlen.cc
This page took 0.061887 seconds and 5 git commands to generate.