[Bug tree-optimization/91294] [10 Regression] wrong strlen result of a conditional with an offset

2019-07-29 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Last reconfirmed||2019-07-30 Blocks||83819 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Target Milestone|--- |10.0 Ever confirmed

[Bug testsuite/91258] [10 regression] g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail starting with r273783

2019-07-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91258 --- Comment #9 from Martin Sebor --- Is this just before the warning is printed? (In my build the function is called three times, each time with a slightly different tree node, but never with an argument that sets is_char_store to true.) >From

[Bug testsuite/91258] [10 regression] g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail starting with r273783

2019-07-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91258 --- Comment #10 from Martin Sebor --- The only interesting difference I see between your powerpc64-linux configure options and mine is that yours has --with-cpu=power8 (it would be nice to add it to test-summary). Let me try a build with that op

[Bug testsuite/91258] [10 regression] g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail starting with r273783

2019-07-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91258 Martin Sebor changed: What|Removed |Added Status|WAITING |NEW --- Comment #12 from Martin Sebor --

[Bug testsuite/91258] [10 regression] g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail starting with r273783

2019-07-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91258 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|NEW

[Bug testsuite/91258] [10 regression] g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail starting with r273783

2019-07-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91258 --- Comment #15 from Martin Sebor --- The warning only sees the four byte write at the end: MEM[(int *)&D.3146 + 4B] = 24; <<< write past the end I will disable it but my main concern was with the char array: is it valid to transform a 1-el

[Bug testsuite/91258] [10 regression] g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail starting with r273783

2019-07-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91258 --- Comment #17 from Martin Sebor --- Author: msebor Date: Tue Jul 30 20:42:36 2019 New Revision: 273915 URL: https://gcc.gnu.org/viewcvs?rev=273915&root=gcc&view=rev Log: PR testsuite/91258 - g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail

[Bug testsuite/91258] [10 regression] g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail starting with r273783

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

[Bug tree-optimization/91315] New: missing strlen lower bound of a string known to be at least N characters

2019-07-31 Thread msebor at gcc dot gnu.org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In the program below the strlen pass tracks the (minimum) length of the string formed by each of the functions, yet it

[Bug tree-optimization/91315] missing strlen lower bound of a string known to be at least N characters

2019-07-31 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Last reconfirmed||2019-07-31 Blocks||83819 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment

[Bug tree-optimization/91294] [10 Regression] wrong strlen result of a conditional with an offset

2019-07-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91294 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #2 from Martin Sebor -

[Bug tree-optimization/91315] missing strlen lower bound of a string known to be at least N characters

2019-07-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91315 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #2 from Martin Sebor -

[Bug tree-optimization/91183] strlen of a strcpy result with a conditional source not folded

2019-07-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91183 --- Comment #7 from Martin Sebor --- Patch to handle the issue discussed in comment #6: https://gcc.gnu.org/ml/gcc-patches/2019-08/msg0.html

[Bug c++/91317] [7/8/9/10 Regression] false-positive maybe-uninitialized warning in destructor with placement new

2019-08-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91317 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #3

[Bug c++/90947] [9/10 Regression] Simple lookup table of array of strings is miscompiled

2019-08-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90947 --- Comment #5 from Martin Sebor --- Author: msebor Date: Thu Aug 1 23:45:36 2019 New Revision: 273989 URL: https://gcc.gnu.org/viewcvs?rev=273989&root=gcc&view=rev Log: PR c++/90947 - Simple lookup table of array of strings is miscompiled gcc

[Bug c++/90947] [9 Regression] Simple lookup table of array of strings is miscompiled

2019-08-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90947 Martin Sebor changed: What|Removed |Added Summary|[9/10 Regression] Simple|[9 Regression] Simple |

[Bug tree-optimization/90989] [9 Regression] incorrrect strlen result after second strcpy into the same destination

2019-08-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90989 --- Comment #6 from Martin Sebor --- I will backport it today. There are no followup fixes to this one.

[Bug tree-optimization/90989] [9 Regression] incorrrect strlen result after second strcpy into the same destination

2019-08-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90989 --- Comment #7 from Martin Sebor --- Author: msebor Date: Fri Aug 2 16:57:19 2019 New Revision: 274021 URL: https://gcc.gnu.org/viewcvs?rev=274021&root=gcc&view=rev Log: Backport from mainline PR tree-optimization/90989 - incorrrect strlen res

[Bug tree-optimization/83819] [meta-bug] missing strlen optimizations

2019-08-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 90989, which changed state. Bug 90989 Summary: [9 Regression] incorrrect strlen result after second strcpy into the same destination https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90989 What|Removed

[Bug tree-optimization/90989] [9 Regression] incorrrect strlen result after second strcpy into the same destination

2019-08-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90989 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/90737] [8/9 Regression] inconsistent address of a local converted to intptr_t between callee and caller

2019-08-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90737 --- Comment #8 from Martin Sebor --- Author: msebor Date: Fri Aug 2 17:05:34 2019 New Revision: 274022 URL: https://gcc.gnu.org/viewcvs?rev=274022&root=gcc&view=rev Log: Backport from mainline PR c/90737 - [8/9/10 Regression] inconsistent addr

[Bug c/90737] [8 Regression] inconsistent address of a local converted to intptr_t between callee and caller

2019-08-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90737 Martin Sebor changed: What|Removed |Added Summary|[8/9 Regression]|[8 Regression] inconsistent

[Bug tree-optimization/91326] VRP does not handle array value range

2019-08-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91326 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #2

[Bug c/80619] bad fix-it hint for GCC %lu directive with int argument: %wu

2019-08-05 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor --- No, the bug is still there. This patch fixes it without braking any of the format.exp tests. diff --git a/gcc/c-family/c-format.c b/gcc/c-family/c-format.c index 6363fa4f686..1fa551957d9 100644 --- a/gcc/c

[Bug c/78155] missing warning on invalid isalpha et al.

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78155 --- Comment #4 from Martin Sebor --- I don't really see what existing warning this might fall under, except perhaps -Wchar-subscripts because isalpha and friend use the argument as an index into an array of 257 characters, but that seems like a s

[Bug c/80619] bad fix-it hint for GCC %lu directive with int argument: %wu

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80619 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #5 from Martin Sebor -

[Bug c++/91335] False positive "unused variable" warning with variable initialized in 'if' condition

2019-08-05 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |INVALID --- Comment #5 from Martin Sebor --- Declaring the variable with attribute unused (or [[maybe_unused]]) is the intended mechanism to suppress the warning when the variable is meant to be declared

[Bug c/89180] [meta-bug] bogus/missing -Wunused warnings

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89180 Bug 89180 depends on bug 91335, which changed state. Bug 91335 Summary: False positive "unused variable" warning with variable initialized in 'if' condition https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91335 What|Removed

[Bug c++/51270] missed warning about returning reference to temporary

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51270 Bug 51270 depends on bug 60517, which changed state. Bug 60517 Summary: warning/error for taking address of member of a temporary object https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517 What|Removed |Added --

[Bug c++/60517] warning/error for taking address of member of a temporary object

2019-08-05 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Known to work||9.1.0 Resolution|--- |FIXED Known to fail||4.9.1, 5.5.0, 6.4.0, 7.4.0, ||8.3.0 --- Comment

[Bug c/50476] Warn of pointer set to object whose lifetime is limited

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 Bug 50476 depends on bug 60517, which changed state. Bug 60517 Summary: warning/error for taking address of member of a temporary object https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517 What|Removed |Added --

[Bug c/45821] no warning when returning a local variable address within a statement expression

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45821 Bug 45821 depends on bug 60517, which changed state. Bug 60517 Summary: warning/error for taking address of member of a temporary object https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517 What|Removed |Added --

[Bug c++/60517] warning/error for taking address of member of a temporary object

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517 --- Comment #26 from Martin Sebor --- Author: msebor Date: Tue Aug 6 00:08:45 2019 New Revision: 274130 URL: https://gcc.gnu.org/viewcvs?rev=274130&root=gcc&view=rev Log: PR c++/60517 - warning/error for taking address of member of a temporary

[Bug middle-end/50476] Warn of pointer set to object whose lifetime is limited

2019-08-05 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Component|c |middle-end Known to work||10.0, 7.3.0, 8.3.0, 9.1.0 Resolution|--- |FIXED Known to fail||4.5.2, 4.8.5

[Bug middle-end/50476] Warn of pointer set to object whose lifetime is limited

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 --- Comment #7 from Martin Sebor --- Author: msebor Date: Tue Aug 6 00:30:02 2019 New Revision: 274135 URL: https://gcc.gnu.org/viewcvs?rev=274135&root=gcc&view=rev Log: PR middle-end/50476 - Warn of pointer set to object whose lifetime is limi

[Bug c++/91304] maybe_unused attribute ignored on variable declared in if declaration

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91304 Martin Sebor changed: What|Removed |Added Known to fail||10.0, 9.1.0 --- Comment #1 from Martin Se

[Bug middle-end/90597] [9/10 Regression] FAIL: gcc.dg/attr-vector_size.c (internal compiler error)

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90597 Martin Sebor changed: What|Removed |Added Keywords||ice-on-valid-code --- Comment #4 from Mar

[Bug target/91148] PowerPC build gets several warnings due to -Wformat-diag

2019-08-06 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91148 --- Comment #14 from Martin Sebor --- Jeff has a setup that builds most if not all targets. I think he's also got it hooked up to an emulator but I'm not sure he runs tests. Unfortunately, there's no Web interface to it that we could access. I

[Bug translation/79618] prevent missing space in multiline string literals

2019-08-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79618 --- Comment #9 from Martin Sebor --- It doesn't. -Wformat-diag runs after adjacent string literals have been concatenated. Detecting these kinds of issues would mean enhancing the preprocessor.

[Bug tree-optimization/91227] pointer relational expression not folded but equivalent inequality is

2019-08-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91227 --- Comment #17 from Martin Sebor --- Just to be clear: my suggestion to fold the relational expressions is only for incoming pointers with addresses of local variables that GCC already assumes cannot be synthesized (I assume it does that on the

[Bug translation/90117] Replace %<%s%> with %qs

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

[Bug tree-optimization/91227] pointer relational expression not folded but equivalent inequality is

2019-08-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91227 --- Comment #19 from Martin Sebor --- That's a valid concern. Issuing a warning (either at the same time as or in lieu of the folding) would be a way to detect and prevent these kinds of problems. Exposing it to enough code (like in a whole dis

[Bug ada/82813] warning: '.builtin_memcpy' writing between 2 and 6 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]

2019-08-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82813 Bug 82813 depends on bug 80545, which changed state. Bug 80545 Summary: option -Wstringop-overflow not recognized by Fortran https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80545 What|Removed |Added ---

[Bug driver/80545] option -Wstringop-overflow not recognized by Fortran

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

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment

[Bug tree-optimization/90879] fold zero-equality of strcmp between a longer string and a smaller array

2019-08-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90879 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #2 from Martin Sebor -

[Bug c/80619] bad fix-it hint for GCC %lu directive with int argument: %wu

2019-08-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80619 --- Comment #6 from Martin Sebor --- Author: msebor Date: Tue Aug 13 15:55:40 2019 New Revision: 274385 URL: https://gcc.gnu.org/viewcvs?rev=274385&root=gcc&view=rev Log: PR c/80619 - bad fix-it hint for GCC %lu directive with int argument: %wu

[Bug c/80619] bad fix-it hint for GCC %lu directive with int argument: %wu

2019-08-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80619 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/91294] [10 Regression] wrong strlen result of a conditional with an offset

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91294 --- Comment #3 from Martin Sebor --- Author: msebor Date: Wed Aug 14 16:27:59 2019 New Revision: 274486 URL: https://gcc.gnu.org/viewcvs?rev=274486&root=gcc&view=rev Log: PR tree-optimization/91294 - [10 Regression] wrong strlen result of a cond

[Bug c++/90947] [9 Regression] Simple lookup table of array of strings is miscompiled

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90947 --- Comment #10 from Martin Sebor --- Author: msebor Date: Wed Aug 14 20:36:46 2019 New Revision: 274494 URL: https://gcc.gnu.org/viewcvs?rev=274494&root=gcc&view=rev Log: Backport from mainline 2019-08-01 Martin Sebor

[Bug tree-optimization/91294] [10 Regression] wrong strlen result of a conditional with an offset

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91294 --- Comment #4 from Martin Sebor --- Author: msebor Date: Wed Aug 14 20:36:46 2019 New Revision: 274494 URL: https://gcc.gnu.org/viewcvs?rev=274494&root=gcc&view=rev Log: Backport from mainline 2019-08-01 Martin Sebor

[Bug testsuite/91448] FAIL: g++.dg/opt/flifetime-dse2.C -std=gnu++98 execution test

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91448 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/83819] [meta-bug] missing strlen optimizations

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 91294, which changed state. Bug 91294 Summary: [10 Regression] wrong strlen result of a conditional with an offset https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91294 What|Removed |Added

[Bug tree-optimization/83819] [meta-bug] missing strlen optimizations

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 91183, which changed state. Bug 91183 Summary: strlen of a strcpy result with a conditional source not folded https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91183 What|Removed |Added

[Bug tree-optimization/91183] strlen of a strcpy result with a conditional source not folded

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91183 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/91294] [10 Regression] wrong strlen result of a conditional with an offset

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91294 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/91449] [10 regression] new test case gcc.dg/strlenopt-73.c fails

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91449 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug testsuite/91449] [10 regression] new test case gcc.dg/strlenopt-73.c fails

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91449 --- Comment #2 from Martin Sebor --- The difference in the memcpy folding (done in gimple_fold_builtin_memory_op) is due to i386 target (an a few others) defining the MOVE_MAX macro to 16 while powerpc64 (and many others to 8), and quite a few ev

[Bug testsuite/91449] [10 regression] new test case gcc.dg/strlenopt-73.c fails

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91449 --- Comment #3 from Martin Sebor --- Author: msebor Date: Wed Aug 14 22:26:40 2019 New Revision: 274495 URL: https://gcc.gnu.org/viewcvs?rev=274495&root=gcc&view=rev Log: PR testsuite/91449 - new test case gcc.dg/strlenopt-73.c fails on powerpc6

[Bug tree-optimization/83819] [meta-bug] missing strlen optimizations

2019-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 91449, which changed state. Bug 91449 Summary: [10 regression] new test case gcc.dg/strlenopt-73.c fails https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91449 What|Removed |Added --

[Bug testsuite/91449] [10 regression] new test case gcc.dg/strlenopt-73.c fails

2019-08-14 Thread msebor at gcc dot gnu.org
|--- |FIXED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor --- In r274495 I've restricted the subset of the failing test cases to run only on i386 until the strlen optimization is enhanced to handle these cases.

[Bug tree-optimization/91457] FAIL: g++.dg/warn/Warray-bounds-4.C -std=gnu++98 (test for warnings, line 25)

2019-08-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91457 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #3 from Martin Sebor

[Bug tree-optimization/91457] FAIL: g++.dg/warn/Warray-bounds-4.C -std=gnu++98 (test for warnings, line 25)

2019-08-15 Thread msebor at gcc dot gnu.org
||2019-08-15 CC||msebor at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Confirmed. Here's a sli

[Bug middle-end/91462] New: missing -Warray-bounds writing to an empty flexible array member in a ctor

2019-08-15 Thread msebor at gcc dot gnu.org
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In the test case below, the write to the empty flexible array member in Ax isn't diagnosed even though the equivalent

[Bug middle-end/91462] [8/9/10 Regression] missing -Warray-bounds writing to an empty flexible array member in a ctor

2019-08-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91462 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Blocks|

[Bug middle-end/91463] New: missing -Warray-bounds accessing past the end of a statically initialized flexible array member

2019-08-15 Thread msebor at gcc dot gnu.org
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The past the end write to the flexible array member in f() is not diagnosed. DECL_SIZE of the array

[Bug middle-end/91463] missing -Warray-bounds accessing past the end of a statically initialized flexible array member

2019-08-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91463 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Blocks|

[Bug testsuite/91458] FAIL: g++.dg/tree-ssa/pr19807.C -std=gnu++98 scan-tree-dump-times optimized "&MEM\\\\[\\\\(void .\\\\)&a \\\\+ 8B\\\\]" 3

2019-08-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91458 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug testsuite/91458] FAIL: g++.dg/tree-ssa/pr19807.C -std=gnu++98 scan-tree-dump-times optimized "&MEM\\\\[\\\\(void .\\\\)&a \\\\+ 8B\\\\]" 3

2019-08-16 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- Let me fix it.

[Bug middle-end/90676] default GIMPLE dumps lack information

2019-08-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90676 --- Comment #10 from Martin Sebor --- Author: msebor Date: Fri Aug 16 15:47:25 2019 New Revision: 274574 URL: https://gcc.gnu.org/viewcvs?rev=274574&root=gcc&view=rev Log: PR testsuite/91458 gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/p

[Bug testsuite/91458] FAIL: g++.dg/tree-ssa/pr19807.C -std=gnu++98 scan-tree-dump-times optimized "&MEM\\\\[\\\\(void .\\\\)&a \\\\+ 8B\\\\]" 3

2019-08-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91458 --- Comment #4 from Martin Sebor --- Author: msebor Date: Fri Aug 16 15:47:25 2019 New Revision: 274574 URL: https://gcc.gnu.org/viewcvs?rev=274574&root=gcc&view=rev Log: PR testsuite/91458 gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/pr

[Bug testsuite/91458] FAIL: g++.dg/tree-ssa/pr19807.C -std=gnu++98 scan-tree-dump-times optimized "&MEM\\\\[\\\\(void .\\\\)&a \\\\+ 8B\\\\]" 3

2019-08-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91458 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug preprocessor/77672] wrong rich location in warning: writing a terminating nul past the end

2019-08-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77672 Martin Sebor changed: What|Removed |Added Status|WAITING |RESOLVED Known to work|

[Bug tree-optimization/91457] FAIL: g++.dg/warn/Warray-bounds-4.C -std=gnu++98 (test for warnings, line 25)

2019-08-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91457 Martin Sebor changed: What|Removed |Added Keywords||patch Target Milestone|---

[Bug middle-end/35903] false Warray-bounds warning when passing quoted string to function strcmp(arg,"no");

2019-08-16 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |WORKSFORME --- Comment #12 from Martin Sebor --- I haven't been able to reproduce the false positive with any of the test cases here, with -O2 or -O3 and with -funsigned-chars or without. Since there

[Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds

2019-08-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 35903, which changed state. Bug 35903 Summary: false Warray-bounds warning when passing quoted string to function strcmp(arg,"no"); https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35903 What|Removed

[Bug middle-end/91490] New: [9/10 Regression] bogus argument missing terminating nul warning on strlen of a flexible array member

2019-08-19 Thread msebor at gcc dot gnu.org
: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The strlen call in f() below compiles with no warning and is successfully folded to a constant

[Bug middle-end/90676] default GIMPLE dumps lack information

2019-08-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90676 --- Comment #11 from Martin Sebor --- Author: msebor Date: Wed Aug 21 02:18:41 2019 New Revision: 274764 URL: https://gcc.gnu.org/viewcvs?rev=274764&root=gcc&view=rev Log: PR testsuite/91458 gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/ss

[Bug testsuite/91458] FAIL: g++.dg/tree-ssa/pr19807.C -std=gnu++98 scan-tree-dump-times optimized "&MEM\\\\[\\\\(void .\\\\)&a \\\\+ 8B\\\\]" 3

2019-08-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91458 --- Comment #7 from Martin Sebor --- Author: msebor Date: Wed Aug 21 02:18:41 2019 New Revision: 274764 URL: https://gcc.gnu.org/viewcvs?rev=274764&root=gcc&view=rev Log: PR testsuite/91458 gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/ssa

[Bug middle-end/91490] [9/10 Regression] bogus argument missing terminating nul warning on strlen of a flexible array member

2019-08-21 Thread msebor at gcc dot gnu.org
|ASSIGNED Last reconfirmed||2019-08-21 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches

[Bug middle-end/91490] [9/10 Regression] bogus argument missing terminating nul warning on strlen of a flexible array member

2019-08-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91490 --- Comment #2 from Martin Sebor --- A subset of the patch referenced in comment #1 that deals with just this issue: https://gcc.gnu.org/ml/gcc-patches/2019-08/msg01517.html

[Bug middle-end/91490] [9/10 Regression] bogus argument missing terminating nul warning on strlen of a flexible array member

2019-08-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91490 --- Comment #3 from Martin Sebor --- Author: msebor Date: Thu Aug 22 23:09:26 2019 New Revision: 274837 URL: https://gcc.gnu.org/viewcvs?rev=274837&root=gcc&view=rev Log: PR middle-end/91490 - bogus argument missing terminating nul warning on st

[Bug tree-optimization/90883] Generated code is worse if returned struct is unnamed

2019-08-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90883 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment

[Bug middle-end/91490] [9 Regression] bogus argument missing terminating nul warning on strlen of a flexible array member

2019-08-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91490 Martin Sebor changed: What|Removed |Added Summary|[9/10 Regression] bogus |[9 Regression] bogus |a

[Bug tree-optimization/90883] Generated code is worse if returned struct is unnamed

2019-08-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90883 --- Comment #23 from Martin Sebor --- I get the same failure with -m32 -mtune=generic: spawn -ignore SIGHUP /ssd/build/gcc-svn/gcc/testsuite/g++/../../xg++ -B/ssd/buil d/gcc-svn/gcc/testsuite/g++/../../ /src/gcc/svn/gcc/testsuite/g++.dg/tree-ssa

[Bug middle-end/91535] New: missing warning on strchr reading from an empty constant array

2019-08-23 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC diagnoses calls to string functions like strcpy or strlen that attempt to access an empty flexible array member of constant object

[Bug target/84911] typo: error ("invalid name (\"%s\")

2019-08-26 Thread msebor at gcc dot gnu.org
||2019-08-26 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Martin Sebor --- It does, but the code hasn't been adjusted yet. So confirmed. There are quite a few outstanding -Wformat

[Bug c++/83431] -Wformat-truncation may incorrectly report truncation

2019-08-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83431 --- Comment #6 from Martin Sebor --- Author: msebor Date: Mon Aug 26 18:29:45 2019 New Revision: 274933 URL: https://gcc.gnu.org/viewcvs?rev=274933&root=gcc&view=rev Log: PR tree-optimization/83431 - -Wformat-truncation may incorrectly report tr

[Bug c++/83431] -Wformat-truncation may incorrectly report truncation

2019-08-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83431 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Known to work|

[Bug testsuite/91562] [10 regression] gcc.dg/strlenopt-8.c fails starting with r274933

2019-08-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91562 --- Comment #1 from Martin Sebor --- Author: msebor Date: Tue Aug 27 16:18:27 2019 New Revision: 274961 URL: https://gcc.gnu.org/viewcvs?rev=274961&root=gcc&view=rev Log: gcc/testsuite/ChangeLog: PR c++/83431 PR testsuite/91562

[Bug c++/83431] -Wformat-truncation may incorrectly report truncation

2019-08-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83431 --- Comment #8 from Martin Sebor --- Author: msebor Date: Tue Aug 27 16:18:27 2019 New Revision: 274961 URL: https://gcc.gnu.org/viewcvs?rev=274961&root=gcc&view=rev Log: gcc/testsuite/ChangeLog: PR c++/83431 PR testsuite/91562

[Bug testsuite/91562] [10 regression] gcc.dg/strlenopt-8.c fails starting with r274933

2019-08-27 Thread msebor at gcc dot gnu.org
|--- |FIXED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor --- Yes, I must have missed updating the name of the dump. It should be strlen1.

[Bug tree-optimization/91567] [10 Regression] Spurious -Wformat-overflow warnings building glibc (32-bit only)

2019-08-27 Thread msebor at gcc dot gnu.org
||2019-08-27 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- Thanks, I'm working on it. https://gcc.gnu.org/ml/gcc-patches/2019-08/msg01827.html

[Bug tree-optimization/91570] New: [10 Regression] ICE in get_range_strlen_dynamic on a conditional of two strings

2019-08-27 Thread msebor at gcc dot gnu.org
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- A snprintf call with the conditional expression involving a string of known length (zero) and another of some

[Bug tree-optimization/91570] [10 Regression] ICE in get_range_strlen_dynamic on a conditional of two strings

2019-08-27 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Last reconfirmed||2019-08-27 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Target Milestone|--- |10.0 Ever confirmed|0 |1

[Bug tree-optimization/83543] strlen of a local array member not optimized on some targets

2019-08-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83543 --- Comment #7 from Martin Sebor --- Author: msebor Date: Tue Aug 27 23:31:44 2019 New Revision: 274976 URL: https://gcc.gnu.org/viewcvs?rev=274976&root=gcc&view=rev Log: PR tree-optimization/91567 - Spurious -Wformat-overflow warnings building

[Bug tree-optimization/91567] [10 Regression] Spurious -Wformat-overflow warnings building glibc (32-bit only)

2019-08-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91567 --- Comment #2 from Martin Sebor --- Author: msebor Date: Tue Aug 27 23:31:44 2019 New Revision: 274976 URL: https://gcc.gnu.org/viewcvs?rev=274976&root=gcc&view=rev Log: PR tree-optimization/91567 - Spurious -Wformat-overflow warnings building

[Bug tree-optimization/85741] [meta-bug] bogus/missing -Wformat-overflow

2019-08-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85741 Bug 85741 depends on bug 91567, which changed state. Bug 91567 Summary: [10 Regression] Spurious -Wformat-overflow warnings building glibc (32-bit only) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91567 What|Removed

[Bug tree-optimization/91567] [10 Regression] Spurious -Wformat-overflow warnings building glibc (32-bit only)

2019-08-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91567 Martin Sebor changed: What|Removed |Added Keywords||patch Target|

[Bug testsuite/91562] [10 regression] gcc.dg/strlenopt-8.c fails starting with r274933

2019-08-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91562 Martin Sebor changed: What|Removed |Added Target Milestone|--- |10.0

<    12   13   14   15   16   17   18   19   20   21   >