[Bug c++/96003] [11 Regression] spurious -Wnonnull calling a member on the result of static_cast

2020-07-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 Martin Sebor changed: What|Removed |Added Summary|[11 Regression] Maybe a |[11 Regression] spurious

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-07-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #2

[Bug c++/96242] ICE conditionally noexcept defaulted comparison

2020-07-20 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |NEW CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- Please include the information requested at https://gcc.gnu.org/bugs (the link is printed in the GCC output for

[Bug c/96249] The string " bytes" is repeated at the end of the message

2020-07-20 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |FIXED Severity|normal |trivial Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor --- Fixed in r11-2229.

[Bug middle-end/95886] suboptimal memcpy with embedded zero bytes

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

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

2020-07-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189 Martin Sebor changed: What|Removed |Added Summary|[10/11 Regression] memcmp |[10 Regression] memcmp

[Bug tree-optimization/96245] Failure to optimize arithmetic pattern in switch

2020-07-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96245 --- Comment #4 from Martin Sebor --- Only (1) would be true. Like the optimization, the warning wouldn't trigger in code that didn't follow the pattern because there's no way to tell if that's deliberate or a bug. I'd expect the warning to be u

[Bug sanitizer/96259] [10/11 Regression] warning on GCC 10

2020-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96259 Martin Sebor changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug tree-optimization/94655] [10/11 Regression] Implicit assignment operator triggers stringop-overflow warning since r10-5451-gef29b12cfbb4979a

2020-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94655 Martin Sebor changed: What|Removed |Added CC||freddy77 at gmail dot com --- Comment #10

[Bug target/96247] -falign-functions=0 works wrongly

2020-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96247 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #3

[Bug middle-end/95988] [10/11 Regression] Bogus -Warray-bounds/-Wstringop-overflow warning with loop

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

[Bug tree-optimization/94655] [10/11 Regression] Implicit assignment operator triggers stringop-overflow warning since r10-5451-gef29b12cfbb4979a

2020-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94655 Martin Sebor changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment #1

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

2020-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 95988, which changed state. Bug 95988 Summary: [10/11 Regression] Bogus -Warray-bounds/-Wstringop-overflow warning with loop https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95988 What|Removed

[Bug c++/96003] [11 Regression] spurious -Wnonnull calling a member on the result of static_cast

2020-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 --- Comment #12 from Martin Sebor --- Thanks for the test case. In it, the no-warning bit set on the conditional expression to avoid the warning is cleared before the expression reaches the warning code. The culprit seems to be the cp_fold_conv

[Bug middle-end/84051] [7/8/9 Regression] missing -Warray-bounds on an out-of-bounds access via an array pointer

2020-07-21 Thread msebor at gcc dot gnu.org
dot gnu.org |msebor at gcc dot gnu.org Component|tree-optimization |middle-end Status|RESOLVED|ASSIGNED --- Comment #5 from Martin Sebor --- Testing a simple enhancement teaching gimple-array-bounds.cc how to detect this case.

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

2020-07-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 84051, which changed state. Bug 84051 Summary: [7/8/9 Regression] missing -Warray-bounds on an out-of-bounds access via an array pointer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84051 What|Removed

[Bug c/96284] Outdated C features should be made errors with newer standards

2020-07-22 Thread msebor at gcc dot gnu.org
|1 CC||msebor at gcc dot gnu.org Status|UNCONFIRMED |NEW Last reconfirmed||2020-07-22 --- Comment #3 from Martin Sebor --- I support including more diagnostics in -Wall and -Werror

[Bug c/61579] -Wwrite-strings does not behave as a warning option

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

[Bug c/96284] Outdated C features should be made errors with newer standards

2020-07-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96284 --- Comment #4 from Martin Sebor --- (In reply to Martin Sebor from comment #3) > I support including more diagnostics in -Wall and -Werror I meant "-Wall and -Wextra."

[Bug c/96290] New: nonsensical bounds in VLA types in -Warray-bounds

2020-07-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: --- VLA type mentioned in diagnostics involve nonsensical bounds. The type should instead be 'char[m][n]' $ cat z.c && gcc -O2 -S -Wall z.c #if 1 void f (voi

[Bug tree-optimization/84079] missing -Warray-bounds taking the address of a multidimensional array element

2020-07-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84079 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #4 from Martin Sebor -

[Bug tree-optimization/96295] [11 Regression] -Wmaybe-uninitialized warning for range operator with reference to an empty struct

2020-07-23 Thread msebor at gcc dot gnu.org
||struct Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Last reconfirmed||2020-07-23 CC

[Bug c++/96278] three-way comparison operator comparison to 0: spurious nullptr warning

2020-07-23 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Known to fail||10.2.0, 11.0 Ever confirmed|0 |1 Last reconfirmed||2020-07-23 --- Comment #3 from Martin Sebor --- Confirmed with today's top of trunk and GCC 10.2.

[Bug middle-end/96300] New: missing -Wuninitialized reading a struct member by a conditionally assigned pointer

2020-07-23 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: --- Of the two functions below with uninitialized reads only the first bug is detected. The second one is not

[Bug middle-end/96300] missing -Wuninitialized reading a struct member by a conditionally assigned pointer

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

[Bug c++/96310] Ignoring Wnonnull via pragma gcc diagnostics still produces a unwanted note

2020-07-25 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org Last reconfirmed||2020-07-25 Ever confirmed|0 |1 Target Milestone|--- |11.0 Keywords||diagnostic CC

[Bug c++/96310] Ignoring Wnonnull via pragma gcc diagnostics still produces a unwanted note

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

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

2020-07-25 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95507 Bug 95507 depends on bug 96310, which changed state. Bug 96310 Summary: Ignoring Wnonnull via pragma gcc diagnostics still produces a unwanted note https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96310 What|Removed

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

2020-07-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 84079, which changed state. Bug 84079 Summary: missing -Warray-bounds taking the address of a multidimensional array element https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84079 What|Removed

[Bug tree-optimization/84079] missing -Warray-bounds taking the address of a multidimensional array element

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

[Bug middle-end/96346] New: missing warning accessing an element of a non-trailing zero length array

2020-07-27 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: --- GCC treats trailing arrays of zero length as flexible array members provided they are a) single-dimensional and b) not

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

2020-07-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #16 from Martin Sebor

[Bug tree-optimization/96367] bogus -Wformat-truncation in ILP32

2020-07-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96367 Martin Sebor changed: What|Removed |Added Component|c |tree-optimization Ever confirmed|0

[Bug c++/96310] Ignoring Wnonnull via pragma gcc diagnostics still produces a unwanted note

2020-07-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96310 --- Comment #4 from Martin Sebor --- I've been thinking about that too but not really coming up with anything given the current design. One idea is to change warning() to return a unique "token" and have inform() take it as an argument and do it

[Bug tree-optimization/89772] memchr for a character not in constant nul-padded string not folded

2020-07-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89772 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/96384] New: [11 Regression] bogus -Wstringop-overflow= storing into multidimensional array with index in range

2020-07-29 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 following test case triggers a false positive -Wstringop-overflow: $ cat z.c && gc

[Bug middle-end/96384] [11 Regression] bogus -Wstringop-overflow= storing into multidimensional array with index in range

2020-07-29 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Blocks||88443 Keywords||diagnostic Referenced Bugs

[Bug middle-end/96384] [11 Regression] bogus -Wstringop-overflow= storing into multidimensional array with index in range

2020-07-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96384 --- Comment #1 from Martin Sebor --- It looks like a false positive caused by the weirdo signed vs unsigned conversions between wide_int and offset_int. It happens in this piece of code in compute_objsize: offset_int orng[2]; tree o

[Bug c++/96003] [11 Regression] spurious -Wnonnull calling a member on the result of static_cast

2020-07-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 --- Comment #15 from Martin Sebor --- The patch I posted two weeks ago is only now being reviewed.

[Bug c++/96003] [11 Regression] spurious -Wnonnull calling a member on the result of static_cast

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

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

2020-07-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95507 Bug 95507 depends on bug 96003, which changed state. Bug 96003 Summary: [11 Regression] spurious -Wnonnull calling a member on the result of static_cast https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 What|Removed

[Bug c++/96003] [11 Regression] spurious -Wnonnull calling a member on the result of static_cast

2020-07-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 --- Comment #18 from Martin Sebor --- (In reply to Sergei Trofimovich from comment #8) > Also, the "'this' pointer null" error wording is not very clear. Should it > be "'this' pointer is null"? Or "'this' pointer may be null"? I agree that the

[Bug middle-end/96406] erroneous -Wstringop-overflow storing into a multidimensional char array

2020-07-31 Thread msebor at gcc dot gnu.org
|middle-end Keywords||diagnostic CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 Summary|erroneous stringop-overflow |erroneous

[Bug middle-end/96406] erroneous -Wstringop-overflow storing into a multidimensional char array

2020-07-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96406 --- Comment #5 from Martin Sebor --- 10.2 is the latest released version. GCC 11 is the development version. If you normally don't build it from source they I suspect you won't have convenient access to it. Introducing a local variable and usi

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

2020-08-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95353 Martin Sebor changed: What|Removed |Added CC||bruce.fleming at gmail dot com --- Commen

[Bug middle-end/96406] erroneous -Wstringop-overflow storing into a multidimensional char array

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

[Bug tree-optimization/96447] False positive -Wstringop-overflow with -O3 due to loop unrolling

2020-08-03 Thread msebor at gcc dot gnu.org
||diagnostic, ||missed-optimization Component|other |tree-optimization CC||msebor at gcc dot gnu.org Summary|False positive |False positive

[Bug c/96468] Warn when an empty while loop could have been a do-while

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

[Bug tree-optimization/96468] Warn when an empty while loop could have been a do-while

2020-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96468 Martin Sebor changed: What|Removed |Added Component|c |tree-optimization --- Comment #4 from Mar

[Bug c/96468] Warn when an empty while loop could have been a do-while

2020-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96468 Martin Sebor changed: What|Removed |Added Component|tree-optimization |c --- Comment #6 from Martin Sebor --- O

[Bug ipa/96502] New: attribute malloc effect lost after inlining

2020-08-06 Thread msebor at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- The test case below demonstrates that the effect of the malloc function attribute (as well as others) on subsequent optimizations is

[Bug ipa/96503] New: attribute alloc_size effect lost after inlining

2020-08-06 Thread msebor at gcc dot gnu.org
: ipa Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Similar to pr96502, the test case below shows that the effect of attribute alloc_size on warnings is also lost after inlining. I

[Bug ipa/96505] New: attribute access effect lost after inlining

2020-08-06 Thread msebor at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Prompted by the discussion at https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551526.html, the following test case shows that

[Bug middle-end/96508] New: missing warning for invalid calls to builtins from inline functions defined in system headers

2020-08-06 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: --- Prompted by the discussion at https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551526.html, the

[Bug tree-optimization/96509] New: out of bounds access makes a bounded loop infinite with inlining

2020-08-06 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: --- The one-byte buffer overflow turns the bounded loop in the test case below into an infinite one. GCC does issue a warning

[Bug tree-optimization/96509] out of bounds access silently makes a bounded loop infinite with inlining

2020-08-06 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96509 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Summary|out of boun

[Bug c++/96516] template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96516 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Last

[Bug c++/96516] template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96516 --- Comment #2 from Martin Sebor --- Thank you for taking the time to put together all the test cases and reporting the problem, by the way!

[Bug c++/96511] Incorrect placement-new warning

2020-08-07 Thread msebor at gcc dot gnu.org
||10.2.0, 11.0, 8.4.0, 9.3.0 Status|UNCONFIRMED |NEW Last reconfirmed||2020-08-07 CC||msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- Confirmed. To determine the final

[Bug c++/96524] New: missing warning constructing a larger object in a smaller multidimensional array

2020-08-07 Thread msebor at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Only the first of the two functions is diagnosed for attempting to construct an int object in an array of size 1. The

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

2020-08-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94195 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 Known to fail|

[Bug c++/96524] missing warning constructing a larger object in a smaller multidimensional array

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

[Bug tree-optimization/96554] -Wall does not include -Wnull-dereference

2020-08-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96554 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Last

[Bug middle-end/96561] New: missing warning for buffer overflow with negative offset

2020-08-10 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: --- Only two of the four equivalent instances of buffer overflow in the test program below are detected. All four should be. Even the member

[Bug target/96566] [nvptx] Timeout in gcc.dg/builtin-object-size-21.c

2020-08-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96566 --- Comment #10 from Martin Sebor --- The issue described in bug 92815 comment 9 sounds like a similar problem. Does sending the output to /dev/null instead of a .s file help? If it does, adding a dg directive to do that might be a solution. S

[Bug c++/96511] Incorrect placement-new warning

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

[Bug middle-end/96384] [11 Regression] bogus -Wstringop-overflow= storing into multidimensional array with index in range

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

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

2020-08-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 87209, which changed state. Bug 87209 Summary: Wuninitialized or Wmaybe-uninitialized doesn't warn when malloc's return value is used without being initialized https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87209

[Bug middle-end/87209] Wuninitialized or Wmaybe-uninitialized doesn't warn when malloc's return value is used without being initialized

2020-08-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87209 Martin Sebor changed: What|Removed |Added Known to fail||10.2.0, 9.2.0 Target Milestone|---

[Bug middle-end/96564] [11 Regression] New maybe use of uninitialized variable warning since r11-959

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

[Bug middle-end/96564] [11 Regression] New maybe use of uninitialized variable warning since r11-959

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

[Bug tree-optimization/96599] Failure to optimize self-stpcpy to strlen

2020-08-13 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Keywords||missed-optimization Severity|normal |enhancement Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Blocks

[Bug tree-optimization/96601] Failure to optimize equality comparison involving strstr to strlen+strncmp

2020-08-13 Thread msebor at gcc dot gnu.org
|1 Last reconfirmed||2020-08-13 Severity|normal |enhancement CC||msebor at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #1 from Martin Sebor

[Bug tree-optimization/96603] Failure to optimize memcmp out for more than one byte

2020-08-13 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Keywords||missed-optimization Status|UNCONFIRMED |NEW Severity|normal |enhancement Ever confirmed|0 |1 --- Comment #1 from

[Bug c/96619] New: attribute deprecated immediately before a parameter has no effect

2020-08-14 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: --- The following test case shows that while attribute unused suppresses a warning about unused pointer parameter regardless of its placement

[Bug c++/96620] New: bogus -Wdeprecated-declarations on attribute deprecated immediately preceding parameter name

2020-08-14 Thread msebor at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The C++ front end (but not the C front end) issues a warning for the declaration of the function argument in f1

[Bug tree-optimization/78257] missing memcmp optimization with constant arrays

2020-08-14 Thread msebor at gcc dot gnu.org
|--- |11.0 Resolution|--- |FIXED Keywords||patch Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Status|NEW |RESOLVED Known to fail

[Bug tree-optimization/96621] fold strlen relational expressions after nul stores

2020-08-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96621 Martin Sebor changed: What|Removed |Added Severity|normal |enhancement Blocks|

[Bug tree-optimization/96621] New: fold strlen relational expressions after nul stores

2020-08-14 Thread msebor at gcc dot gnu.org
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- strlen(s) <= N can be folded to true after nul has been stored into s[N]. $ cat t.c && gcc -O2 -S -Wall -fdump-tree-optimized=/dev/stdout t.c vo

[Bug c++/96634] missing documentation for __builtin_addressof()

2020-08-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96634 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Last

[Bug tree-optimization/96665] [11 regression] new FAILs for gcc.dg/strlenopt-55.c after r11-2709

2020-08-18 Thread msebor at gcc dot gnu.org
Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor --- Patch I plan to commit: https://gcc.gnu.org/pipermail/gcc-patches/2020-August/552161.html

[Bug middle-end/88780] [8/9/10/11 Regression] bogus -Wstringop-truncation for copying as many bytes from a string as its length

2020-08-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88780 --- Comment #7 from Martin Sebor --- (In reply to Marietto from comment #6) ... > In function ‘strncpy’, > inlined from ‘xc_set_cpufreq_gov’ at xc_pm.c:308:5: > /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: > ‘__builtin_str

[Bug tree-optimization/96670] [11 Regression] ICE in tree_to_uhwi, at tree.c:7361 since r11-2709-g866626efd749ed3e

2020-08-18 Thread msebor at gcc dot gnu.org
dot gnu.org |msebor at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2020-08-18 --- Comment #2 from Martin Sebor --- Confirmed. Reproducible with just -O alone.

[Bug tree-optimization/96670] [11 Regression] ICE in tree_to_uhwi, at tree.c:7361 since r11-2709-g866626efd749ed3e

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

[Bug tree-optimization/96665] [11 regression] memcmp of a constant string not folded

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

[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]

2020-08-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #27 from Martin Sebor --- The fix was applied to GCC 10 but not to GCC 9 or 8. It will not be backported there. It can be suppressed by introducing a named temporary copy of the pointer and using it as one other other argument to th

[Bug middle-end/95667] [11 Regression] unintended warning for memset writing across multiple members

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

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

2020-08-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 95667, which changed state. Bug 95667 Summary: [11 Regression] unintended warning for memset writing across multiple members https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95667 What|Removed

[Bug middle-end/93665] missing warning on strncmp reading past unterminated array

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

[Bug middle-end/96725] New: warn for uses of global nonconstant unterminated char arrays where strings are required

2020-08-20 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: --- Although using a non-constant array initialized to all non-nul characters where a nul-terminated string is

[Bug middle-end/96725] warn for uses of global nonconstant unterminated char arrays where strings are required

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

[Bug bootstrap/92828] array out of bounds access in libcpp/mkdeps.c

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

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

2020-08-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 92828, which changed state. Bug 92828 Summary: array out of bounds access in libcpp/mkdeps.c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92828 What|Removed |Added --

[Bug tree-optimization/92539] [8/9/10/11 Regression] -Warray-bounds false positive with -O3 (loop unroll?)

2020-08-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92539 Martin Sebor changed: What|Removed |Added Summary|[8/9/10/11 Regression] |[8/9/10/11 Regression]

[Bug middle-end/90367] Spurious warning array subscript is above array bounds

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

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

2020-08-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 90367, which changed state. Bug 90367 Summary: Spurious warning array subscript is above array bounds https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367 What|Removed |Added -

[Bug c/84919] [8/9 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]

2020-08-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #30 from Martin Sebor --- (In reply to Marietto from comment #28) > I'm not a coder. can u explain to me carefully what should I do ? thanks. Usually packages provide a mechanism to prevent compiler warnings from causing errors (by a

[Bug c/96739] attribute(constructor) vs format NULL check

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

[Bug c/96740] New: frexp, modf, and remquo missing attribute nonnull

2020-08-21 Thread msebor at gcc dot gnu.org
: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The math built-in functions frexp, modf, and remquo take pointers to objects that they are specified to unconditionally store a component of the result in. Their internal

[Bug c/96740] frexp, modf, and remquo missing attribute nonnull

2020-08-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96740 Martin Sebor changed: What|Removed |Added Keywords||diagnostic, |

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