[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 --- Comment #8 from Martin Sebor --- Author: msebor Date: Wed Jul 25 02:11:31 2018 New Revision: 262958 URL: https://gcc.gnu.org/viewcvs?rev=262958=gcc=rev Log: PR tree-optimization/86622 - incorrect strlen of array of array plus variable

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 Richard Biener changed: What|Removed |Added Target Milestone|--- |9.0

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-22 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 Bernd Edlinger changed: What|Removed |Added CC||bernd.edlinger at hotmail dot de ---

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 --- Comment #6 from Martin Sebor --- Sorry, I didn't give enough details in the report. As discussed in the gcc-patches thread referenced in comment #0, the bug is latent on current trunk. It only manifests itself when the fix for bug 86532

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-21 Thread um at mutluit dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 --- Comment #5 from U.Mutlu --- I have to correct myself in #2 and #3. The code is correct, and should return n=6.

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-21 Thread um at mutluit dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 --- Comment #4 from U.Mutlu --- gcc version 4.9.2 (Debian 4.9.2-10+deb8u1) gives the same result as v9: p=123456 n=6

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-21 Thread um at mutluit dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 --- Comment #3 from U.Mutlu --- I just tested it with v9: #include static const char a[3][8] = { "1234", "12345", "123456" }; int main () { volatile int i = 1; const char* p = *([1] + i); int n = __builtin_strlen (p);

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-21 Thread um at mutluit dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 U.Mutlu changed: What|Removed |Added CC||um at mutluit dot com --- Comment #2 from

[Bug tree-optimization/86622] [9 Regression] incorrect strlen of array of array plus variable offset

2018-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86622 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Keywords|