[Bug tree-optimization/97188] [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57

2020-09-24 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug middle-end/97175] [11 Regression] ICE in maybe_warn_for_bound, at builtins.c:3483 since r11-2928-gd14c547abd484d35

2020-09-24 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175 --- Comment #8 from Martin Sebor --- *** Bug 97190 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/97190] [11 Regression] ICE in get_location_from_adhoc_loc at libcpp/line-map.c:257 since r11-2928-gd14c547abd484d35

2020-09-24 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97190 Martin Sebor changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug tree-optimization/97188] [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57

2020-09-24 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #1 from Martin Sebor -

[Bug tree-optimization/97201] [11 Regression] ICE in location_wrapper_p at gcc/gcc/tree.h:4002 since r11-3410-g67aeddb785ddcc86

2020-09-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97201 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug tree-optimization/97201] [11 Regression] ICE in location_wrapper_p at gcc/gcc/tree.h:4002 since r11-3410-g67aeddb785ddcc86

2020-09-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97201 --- Comment #2 from Martin Sebor --- Just a correction to the comment: + /* Zero-length arrays have a null upper bound in C++ and +SIZE_MAX in C. */ It's actually the other way around.

[Bug tree-optimization/97201] [11 Regression] ICE in location_wrapper_p at gcc/gcc/tree.h:4002 since r11-3410-g67aeddb785ddcc86

2020-09-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97201 --- Comment #3 from Martin Sebor --- The decision to use null for the upper bound can be traced to this message: https://gcc.gnu.org/pipermail/gcc-patches/2015-December/437361.html

[Bug c/97206] [11 Regression] internal compiler error: in composite_type, at c/c-typeck.c:447 since r11-3303-g6450f07388f9fe57

2020-09-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug tree-optimization/97201] [11 Regression] ICE in location_wrapper_p at gcc/gcc/tree.h:4002 since r11-3410-g67aeddb785ddcc86

2020-09-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97201 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #4 from Martin Sebor -

[Bug c/97206] [11 Regression] internal compiler error: in composite_type, at c/c-typeck.c:447 since r11-3303-g6450f07388f9fe57

2020-09-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206 --- Comment #4 from Martin Sebor --- A different/simpler test case that doesn't involve a call to handle_access_attribute(): $ cat pr97206.c && gcc -O2 -S -Wall pr97206.c void a (char *); void a (char [restrict]); extern const char b[]; extern

[Bug middle-end/94195] missing warning reading a smaller object via an lvalue of a larger type

2020-09-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94195 --- Comment #4 from Martin Sebor --- (In reply to Dmitry G. Dyachenko from comment #3) The warning is expected. The access to pS->s1.x implies that there must be an object at pS that's at least sizeof *pS large, even though only the leading 4 b

[Bug middle-end/94195] missing warning reading a smaller object via an lvalue of a larger type

2020-09-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94195 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

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

2020-09-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 94195, which changed state. Bug 94195 Summary: missing warning reading a smaller object via an lvalue of a larger type https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94195 What|Removed |A

[Bug c/97206] [11 Regression] internal compiler error: in composite_type, at c/c-typeck.c:447 since r11-3303-g6450f07388f9fe57

2020-09-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206 Martin Sebor changed: What|Removed |Added CC||jsm28 at gcc dot gnu.org --- Comment #5 f

[Bug c/97206] [11 Regression] internal compiler error: in composite_type, at c/c-typeck.c:447 since r11-3303-g6450f07388f9fe57

2020-09-29 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206 --- Comment #6 from Martin Sebor --- Testing this fix: diff --git a/gcc/attribs.c b/gcc/attribs.c index abc75368e6c..262e4b8f7b9 100644 --- a/gcc/attribs.c +++ b/gcc/attribs.c @@ -2278,7 +2278,7 @@ attr_access::array_as_string (tree type) const

[Bug c/97206] [11 Regression] internal compiler error: in composite_type, at c/c-typeck.c:447 since r11-3303-g6450f07388f9fe57

2020-09-29 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206 Martin Sebor changed: What|Removed |Added Keywords||ice-on-valid-code, patch --- Comment #7 f

[Bug tree-optimization/97188] [11 Regression] ICE passing a null VLA to a function expecting at least one element

2020-09-29 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/97189] [11 Regression] ICE in attr_access::array_as_string at gcc/attribs.c:2276 since r11-3303-g6450f07388f9fe57

2020-09-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97189 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug middle-end/95673] missing -Wstring-compare for an impossible strncmp test

2020-09-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95673 Martin Sebor changed: What|Removed |Added Blocks||83819 --- Comment #6 from Martin Sebor -

[Bug c/97206] [11 Regression] internal compiler error: in composite_type, at c/c-typeck.c:447 since r11-3303-g6450f07388f9fe57

2020-09-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/97189] [11 Regression] ICE in attr_access::array_as_string at gcc/attribs.c:2276 since r11-3303-g6450f07388f9fe57

2020-09-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97189 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/97260] New: memcmp of constant string and local constant array not folded

2020-09-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97260 Bug ID: 97260 Summary: memcmp of constant string and local constant array not folded Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal P

[Bug tree-optimization/97260] [9/10/11 regression] memcmp of constant string and local constant array not folded

2020-09-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97260 Martin Sebor changed: What|Removed |Added Known to work||4.8.5 Known to fail|

[Bug tree-optimization/97260] [9/10/11 regression] memcmp of constant string and local constant array not folded

2020-09-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97260 --- Comment #2 from Martin Sebor --- Bisection points to r200211 as the first commit after which the call wasn't folded: commit 6a6dac5293ee21d9aed0d394a0cb23948bb1efad Author: Jan Hubicka Date: Wed Jun 19 20:06:12 2013 +0200 cgraph.h (c

[Bug c/97261] distinguish invalid subscripts from invalid addresses in -Warray-bounds

2020-10-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97261 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug lto/97133] [11 Regression] ICE: tree code 'bind_expr' is not supported in LTO streams

2020-10-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97133 Martin Sebor changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c/97172] [11 Regression] ICE: tree code ‘ssa_name’ is not supported in LTO streams since r11-3303-g6450f07388f9fe57

2020-10-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97172 --- Comment #4 from Martin Sebor --- *** Bug 97133 has been marked as a duplicate of this bug. ***

[Bug c/97172] [11 Regression] ICE: tree code ‘ssa_name’ is not supported in LTO streams since r11-3303-g6450f07388f9fe57

2020-10-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97172 --- Comment #5 from Martin Sebor --- I'm not at all familiar with this part of GCC so I'm not sure what needs to be done here. It seems to me that the streamer is missing support for certain trees under some conditions. It knows how to stream S

[Bug tree-optimization/97260] [9/10/11 regression] memcmp of constant string and local constant array not folded

2020-10-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97260 --- Comment #4 from Martin Sebor --- It should be possible to handle in the strlen pass.

[Bug middle-end/95673] missing -Wstring-compare for an impossible strncmp test

2020-10-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95673 Martin Sebor changed: What|Removed |Added Target Milestone|--- |11.0 Keywords|

[Bug lto/97298] [11 regression] ICE at lto-streamer-out.c:554 after r11-3303

2020-10-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97298 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/97172] [11 Regression] ICE: tree code ‘ssa_name’ is not supported in LTO streams since r11-3303-g6450f07388f9fe57

2020-10-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97172 Martin Sebor changed: What|Removed |Added CC||seurer at gcc dot gnu.org --- Comment #6

[Bug middle-end/97336] False positive -Wstring-compare warning for strncmp()

2020-10-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97336 Martin Sebor changed: What|Removed |Added Resolution|--- |INVALID CC|

[Bug middle-end/95189] [9/10 Regression] memcmp being wrongly stripped like strcmp

2020-10-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189 Martin Sebor changed: What|Removed |Added Known to fail|10.1.0 | --- Comment #23 from Martin Sebor --- B

[Bug middle-end/97342] New: bogus -Wstringop-overflow with nonzero signed and unsigned offsets

2020-10-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97342 Bug ID: 97342 Summary: bogus -Wstringop-overflow with nonzero signed and unsigned offsets Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/98281] - -Wformat-truncation false positive due to excessive integer range (gcc 10.2.0)

2020-12-17 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98281 Martin Sebor changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug tree-optimization/94021] -Wformat-truncation false positive due to excessive integer range

2020-12-17 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94021 --- Comment #8 from Martin Sebor --- *** Bug 98281 has been marked as a duplicate of this bug. ***

[Bug c++/98355] [9/10/11 Regression] ICE in has_attribute, at c-family/c-attribs.c:5628

2020-12-17 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98355 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 See Also|

[Bug middle-end/98373] [11 Repression] Bogus error: ‘symbuf’ may be used uninitialized at -O0

2020-12-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98373 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0

[Bug c/97172] [11 Regression] ICE: tree code ‘ssa_name’ is not supported in LTO streams since r11-3303-g6450f07388f9fe57

2020-12-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97172 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug c/85997] Bogus -Wvla warning from function array argument with size expression

2020-12-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85997 Martin Sebor changed: What|Removed |Added Last reconfirmed||2020-12-18 See Also|

[Bug c/98217] Prefer a warning for when VLAs declared on stack

2020-12-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98217 Martin Sebor changed: What|Removed |Added Status|WAITING |ASSIGNED Assignee|unassigned at

[Bug middle-end/83174] -Wvla-larger-than reports wrong VLA size in some cases

2020-12-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83174 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Known to work|

[Bug c/98379] New: Unknown tree: c_maybe_const_expr in a warning

2020-12-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98379 Bug ID: 98379 Summary: Unknown tree: c_maybe_const_expr in a warning Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug middle-end/98373] [11 Repression] Bogus error: ‘symbuf’ may be used uninitialized at -O0 by r11-959

2020-12-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98373 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/97172] [11 Regression] ICE: tree code ‘ssa_name’ is not supported in LTO streams since r11-3303-g6450f07388f9fe57

2020-12-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97172 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #22 from Martin Sebor

[Bug middle-end/98405] New: missing -Wmaybe-uninitialized passing a member by reference in a ctor initializer list

2020-12-20 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98405 Bug ID: 98405 Summary: missing -Wmaybe-uninitialized passing a member by reference in a ctor initializer list Product: gcc Version: unknown Status: UNCONFIRMED

[Bug middle-end/98405] missing -Wmaybe-uninitialized passing a member by reference in a ctor initializer list

2020-12-20 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98405 Martin Sebor changed: What|Removed |Added Blocks||24639 Status|UNCONFIRMED

[Bug middle-end/98406] New: missing -Wmaybe-uninitialized passing a member by reference

2020-12-20 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98406 Bug ID: 98406 Summary: missing -Wmaybe-uninitialized passing a member by reference Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Pri

[Bug c++/98413] [11 Regression] ICE with placement new since r11-3827-g83685efd5fd1623c

2020-12-22 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98413 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug tree-optimization/98160] [11 Regression] ICE in default_tree_printer at gcc/tree-diagnostic.c:270 since r11-5732-gdce6c58db87ebf7f

2020-12-23 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98160 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|REOPENED

[Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

2020-12-23 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 98160, which changed state. Bug 98160 Summary: [11 Regression] ICE in default_tree_printer at gcc/tree-diagnostic.c:270 since r11-5732-gdce6c58db87ebf7f https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98160 What

[Bug c++/98413] [11 Regression] ICE on placement new and member pointer

2020-12-23 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98413 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Summary|[11 Regressio

[Bug tree-optimization/98444] [10 Regression] compile error with -ftracer and -Werror=format-overflow

2020-12-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98444 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Last reconfir

[Bug middle-end/98465] Bogus warning stringop-overread wuth -std=gnu++20 -O2 and std::string::insert

2020-12-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Keywo

[Bug middle-end/98465] Bogus warning stringop-overread wuth -std=gnu++20 -O2 and std::string::insert

2020-12-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 --- Comment #4 from Martin Sebor --- (In reply to Romain Geissler from comment #2) > There seems to be a strange interaction between -Wsystem-headers and -g in > gcc 11 which I don't understand. Thanks for the -g hint; with it I can see it on my

[Bug middle-end/98483] New: missing -Warray-bounds for out of bounds accesses in system headers

2020-12-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98483 Bug ID: 98483 Summary: missing -Warray-bounds for out of bounds accesses in system headers Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/98484] New: missing -Wstringop-overflow on a multiply inlined calls from system header

2020-12-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98484 Bug ID: 98484 Summary: missing -Wstringop-overflow on a multiply inlined calls from system header Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: norma

[Bug middle-end/98484] missing -Wstringop-overflow on invalid accesses to the same object by distinct functions

2020-12-30 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98484 Martin Sebor changed: What|Removed |Added Summary|missing -Wstringop-overflow |missing -Wstringop-overflow

[Bug c++/98492] New: C++ pp_gimple_stmt_1 doesn't output function call arguments

2020-12-31 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98492 Bug ID: 98492 Summary: C++ pp_gimple_stmt_1 doesn't output function call arguments Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Pri

[Bug c++/95768] [11 Regression] -march=sandybridge -O2 -Wall crashes as 'during GIMPLE pass: uninit ... Segmentation fault'

2021-01-02 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95768 --- Comment #8 from Martin Sebor --- Updated patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/562665.html

[Bug c/98503] [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da

2021-01-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2021-01-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 98503, which changed state. Bug 98503 Summary: [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503 Wha

[Bug c/98503] [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da

2021-01-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503 Martin Sebor changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

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

2021-01-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 98503, which changed state. Bug 98503 Summary: [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503 Wha

[Bug tree-optimization/98512] [11 Regression] “#pragma GCC diagnostic ignored” ineffective in conjunction with alias attribute

2021-01-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98512 Martin Sebor changed: What|Removed |Added Known to fail||11.0 Status|UNCONFIRMED

[Bug tree-optimization/98512] [11 Regression] “#pragma GCC diagnostic ignored” ineffective in conjunction with alias attribute

2021-01-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98512 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug c/98503] [11 regression] -Warray-bounds false positive with global variables at -O2 since r11-3306-g3f9a497d1b0dd9da

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503 --- Comment #10 from Martin Sebor --- The main purpose of the "partly outside" warning is to detect reads/writes that cross the trailing array boundary. Those typically come up when a "typeless" buffer (either char array or one allocated by a fu

[Bug c/98539] incorrect warning with -Wvla-parameter for unspecified bound in multi-dim array

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98539 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Last reconfirmed|

[Bug c/98539] incorrect warning with -Wvla-parameter for unspecified bound in multi-dim array

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98539 --- Comment #2 from Martin Sebor --- *** Bug 98091 has been marked as a duplicate of this bug. ***

[Bug c/98091] unspecified VLA bound formatted as [0] instead of [*] in -Wvla-parameter

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98091 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/98536] warning with -Wvla-parameter for unspecified bound getting specified later

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98536 Martin Sebor changed: What|Removed |Added Keywords||diagnostic CC|

[Bug middle-end/98508] Sanitizer disable -Wall and -Wextra

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98508 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug middle-end/98508] Sanitizer disable -Wall and -Wextra

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98508 --- Comment #5 from Martin Sebor --- There's no need to change the fn spec. The simple (and safe) solution to this request is to check calls to see if they're to IFN_ASAN_MARK, like this: diff --git a/gcc/tree-ssa-uninit.c b/gcc/tree-ssa-uninit

[Bug middle-end/98548] New: missing warning on strcmp with a nonstring member

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98548 Bug ID: 98548 Summary: missing warning on strcmp with a nonstring member Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug middle-end/98553] New: missing warning on strncmp reading past the end of a zero size member array

2021-01-05 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98553 Bug ID: 98553 Summary: missing warning on strncmp reading past the end of a zero size member array Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: norm

[Bug middle-end/98561] -Wstringop-overflow triggered when memcpy to single char and writing to differently sized array members

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98561 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/95353] [10 Regression] spurious -Wstringop-overflow writing to a trailing array plus offset

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95353 Martin Sebor changed: What|Removed |Added CC||alexander.grund@tu-dresden.

[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 98561, which changed state. Bug 98561 Summary: -Wstringop-overflow triggered when memcpy to single char and writing to differently sized array members https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98561 What

[Bug testsuite/98566] g++.dg/warn/Wmismatched-dealloc.C fails with -std=c++11

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98566 --- Comment #3 from Martin Sebor --- I suspect I meant for the test to only be compiled in C++ 14 and up, but it has { dg-do compile { target c++11 } } at the top so that seems wrong. But the test log shows that it is only compiled in c++14 mode

[Bug c/98571] ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98571 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug c/98541] warning with -Wnonnull for array parameter with bound > 0

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98541 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c/98541] warning with -Wnonnull for array parameter with bound > 0

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98541 --- Comment #2 from Martin Sebor --- (In reply to Martin Sebor from comment #1) > and necessary to prevent this use case. I mean: ...to prevent invalidating it.

[Bug c++/98305] spurious -Wmismatched-new-delete on template instance

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98305 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/95768] [11 Regression] -march=sandybridge -O2 -Wall crashes as 'during GIMPLE pass: uninit ... Segmentation fault'

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95768 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/98465] Bogus warning stringop-overread wuth -std=gnu++20 -O2 and std::string::insert

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 --- Comment #5 from Martin Sebor --- Comparing the code emitted by GCC 10 and the current trunk shows that the former doesn't inline std::string::replace() regardless of the inlining limit. The translation unit obtained with the former shows dec

[Bug middle-end/98465] Bogus warning stringop-overread wuth -std=gnu++20 -O2 and std::string::insert

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 --- Comment #6 from Martin Sebor --- Different -std= settings also affect the warning, again as a result of inlining and the explicit instantiation declarations. The basic_string.tcc file has the following block toward the end which explains whe

[Bug middle-end/98465] Bogus warning stringop-overread wuth -std=gnu++20 -O2 and std::string::insert

2021-01-06 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 --- Comment #7 from Martin Sebor --- Adding #pragma GCC diagnostic ignore "-Wstringop-overread" to string::_M_replace(size_type, size_type, const _CharT*, const size_type) doesn't suppress the warning, either on trunk, or (with "-Wstringop-overfl

[Bug middle-end/98583] New: missing -Wuninitialized reading from a second VLA in its own block

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98583 Bug ID: 98583 Summary: missing -Wuninitialized reading from a second VLA in its own block Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c/98587] New: incorrect format of VLAs and pointer to array for MEM_REF

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98587 Bug ID: 98587 Summary: incorrect format of VLAs and pointer to array for MEM_REF Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Prior

[Bug c/98587] incorrect format of VLAs and pointer to array for MEM_REF

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98587 Martin Sebor changed: What|Removed |Added Severity|normal |trivial Keywords|

[Bug c/98588] New: VLA index formatted as when it could be expanded into an expression

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98588 Bug ID: 98588 Summary: VLA index formatted as when it could be expanded into an expression Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: trivial

[Bug c/98588] VLA index formatted as when it could be expanded into an expression

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98588 Martin Sebor changed: What|Removed |Added Keywords||diagnostic See Also|

[Bug tree-optimization/98578] [11 Regression] ICE in print_mem_ref since r11-6508-gabb1b6058c09a7c0

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98578 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug middle-end/98465] Bogus warning stringop-overread wuth -std=gnu++20 -O2 and std::string::insert

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/98578] [11 Regression] ICE in print_mem_ref since r11-6508-gabb1b6058c09a7c0

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98578 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/98589] [11 regression] Warning changes in gcc.dg/plugin/gil-1.c after r11-6508

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98589 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug c/98592] New: ICE in gimple_canonical_types_compatible_p while formatting a MEM_REF

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98592 Bug ID: 98592 Summary: ICE in gimple_canonical_types_compatible_p while formatting a MEM_REF Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/98097] Missing warning about strcmp (char[4], "BARZ")

2021-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98097 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #4 from Martin Sebor -

[Bug c/98592] ICE in gimple_canonical_types_compatible_p while formatting a MEM_REF

2021-01-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98592 --- Comment #2 from Martin Sebor --- The idea is to print the cast indicating the MEM_REF type only when the size of the accessed type is different from the size of the element type of the underlying array or pointer. Structural equivalence seem

<    1   2   3   4   5   6   7   8   9   10   >