[Bug c++/95094] alignof(reference_to_type) doesn't return alignof(referenced_type) as it should by the standard

2020-05-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95094 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org See

[Bug middle-end/95136] New: missing -Wuninitialized on an array access with a variable offset

2020-05-14 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 successfully reports uninitialized reads from arrays involving variable indices but it fails to find the same bugs when besides

[Bug middle-end/95136] missing -Wuninitialized on an array access with a variable offset

2020-05-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95136 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug middle-end/95140] New: [10/11 Regression] bogus -Wstringop-overflow for a loop unrolled past the end of a trailing array

2020-05-14 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: --- As reported in https://bugzilla.redhat.com/show_bug.cgi?id=1835906, compiling loops that copy a

[Bug middle-end/95140] [10/11 Regression] bogus -Wstringop-overflow for a loop unrolled past the end of a trailing array

2020-05-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95140 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Bug middle-end/95140] [10/11 Regression] bogus -Wstringop-overflow for a loop unrolled past the end of a trailing array

2020-05-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95140 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/95140] [10/11 Regression] bogus -Wstringop-overflow for a loop unrolled past the end of a trailing array

2020-05-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95140 --- Comment #4 from Martin Sebor --- No. GCC's manual recommends using either flexible array members or zero-length arrays, and explicitly discourages abuses of arrays of length one (nothing is said about any such exceptions for larger arrays):

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2020-05-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10138 Martin Sebor changed: What|Removed |Added Keywords||patch Last reconfirmed|2008-03-30 20:45

[Bug c++/95156] -Wtautological-compare warns in C but not C++

2020-05-15 Thread msebor at gcc dot gnu.org
|NEW Ever confirmed|0 |1 CC||msebor at gcc dot gnu.org Known to fail||10.1.0, 11.0, 9.2.0 Keywords||diagnostic Last reconfirmed

[Bug tree-optimization/15880] No 'may be used uninitialize' warning for arrays.

2020-05-15 Thread msebor at gcc dot gnu.org
|FIXED Blocks||24639 CC||msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor --- GCC has diagnosed this bug since at least version 4.1 so it's FIXED (and unrelated to bug 10138). Refer

[Bug lto/95190] Documentation for -Wstringop-overflow

2020-05-18 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |WAITING Component|c++ |lto Ever confirmed|0 |1 CC||marxin at gcc dot gnu.org, ||msebor at gcc dot gnu.org

[Bug middle-end/92815] [8/9/10 Regression] spurious -Wstringop-overflow writing into a flexible array of an extern struct

2020-05-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92815 Martin Sebor changed: What|Removed |Added Known to work||11.0 Summary|[8/9/10/11 Regres

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

2020-05-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 94940, which changed state. Bug 94940 Summary: [10 Regression] spurious -Warray-bounds for a zero length array member of union since r10-4300-g49fb45c81f4ac068 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94940

[Bug middle-end/94940] [10 Regression] spurious -Warray-bounds for a zero length array member of union since r10-4300-g49fb45c81f4ac068

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

[Bug c++/12341] Request for additional warning for variable shadowing

2020-05-18 Thread msebor at gcc dot gnu.org
:28:15 |2020-5-18 CC||msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- Reconfirming with GCC 11.0. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403 [Bug 87403] [Meta-bug] Issues that suggest a new warning

[Bug c/30368] missing warning for dereferencing null pointer

2020-05-18 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Last reconfirmed|2007-03-13 16:12:46 |2020-5-18 --- Comment #9 from Martin Sebor --- Missing warning reconfirmed with GCC 11. The last pass where the null pointer is still available is the CCP1 pass whose output shows that it removes it

[Bug libfortran/95177] error: array subscript has type char

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95177 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #5

[Bug libfortran/95177] error: array subscript has type char

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95177 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c/95217] New: missing -Wunused-but-set-parameter for compound assignment

2020-05-19 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC issues -Wunused-but-set-parameter for function arguments used only as the left operand of ordinary assignment expressions but it fails to

[Bug c/64639] missing warning by -Wunused-value in compound expressions

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64639 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #7

[Bug c/95217] missing -Wunused-but-set-parameter for compound assignment

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95217 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Blocks|

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

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89180 Bug 89180 depends on bug 95217, which changed state. Bug 95217 Summary: missing -Wunused-but-set-parameter for compound assignment https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95217 What|Removed |Added -

[Bug c/44677] Warn for variables incremented but not used

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44677 Martin Sebor changed: What|Removed |Added Last reconfirmed|2010-06-28 00:34:58 |2020-5-19 --- Comment #10 from Martin Seb

[Bug target/95218] New: [11 Regression] FAIL: gcc.target/i386/fma_run_double_1.c execution test

2020-05-19 Thread msebor at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- With yesterday's top of trunk I see the following test failures on x86_64-linux: $ grep FAIL gcc/testsuite/gcc/gcc.log |

[Bug target/95219] New: [11 Regression] FAIL: gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c

2020-05-19 Thread msebor at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- With yesterday's top of trunk I see the following test failure on x86_64-linux: spawn -ignore SIGHUP /ssd/test/build/gcc-

[Bug target/95218] [11 Regression] FAIL: gcc.target/i386/fma_run_double_1.c execution test

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95218 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug fortran/95109] [11 regression] ICE in gfortran.dg/gomp/target1.f90 after r11-349

2020-05-19 Thread msebor at gcc dot gnu.org
|1 Host|powerpc64*-linux-gnu|powerpc64*-linux-gnu ||x86_64-linux Last reconfirmed||2020-05-19 CC||msebor at gcc dot gnu.org --- Comment #2

[Bug middle-end/24786] Missing warning on questionable use of parameter to initialize static

2020-05-19 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Last reconfirmed|2015-09-18 00:00:00 |2020-5-19 --- Comment #4 from Martin Sebor --- Reconfirming that a warning for this and other similar cases (e.g., pr82520 and pr69433) would be valuable. Referenced Bugs: https://gcc.gnu.org/bugzilla

[Bug middle-end/31279] Uninitialized warning for call-by-reference arguments with known intent(in)

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31279 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug testsuite/39353] Linker warning causing tests to fail (960218 and 20030913)

2020-05-19 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING --- Comment #2 from Martin Sebor --- I suspect this is too old to be relevant anymore. If it's still a problem can you please update the r

[Bug c/41809] escaping address of packed field should trigger warning

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41809 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #7

[Bug c/41809] escaping address of packed field should trigger warning

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41809 Martin Sebor changed: What|Removed |Added Known to work||10.1.0, 9.2.0 Resolution|---

[Bug c++/68160] Can bind packed field if it's packed with #pragma pack(push, 1)

2020-05-19 Thread msebor at gcc dot gnu.org
, ||7.5.0, 8.3.0, 9.2.0 Last reconfirmed|2017-08-25 00:00:00 |2020-5-19 Keywords||diagnostic CC||msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor --- Reconfirmed

[Bug middle-end/44300] Spurious array subscript warning, &b[0] == &a[1] is not folded

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44300 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug c++/46513] Request: Warning for use of unsafe string handling functions

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46513 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug c/48091] No warning when given function arguments mismatch earlier function definition which GCC assumes to be K&R, even with --std=c99 -pedantic

2020-05-19 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org --- Comment #9 from Martin Sebor --- The problem with calls to K&R function definitions is isolated to the single translation unit that defines those functions. The problem with the same declarations (i.e., functions without a prototype) is much bi

[Bug tree-optimization/49657] array subscript warnings when building gcc with -O2

2020-05-19 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |WORKSFORME --- Comment #6 from Martin Sebor --- I suspect this is no longer a problem with current releases. They all build with -O2 and -Werror.

[Bug c/50584] No warning for passing small array to C99 static array declarator

2020-05-19 Thread msebor at gcc dot gnu.org
00:00:00 |2020-5-19 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #15 from Martin Sebor --- GCC 10 introduced attribute access to associate a pointer argument with a size of the object it points to. Although the GCC 10 implementation of the

[Bug middle-end/53890] bogus array bounds warning

2020-05-19 Thread msebor at gcc dot gnu.org
||5.5.0 Blocks||56456 Status|UNCONFIRMED |RESOLVED Keywords||diagnostic CC||msebor at gcc dot gnu.org Resolution

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

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 53890, which changed state. Bug 53890 Summary: bogus array bounds warning https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53890 What|Removed |Added -

[Bug middle-end/24786] Missing warning on questionable use of parameter to initialize static

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24786 Martin Sebor changed: What|Removed |Added Resolution|FIXED |DUPLICATE --- Comment #6 from Martin Sebo

[Bug c++/69433] missing -Wreturn-local-addr assigning address of a local to a static

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69433 Martin Sebor changed: What|Removed |Added CC||dank at kegel dot com --- Comment #5 from

[Bug tree-optimization/94335] [10/11 Regression] False positive -Wstringop-overflow warning with -O2

2020-05-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94335 Martin Sebor changed: What|Removed |Added Known to fail||10.1.0, 11.0 Blocks|

[Bug middle-end/95276] [11 Regression] Amusing stringpop-overflow message building libgfortran

2020-05-22 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |WAITING CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Can you please reduce that to a test case or a translation unit?

[Bug middle-end/95277] New: error on alignment for a function argument

2020-05-22 Thread msebor at gcc dot gnu.org
-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Declaring a local variable with attribute aligned is accepted. Declaring a function argument with an overligned type is also accepted. However, specifying attribute aligned

[Bug middle-end/95278] New: attribute nonstring effect on arguments in function declaration that's not a definition

2020-05-22 Thread msebor at gcc dot gnu.org
IRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- strlen calls in both functions below should be diagnosed because the declaration with the attribute is l

[Bug c/95280] New: poor warning for attribute used on a function argument

2020-05-22 Thread msebor at gcc dot gnu.org
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC warns when attribute used is specified on a function argument (e.g., as a mistake instead of unused) but the warning is devoid of any useful information: $ cat z.c

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

2020-05-24 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor --- Isn't the problem that c_getstr(arg2, &len2) sets len2 to 1 instead of 4 (i.e, sizeof (x)) as the function comment sugges

[Bug middle-end/95276] [10/11 Regression] Amusing stringpop-overflow message building libgfortran

2020-05-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95276 --- Comment #7 from Martin Sebor --- There are some uninitialized local variables in the reduced test case but with those made extern I was able to reproduce the warning. But unless the test case was reduced too far or the reduction introduced b

[Bug c++/95307] Compiler accepts reinterpret_cast in constexpr

2020-05-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95307 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug tree-optimization/95353] [10/11 Regression] GCC can't build binutils

2020-05-27 Thread msebor at gcc dot gnu.org
gcc dot gnu.org |msebor at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #5 from Martin Sebor --- The warning is due to a limitation of the compute_objsize() function. A small "supported" test case (one that doesn't depend on a traili

[Bug tree-optimization/95353] [10/11 Regression] GCC can't build binutils

2020-05-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95353 --- Comment #7 from Martin Sebor --- I test my warning changes with binutils and --enable-targets=all. But that apparently doesn't compile all source files, and I don't have a cross-build setup in place (or the resources to do it). If someone w

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

2020-05-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95353 Martin Sebor changed: What|Removed |Added Known to fail||10.1.0, 11.0 Summary|[10/11 Re

[Bug c/95445] New: diagnose incompatible calls to functions declared without prototype

2020-05-30 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC silently accepts calls to built-in functions declared without a prototype as long as the arguments match the expected types (based on

[Bug c/95445] diagnose incompatible calls to functions declared without prototype

2020-05-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95445 Martin Sebor changed: What|Removed |Added Blocks||87403 Severity|normal

[Bug middle-end/95463] New: missing -Warray-bounds caused by assuming unsigned integer wrapping

2020-06-01 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 avoids issuing -Warray-bounds for indices whose range wraps around zero, such as in g() below. Since unsigned wraparound is

[Bug middle-end/95463] missing -Warray-bounds caused by assuming unsigned integer wrapping

2020-06-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95463 Martin Sebor changed: What|Removed |Added Blocks||56456 Severity|normal

[Bug middle-end/95461] GCC misses -Warray-bounds warning message

2020-06-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95461 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug middle-end/95461] GCC misses -Warray-bounds warning message

2020-06-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95461 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED

[Bug middle-end/35587] -Warray-bounds does not work at all or does not find all trivial cases, and :works only with -O2 or -O3

2020-06-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35587 Martin Sebor changed: What|Removed |Added CC||haoxintu at gmail dot com --- Comment #13

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

2020-06-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 95461, which changed state. Bug 95461 Summary: GCC misses -Warray-bounds warning message https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95461 What|Removed |Added --

[Bug tree-optimization/65461] -Warray-bounds due to loop unrolling in the linux kernel (free_area_init_nodes)

2020-06-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65461 Martin Sebor changed: What|Removed |Added Summary|-Warray-bounds warnings in |-Warray-bounds due to loop

[Bug middle-end/78678] possibly missing -Warray-bounds warning without -fsanitize=object-size

2020-06-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78678 Martin Sebor changed: What|Removed |Added Known to fail||10.1.0, 11.0, 7.3.0, 8.2.0,

[Bug middle-end/95473] GCC misses -Wnull-dereference warning in a simple code

2020-06-02 Thread msebor at gcc dot gnu.org
|--- |DUPLICATE Status|NEW |RESOLVED CC||msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- The reason for this is the same as in pr95461 comment #1. Like -Warray-bounds, for optimal results

[Bug middle-end/95461] GCC misses -Warray-bounds warning message

2020-06-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95461 --- Comment #3 from Martin Sebor --- *** Bug 95473 has been marked as a duplicate of this bug. ***

[Bug middle-end/95485] New: missing warning writing into function text

2020-06-02 Thread msebor at gcc dot gnu.org
-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC doesn't diagnose attempts to write into functions, even though those will in all likelihood crash with a SIGBUS at runtime. For example, in the following snippe

[Bug middle-end/95485] missing warning writing into function text

2020-06-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95485 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Severity|normal

[Bug middle-end/95485] missing warning writing into function text

2020-06-02 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=90404 Assignee|unassigned at gcc dot gnu.org |msebor at gcc

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

2020-06-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95353 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #9 from Martin Sebor -

[Bug sanitizer/95496] [10/11 Regression] Bogus -Wformat-overflow= warnings with -fsanitize=undefined

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95496 Martin Sebor changed: What|Removed |Added Blocks||85741 --- Comment #2 from Martin Sebor -

[Bug tree-optimization/95490] [10/11 Regression] writing 1 byte into a region of size 0 [-Wstringop-overflow=] since r10-5451-gef29b12cfbb4979a89b3cbadbf485a77c8fd8fce

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95490 Martin Sebor changed: What|Removed |Added Resolution|--- |DUPLICATE Blocks|

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

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95353 --- Comment #10 from Martin Sebor --- *** Bug 95490 has been marked as a duplicate of this bug. ***

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

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 95490, which changed state. Bug 95490 Summary: [10/11 Regression] writing 1 byte into a region of size 0 [-Wstringop-overflow=] since r10-5451-gef29b12cfbb4979a89b3cbadbf485a77c8fd8fce https://gcc.gnu.org/bugzilla/show_bu

[Bug middle-end/95485] missing warning writing into function text

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95485 --- Comment #3 from Martin Sebor --- Ah, yes, -Wpedantic does detect the invalid conversion. But few projects use -Wpedantic (GCC itself doesn't) and enabling the warning in -Wall or -Wextra would likely lead to lots of noise for code that conve

[Bug sanitizer/95496] [10/11 Regression] Bogus -Wformat-overflow= warnings with -fsanitize=undefined

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95496 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/95507] New: [meta-bug] bogus/missing -Wnonnull

2020-06-03 Thread msebor at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Meta-bug for -Wnonnull false positives and negatives.

[Bug middle-end/95507] [meta-bug] bogus/missing -Wnonnull

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95507 Martin Sebor changed: What|Removed |Added Last reconfirmed||2020-06-03 Ever confirmed|0

[Bug c++/86568] -Wnonnull warnings should highlight the relevant argument not the closing parenthesis

2020-06-03 Thread msebor at gcc dot gnu.org
|1 CC||msebor at gcc dot gnu.org Known to fail||10.1.0, 11.0, 9.2.0 Blocks||95507 Status|UNCONFIRMED |NEW --- Comment #1 from Martin

[Bug middle-end/78998] missing -Wnonnull for an unconditional call to strlen with a null argument

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78998 Martin Sebor changed: What|Removed |Added Known to fail||10.1.0, 11.0, 7.3.0, 8.2.0,

[Bug middle-end/78917] missing -Wnonnull passing null to a nonnull function

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78917 Martin Sebor changed: What|Removed |Added Known to fail||10.1.0, 11.0, 7.3.0, 8.2.0,

[Bug middle-end/95515] New: missing --Wnonnull on a straightforward call with a null pointer

2020-06-03 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: --- In the following test case only the first two instances of passing a null argument to a nonnull function are diagnosed. The third

[Bug middle-end/95507] [meta-bug] bogus/missing -Wnonnull

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95507 Bug 95507 depends on bug 80936, which changed state. Bug 80936 Summary: bcmp, bcopy, and bzero not declared nonnull https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80936 What|Removed |Added

[Bug tree-optimization/80936] bcmp, bcopy, and bzero not declared nonnull

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80936 Martin Sebor changed: What|Removed |Added Known to work||10.1.0 Status|ASSIGNED

[Bug c++/79961] Should diagnose when '__nonnull__' attribute is applied to implicit this argument

2020-06-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79961 Martin Sebor changed: What|Removed |Added Version|unknown |7.1.0 Known to fail|

[Bug lto/95533] Spurious(?) warning "writing 2 bytes into a region of size 0" with -O(2|3) -fwhole-program -flto

2020-06-04 Thread msebor at gcc dot gnu.org
|RESOLVED Keywords||diagnostic Last reconfirmed||2020-6-4 CC||msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- Confirmed as a likely duplicate of

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

2020-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95353 Martin Sebor changed: What|Removed |Added CC||dominiq at lps dot ens.fr --- Comment #11

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2020-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 10138, which changed state. Bug 10138 Summary: warn for uninitialized arrays passed as const* arguments https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10138 What|Removed |Added ---

[Bug middle-end/70987] missing -Wuninitialized calling built-in string functions with an uninitialized argument

2020-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70987 Bug 70987 depends on bug 10138, which changed state. Bug 10138 Summary: warn for uninitialized arrays passed as const* arguments https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10138 What|Removed |Added ---

[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

2020-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10138 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2020-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 95136, which changed state. Bug 95136 Summary: missing -Wuninitialized on an array access with a variable offset https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95136 What|Removed |Added -

[Bug middle-end/95136] missing -Wuninitialized on an array access with a variable offset

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

[Bug c/95554] New: spurious -Wnonnull on a conditional call

2020-06-05 Thread msebor at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The C test case below was reduced from gcc/var-tracking.c which triggers the -Wnonnull (in C++) when the this pointer in member functions is considered implicitly declared nonnull (or

[Bug bootstrap/95555] [11 regression] bootstrap build failure starting with r11-959

2020-06-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 --- Comment #1 from Martin Sebor --- The reload_cse_simplify_operands() function allocates three arrays but resets only two: alternative_reject = XALLOCAVEC (int, recog_data.n_alternatives); alternative_nregs = XALLOCAVEC (int, recog_data.n_

[Bug c++/86568] -Wnonnull warnings should highlight the relevant argument not the closing parenthesis

2020-06-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86568 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug bootstrap/95555] [11 regression] bootstrap build failure starting with r11-959

2020-06-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 --- Comment #3 from Martin Sebor --- (In reply to Andreas Schwab from comment #2) > alternative_order[0] is guaranteed to be set, because alternative_reject[i] > <= alternative_reject[which_alternative] for i == which_alternative at > least. We

[Bug bootstrap/95555] [11 regression] bootstrap build failure starting with r11-959

2020-06-06 Thread msebor at gcc dot gnu.org
||powerpc64*-linux Target||powerpc64*-linux Last reconfirmed||2020-06-06 Build||powerpc64*-linux Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot

[Bug bootstrap/95555] [11 regression] bootstrap build failure starting with r11-959

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

[Bug tree-optimization/95581] [11 Regression] ICE in gimple_call_arg, at gimple.h:3260 since r11-959-gb825a22890740f341eae566af27e18e528cd29a7

2020-06-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95581 --- Comment #1 from Martin Sebor --- gimple_call_arg(stmt, 2) asserts for this GIMPLE_CALL statement: vect__5.6_24 = __builtin_altivec_mask_for_load (vectp_a.5_8); The call is made with just one argument but the type of the function is actual

[Bug c++/95589] New: missing warning initializing a reference with a dereferenced null

2020-06-08 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Initializing a reference by dereferenced null pointer is not diagnosed but should be because such a reference is invalid: $ cat t.C

[Bug c++/95589] missing warning initializing a reference with a dereferenced null

2020-06-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95589 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

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