[Bug tree-optimization/79196] [7 Regression] Probably invalid folding of strstr(x, "foo") eq x to memcmp (x, "foo", strlen("foo"))

2017-01-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79196 --- Comment #4 from Martin Liška --- Author: marxin Date: Mon Jan 23 14:57:43 2017 New Revision: 244812 URL: https://gcc.gnu.org/viewcvs?rev=244812=gcc=rev Log: Fix strstr folding (PR tree-optimization/79196). 2017-01-23 Martin Liska

[Bug tree-optimization/79196] [7 Regression] Probably invalid folding of strstr(x, "foo") eq x to memcmp (x, "foo", strlen("foo"))

2017-01-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79196 --- Comment #3 from Martin Liška --- Created attachment 40565 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40565=edit Untested patch

[Bug tree-optimization/79196] [7 Regression] Probably invalid folding of strstr(x, "foo") eq x to memcmp (x, "foo", strlen("foo"))

2017-01-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79196 Martin Liška changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org ---

[Bug tree-optimization/79196] [7 Regression] Probably invalid folding of strstr(x, "foo") eq x to memcmp (x, "foo", strlen("foo"))

2017-01-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79196 --- Comment #1 from Richard Biener --- I suppose you could use strncmp instead.

[Bug tree-optimization/79196] [7 Regression] Probably invalid folding of strstr(x, "foo") eq x to memcmp (x, "foo", strlen("foo"))

2017-01-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79196 Richard Biener changed: What|Removed |Added Version|unknown |7.0 Target Milestone|---