[Bug tree-optimization/86265] Wrong code on an invalid code starting with r255790

2018-06-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 --- Comment #8 from Martin Sebor --- I would expect the additional detail (about the structure of data) to only help improve things, not ever make them worse, or introduce bugs into correct code. But relying on the structure of data is not novel

[Bug tree-optimization/86265] Wrong code on an invalid code starting with r255790

2018-06-26 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 --- Comment #7 from rguenther at suse dot de --- On Mon, 25 Jun 2018, msebor at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 > > --- Comment #6 from Martin Sebor --- > The strlen range optimization doesn't take a

[Bug tree-optimization/86265] Wrong code on an invalid code starting with r255790

2018-06-25 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 --- Comment #6 from Martin Sebor --- The strlen range optimization doesn't take advantage of undefined behavior -- like all other optimizations, it simply assumes code is free of it. I have two goals for the warnings I work on: a) most important

[Bug tree-optimization/86265] Wrong code on an invalid code starting with r255790

2018-06-22 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 --- Comment #5 from rguenther at suse dot de --- On Thu, 21 Jun 2018, msebor at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 > > --- Comment #4 from Martin Sebor --- > Using strncpy or strlen to cross subobject b

[Bug tree-optimization/86265] Wrong code on an invalid code starting with r255790

2018-06-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 --- Comment #4 from Martin Sebor --- Using strncpy or strlen to cross subobject boundaries isn't valid. GCC catches the strncpy bug with -Warray-bounds: pr86265.c: In function ‘main’: ... In file included from /usr/include/string.h:630,

[Bug tree-optimization/86265] Wrong code on an invalid code starting with r255790

2018-06-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 Richard Biener changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug tree-optimization/86265] Wrong code on an invalid code starting with r255790

2018-06-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 Richard Biener changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug tree-optimization/86265] Wrong code on an invalid code starting with r255790

2018-06-21 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86265 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---