On Tue, 4 Dec 2018 at 14:17, Richard Biener <rguent...@suse.de> wrote: > > On Tue, 4 Dec 2018, Christophe Lyon wrote: > > > Hi Richard, > > On Mon, 3 Dec 2018 at 14:37, Richard Biener <rguent...@suse.de> wrote: > > > > > > > > > This fixes a missed optimization in EVRP by teaching the code > > > figuring out conditional asserts about conversions that preserve > > > the converted value. > > > > > > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk > > > sofar. > > > > > > Richard. > > > > > > 2018-12-03 Richard Biener <rguent...@suse.de> > > > > > > PR tree-optimization/88301 > > > * tree-vrp.c (register_edge_assert_for_2): Handle conversions > > > that do not change the value by registering the same assert > > > for the operand. > > > > > > * gcc.dg/tree-ssa/evrp13.c: New testcase. > > > > > > > I noticed a regression in g++ on aarch64, and git bisect indicates > > this commits is the culprit. > > g++.dg/warn/Wstringop-overflow-1.C -std=c++14 (test for warnings, > > line 14) > > g++.dg/warn/Wstringop-overflow-1.C -std=c++14 (test for excess errors) > > g++.dg/warn/Wstringop-overflow-1.C -std=c++17 (test for warnings, > > line 14) > > g++.dg/warn/Wstringop-overflow-1.C -std=c++17 (test for excess errors) > > g++.dg/warn/Wstringop-overflow-1.C -std=c++98 (test for warnings, > > line 14) > > g++.dg/warn/Wstringop-overflow-1.C -std=c++98 (test for excess errors) > > > > g++.log says: > > Excess errors: > > /gcc/testsuite/g++.dg/warn/Wstringop-overflow-1.C:14:21: warning: > > 'char* __builtin_strncpy(char*, const char*, long unsigned int)' > > writing between 6 and 2147483647 bytes into a region of size 5 > > overflows the destination [-Wstringop-overflow=] > > Yes, sorry. r266773 should have fixed this. > Indeed, thanks.
> Richard.