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

2021-11-12 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 work||12.0 Resolution|---

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

2021-11-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 98871, which changed state. Bug 98871 Summary: Cannot silence -Wmaybe-uninitialized at declaration site https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98871 What|Removed |Added

[Bug middle-end/98871] Cannot silence -Wmaybe-uninitialized at declaration site

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

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

2021-11-11 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 102969, which changed state. Bug 102969 Summary: [12 regression] g++.dg/warn/Wstringop-overflow-4.C fails after r12-4726 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102969 What|Removed

[Bug tree-optimization/102969] [12 regression] g++.dg/warn/Wstringop-overflow-4.C fails after r12-4726

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

[Bug target/103200] New: FAIL: gcc.target/i386/pr91333.c scan-assembler-times vmovapd|vmovsd 3

2021-11-11 Thread msebor at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- I see the following failure in an x86_64-linux build with today's top of trunk: Executing on host: /build/gcc-master/gcc/xgcc -B

[Bug testsuite/100655] 'g++.dg/tsan/pthread_cond_clockwait.C' FAILs due to 'pthread_cond_clockwait' missing

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

[Bug jit/103199] New: FAIL: ../jit/docs/examples/tut04-toyvm/toyvm.c, initial compilation

2021-11-11 Thread msebor at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- A recent regression test run shows FAILs in a couple of JIT example programs, both due to -Wformat-overflow errors: /build/gcc-master

[Bug tree-optimization/92879] [10/11 Regression] incorrect warning of __builtin_memset offset is out of the bounds on zero-size allocation and initialization

2021-11-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92879 --- Comment #12 from Martin Sebor --- The test fails everywhere. It regressed with r12-5107 (see pr102690). The solution was to xfail it (to your point in pr101674).

[Bug tree-optimization/103173] strncpy output may be truncated copying 32 bytes from a string of length 1439 (bogus) [-Werror=stringop-truncation]

2021-11-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103173 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug tree-optimization/103176] -foptimize-strlen causes stringop-overflow warning

2021-11-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
||2021-11-10 Ever confirmed|0 |1 CC||msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor --- Historically, flow-dependent warnings in GCC have relied on optimization. Some work without it and just

[Bug testsuite/103161] [12 Regression] Better ranges cause builtin-sprintf-warn-16.c failure

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

[Bug testsuite/103161] [12 Regression] Better ranges cause builtin-sprintf-warn-16.c failure

2021-11-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103161 --- Comment #9 from Martin Sebor --- Aaah, never mind. The test depends on the unspecified order of argument evaluation. Doh!

[Bug testsuite/103161] [12 Regression] Better ranges cause builtin-sprintf-warn-16.c failure

2021-11-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103161 --- Comment #7 from Martin Sebor --- I bet you can't see the failures because they depend on fixes in a patch that hasn't been committed yet: https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583735.html But I wonder if there actually

[Bug testsuite/103161] [12 Regression] Better ranges cause builtin-sprintf-warn-16.c failure

2021-11-10 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103161 Martin Sebor changed: What|Removed |Added Component|tree-optimization |testsuite --- Comment #5 from Martin

[Bug middle-end/101917] [11 Regression] Spurious -Wstringop-overread with -flto when passing zero sized arrays

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101917 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Component|fortran

[Bug tree-optimization/103161] [12 Regression] Better ranges cause builtin-sprintf-warn-16.c failure

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
||a/show_bug.cgi?id=102831 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- Confirmed. It's a failure in what looks like a paranoia

[Bug middle-end/88232] Please implement -Winfinite-recursion

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
||patch CC||msebor at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #4 from Martin Sebor --- Patch: https

[Bug c++/56189] Infinite recursion with noexcept when instantiating function template

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
||msebor at gcc dot gnu.org Target Milestone|--- |11.4 Resolution|--- |FIXED --- Comment #3 from Martin Sebor --- This is accepted by GCC 12 in the default C++ mode. It looks like it's been accepted since g

[Bug c++/59702] Infinite recursion in a late-specified return type of a function template

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
|--- |12.0 Status|NEW |RESOLVED CC||msebor at gcc dot gnu.org Keywords||rejects-valid Known to fail||10.2.0, 11.2.0, 4.9.4

[Bug tree-optimization/103145] [11 Regression] bogus -Wstringop-overread with an array argument

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103145 Martin Sebor changed: What|Removed |Added Summary|False positive of |[11 Regression] bogus

[Bug tree-optimization/103145] False positive of -Wstringop-overread on gcc-11

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103145 Martin Sebor changed: What|Removed |Added Known to work||10.3.0, 12.0 Blocks|

[Bug fortran/101919] Inconsistent -Wstringop-overread warning with -flto

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
||msebor at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Known to fail||11.2.0, 12.0 Last reconfirmed||2021-11-09 --- Comment #1 from Martin Sebor

[Bug tree-optimization/102513] [10.11.12 Regression] Many false positive warnings with recursive function

2021-11-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
||2021-11-09 CC||msebor at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Summary|False positive |[10.11.12 Regression] Many

[Bug middle-end/103143] [12 Regression] ICE due to infinite recursion in pointer-query.cc

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

[Bug bootstrap/102831] [12 regression] Spurious -Wparentheses etc. warnings

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102831 --- Comment #7 from Martin Sebor --- (In reply to Peter Bergner from comment #6) If it's reliably reproducible (ideally with a cross), can you attach a translation unit and the options to use to reproduce it with?

[Bug tree-optimization/102690] [12 regression] g++.dg/warn/Warray-bounds-16.C fails

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102690 --- Comment #5 from Martin Sebor --- It was backported here: g:19dcea67ac40cfdeb396fa264ebbe04fbe61fdc0

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 --- Comment #15 from Martin Sebor --- The call is made from the strlen pass which still does apparently use EVRP. I believe Aldy's been moving it away from it (some of his changes are still pending) as have I, so things are still in flux. I

[Bug middle-end/101397] [11 Regression] spurious warning writing to the result of stpcpy minus 1

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101397 Martin Sebor changed: What|Removed |Added Depends on||103143 --- Comment #8 from Martin Sebor

[Bug middle-end/103143] [12 Regression] ICE due to infinite recursion in pointer-query.cc

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
||ice-on-valid-code Last reconfirmed||2021-11-09 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1

[Bug middle-end/103143] New: [12 Regression] ICE due to infinite recursion in pointer-query.cc

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- As mentioned in bug 101397 comment #7, the following test cases causes infinite recursion (and ultimately an ICE) in pointer

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 --- Comment #13 from Martin Sebor --- Here's a reduced test case that reproduces the problem with an x86_64-linux GCC in ILP32 mode: $ cat pr103121.C && gcc -O2 -S -Wall -m32 pr103121.C typedef typeof (sizeof 0) size_t; struct tree_node {

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 --- Comment #12 from Martin Sebor --- Okay, here's my question: when I call range_of_expr (vr, _4, stmt) with stmt being 'grp_name_37 = __builtin_alloca (_4)' in BB 4, should I not expect the result to be either VR_VARYING or [0, +INF]? What I

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 --- Comment #10 from Martin Sebor --- Sorry, I've been having trouble with GDB and so I'm running two GDB sessions and I have been mixing output from both of them. I see the warning for the store to *_23 in BB 13, not for BB 12. Here's a

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 --- Comment #8 from Martin Sebor --- The [1, 1] range comes from a call to qry->range_of_expr (vr, exp, stmt) in in get_size_range() in pointer-query.cc: (gdb) p debug(gimple_bb(stmt)) [local count: 118111600]: _4 = _1 + 1; grp_name_37 =

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 Martin Sebor changed: What|Removed |Added CC||aldyh at gcc dot gnu.org --- Comment #6

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 Martin Sebor changed: What|Removed |Added Status|WAITING |NEW --- Comment #5 from Martin Sebor

[Bug tree-optimization/103121] [12 Regression] Warnings in cp/optimize.c causing build failure

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug bootstrap/102831] [12 regression] Spurious -Wparentheses etc. warnings

2021-11-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102831 --- Comment #4 from Martin Sebor --- I have been testing the following changes to deal with other location and warning related problems. They might be worth giving a try to see if they help with this issue as well. diff --git

[Bug tree-optimization/103111] bogus stringop overflow warning

2021-11-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
|RESOLVED CC||msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor --- The warning corresponds to the call below where the RANGE shows what it's based on: ;; basic block 10, loop depth 1, count 237404316 (estimated locally

[Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression

2021-11-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102967 --- Comment #7 from Martin Sebor --- Both for the purposes of the warning (which can be more restrictive than what the language considers valid), and in the C language, the semantics of the -> expression depend on the first operand designating

[Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression

2021-11-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102967 --- Comment #4 from Martin Sebor --- The expression pa->c is only valid if pa points to a valid object.

[Bug c/103056] attribute access "none" is not ignored as it should

2021-11-03 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103056 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Bug middle-end/103036] incorrect #pragma GCC diagnostic suppression for macro expansion and -Wuninitialized

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

[Bug middle-end/103036] New: incorrect #pragma GCC diagnostic suppression for macro expansion and -Wuninitialized

2021-11-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The test case below shows that suppressing -Wuninitialized by #pragma GCC diagnostic doesn't work the same

[Bug c/63272] GCC should warn when using pointer to dead scoped variable within the same function

2021-11-01 Thread msebor at gcc dot gnu.org via Gcc-bugs
||msebor at gcc dot gnu.org Keywords||patch --- Comment #5 from Martin Sebor --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583045.html

[Bug tree-optimization/102996] No warning on dereferencing of uninitialized pointer in an array, in a loop

2021-10-29 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102996 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug tree-optimization/102960] [10/11/12 Regression] ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0

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

[Bug translation/90041] Command line option without proper quoting in translation message

2021-10-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90041 --- Comment #7 from Martin Sebor --- As Jakub says in comment #2, this problem is not in a diagnostic format string that the -Wformat checker sees.

[Bug translation/93836] teach xgettext what HOST_WIDE_INT_PRINT means

2021-10-28 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93836 Martin Sebor changed: What|Removed |Added CC||mliska at suse dot cz --- Comment #5

[Bug translation/93836] teach xgettext what HOST_WIDE_INT_PRINT means

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

[Bug tree-optimization/102969] [12 regression] g++.dg/warn/Wstringop-overflow-4.C fails after r12-4726

2021-10-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
||88443 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 [Bug 88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

[Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression

2021-10-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
dress for a |comparison will always |subexpression of a ternary |evaluate as 'true'" |expression CC| |msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- The warning is intended: it points out that the seco

[Bug c/102965] C11 atomic functions accept incompatible arguments

2021-10-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102965 Martin Sebor changed: What|Removed |Added Keywords||accepts-invalid See Also|

[Bug c/102965] New: C11 atomic functions accept incompatible arguments

2021-10-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In 7.17.1 Introduction to atomics, the C standard specifies that: -5- In the following synopses: — An A refers to an atomic type. — A C refers to its

[Bug testsuite/102964] [12 regression] libgomp.c/doacross-1.c fails after r12-4725

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

[Bug go/91992] gcc/testsuite/go/index0-out.x SEGV and spinlock during testsuite run

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

[Bug testsuite/102904] go testsuite does not always cause a timeout

2021-10-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102904 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org See

[Bug tree-optimization/102960] [10/11/12 Regression] ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0

2021-10-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102960 Martin Sebor changed: What|Removed |Added Ever confirmed|0 |1 Known to fail|

[Bug tree-optimization/84774] [meta-bug] bogus/missing -Wrestrict

2021-10-26 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84774 Bug 84774 depends on bug 102919, which changed state. Bug 102919 Summary: spurious -Wrestrict warning for sprintf into the same member array as argument plus offset https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102919 What|Removed

[Bug tree-optimization/102919] spurious -Wrestrict warning for sprintf into the same member array as argument plus offset

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

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

2021-10-26 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 102453, which changed state. Bug 102453 Summary: buffer overflow by atomic built-ins not diagnosed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102453 What|Removed |Added

[Bug middle-end/102453] buffer overflow by atomic built-ins not diagnosed

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

[Bug tree-optimization/102958] std::u8string suboptimal compared to std::string, triggers warnings

2021-10-26 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102958 --- Comment #1 from Martin Sebor --- Something similar afflicts libstdc++-v3/testsuite/21_strings/basic_string/capacity/1.cc but that test is too contrived to matter in practice.

[Bug tree-optimization/102958] New: std::u8string suboptimal compared to std::string, triggers warnings

2021-10-26 Thread msebor at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The two functions below are equivalent and would ideally both result in optimally efficient code, but as the dump shows

[Bug bootstrap/102955] New: assembler errors when bootstrapping with #pragma optimize "0"

2021-10-26 Thread msebor at gcc dot gnu.org via Gcc-bugs
ty: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- This is to make a record of a problem I recently ran into with GCC 12 and that apparently others have as well. As disc

[Bug tree-optimization/102951] New: failure to optimize MIN_EXPR of subobject addresses of the same object

2021-10-26 Thread msebor at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC fails to fold the MIN_EXPR below to the lower address. The test case affects C because the C front end emits

[Bug middle-end/102934] missing warning passing address of first member to free()

2021-10-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
|1 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Keywords||diagnostic Last reconfirmed||2021-10-25

[Bug middle-end/102934] New: missing warning passing address of first member to free()

2021-10-25 Thread msebor at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC diagnoses the first invalid call to free() below but fails to diagnose the second. The problem is due to the warning using Object

[Bug tree-optimization/102238] missing -Wrestrict for sprintf into the same member array as argument plus offset

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

[Bug tree-optimization/102919] spurious -Wrestrict warning for sprintf into the same member array as argument plus offset

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

[Bug tree-optimization/102919] spurious -Wrestrict warning for sprintf into the same member array as argument plus offset

2021-10-24 Thread msebor at gcc dot gnu.org via Gcc-bugs
|1 Blocks||84774 Last reconfirmed||2021-10-24 Keywords||diagnostic Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Referenced Bugs

[Bug tree-optimization/102919] New: spurious -Wrestrict warning for sprintf into the same member array as argument plus offset

2021-10-24 Thread msebor at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The write below by sprintf into p->a cannot overlap with the read from p->a + 2 b

[Bug c/102867] [12 Regression] -Waddress from macro expansion in readelf.c

2021-10-23 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102867 Martin Sebor changed: What|Removed |Added Summary|[12 Regression] Waddress|[12 Regression] -Waddress

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

2021-10-22 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 81981, which changed state. Bug 81981 Summary: [8 Regression] -fsanitize=undefined makes a -Wmaybe-uninitialized warning disappear https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81981 What|Removed

[Bug sanitizer/81981] [8 Regression] -fsanitize=undefined makes a -Wmaybe-uninitialized warning disappear

2021-10-22 Thread msebor at gcc dot gnu.org via Gcc-bugs
||10.3.0, 11.2.0, 8.5.0, ||9.4.0 Keywords||xfail Last reconfirmed|2017-08-25 00:00:00 |2021-10-22 CC||msebor at gcc dot gnu.org Status

[Bug middle-end/102887] wrong warning location with macro expansion

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

[Bug middle-end/102887] New: wrong warning location with macro expansion

2021-10-21 Thread msebor at gcc dot gnu.org via Gcc-bugs
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- As noted here: https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582316.html in a -Wuninitialized warning for the use of a variable in the expansion of a macro

[Bug c/102867] [12 Regression] Waddress complaint in readelf.c

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

[Bug c/102849] New: missing warning for unsigned bitfield tests for negativity

2021-10-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC warns for less than comparisons of unsigned integers to zero but it fails to do the same for unsigned bit-fields (likely because they promote

[Bug c/102848] New: missing warning for bitfield overflow in C

2021-10-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- G++ warns when assigning to a bit-field a value that cannot be represented in the object but GCC does not. $ cat x.c && /build/gcc-master/gcc/xgcc -B /build/gcc-master

[Bug bootstrap/102828] [12 Regression] ODR violation in gimple-predicate-analysis.h since g:94c12ffac234

2021-10-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102828 Martin Sebor changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment

[Bug middle-end/102810] [11/12 Regression] Bogus Wstringop-overread passing a smaller array to an array parameter without a bound

2021-10-18 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102810 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Ever

[Bug tree-optimization/102759] [12 Regression] ICE: Segmentation fault in maybe_check_access_sizes since r12-2976-gb48d4e6818674898

2021-10-15 Thread msebor at gcc dot gnu.org via Gcc-bugs
|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- The code is certainly undefined but (appallingly), it's syntactically valid C. The correspondingly hideous C++ version is also accepted

[Bug tree-optimization/102744] [12 regression] -O2 vectorization causes Wzero-length-array-bounds-2.c to fail on arc-elf

2021-10-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102744 Martin Sebor changed: What|Removed |Added CC||liuhongt at gcc dot gnu.org Last

[Bug rtl-optimization/102733] missing fs:0 store when followed by one to gs:0

2021-10-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102733 --- Comment #3 from Martin Sebor --- A couple of data points: I see the same behavior for any constant address (not just null). Clang 12 behaves the same as GCC, but Clang 13 emits both stores, suggesting they fixed it as a bug:

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

2021-10-13 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 102630, which changed state. Bug 102630 Summary: [12 Regression] Spurious -Warray-bounds with named address space https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102630 What|Removed

[Bug middle-end/102630] [12 Regression] Spurious -Warray-bounds with named address space

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

[Bug target/102733] New: missing fs:0 store when followed by one to gs:0

2021-10-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
: target Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- While testing r12-4376 I noticed that when a fs:0 store is followed by one to gs:0 the former is not emitted, otherwise when each is done on its own each is also emitted

[Bug middle-end/102731] inconsistent handling of dereferncing a null pointer

2021-10-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102731 Martin Sebor changed: What|Removed |Added Blocks||56456, 88443 Keywords|

[Bug middle-end/102731] New: inconsistent handling of dereferncing a null pointer

2021-10-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The test case below shows that GCC doesn't handle null pointer dereferences consistently or as helpfully as it could or should. Of the three equivalent functions

[Bug tree-optimization/99580] False positive -Warray-bounds with nested loops

2021-10-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99580 Martin Sebor changed: What|Removed |Added Last reconfirmed|2021-03-14 00:00:00 |2021-10-13 Summary|False

[Bug c++/102726] Does not warn for enum constant in boolean context

2021-10-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |NEW Ever confirmed|0 |1 CC||msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- Confirmed with the test case below: $ cat pr102726.C && gcc -S -Wall pr102726.C void f (bool); enum

[Bug testsuite/102720] [12 regression] gcc.dg/tree-ssa/ldist-strlen-1.c and ldist-strlen-2.c fail after r12-4234

2021-10-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
|1 Status|UNCONFIRMED |NEW CC||msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor --- Confirmed, also reported on x86_64 and i686: https://gcc.gnu.org/pipermail/gcc-testresults/2021-October/727873

[Bug middle-end/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2021-10-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 Martin Sebor changed: What|Removed |Added Severity|normal |enhancement Component|c

[Bug c/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2021-10-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
|1 Status|UNCONFIRMED |NEW CC||msebor at gcc dot gnu.org, ||siddhesh at redhat dot com --- Comment #4 from Martin Sebor --- I'm not sure how feasible

[Bug other/102718] New: gtype-desc.c function redefinition error for gt_ggc_xxx (int_hash&)

2021-10-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
rmal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- This is to make a record of a bug in GCC's garbage collection machinery. With the following patch I get the errors below. g

[Bug middle-end/102700] [12 Regression] wrong location in -Wuninitialized after -O2 vectorization

2021-10-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
||msebor at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Summary|[Diagnostics] uninitialized |[12 Regression] wrong |warning missing after O2|location in -Wuninitialized

[Bug tree-optimization/102706] [12 regression] -O2 vectorization causes regression in Warray-bounds-48.c on many targets

2021-10-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102706 Martin Sebor changed: What|Removed |Added CC||crazylht at gmail dot com

[Bug middle-end/102697] [12 Regression] overflow warning missing after -O2 vectorization

2021-10-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102697 Martin Sebor changed: What|Removed |Added Summary|[Diagnostics] overflow |[12 Regression] overflow

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