[Bug tree-optimization/117601] Another missing optimization after rewrite of SCCP for overflow

2024-11-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117601 --- Comment #3 from Richard Biener --- (In reply to Andrew Pinski from comment #2) > looking into this slightly more, there needs to have a check on > INTEGER_CST@1 if less than the size of the array if o is an array. > (otherwise only allow 1).

[Bug libgcc/117600] [15 regression] libgcc arm build doesn't respect --disable-werror

2024-11-15 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117600 --- Comment #1 from Christophe Lyon --- Forcing -Werror was a request/decision: https://gcc.gnu.org/pipermail/gcc-patches/2024-October/664797.html

[Bug tree-optimization/90594] [12/13/14/15 regression] Spurious popcount emitted

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90594 Andrew Pinski changed: What|Removed |Added CC||fxue at os dot amperecomputing.com ---

[Bug tree-optimization/117607] unnecessary scev optimization for popcnt

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117607 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug analyzer/117609] New: [14/15 Regression] ICE: SIGSEGV in fold_convert_const (fold-const.cc:2486) with -fanalyzer -frounding-math and __builtin_memmove()

2024-11-15 Thread zsojka at seznam dot cz via Gcc-bugs
-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241115 (experimental) (GCC)

[Bug tree-optimization/117574] [12/13/14/15 Regression] Miscompile with -O2/3 and -O0/1 since r6-4133-ga8fc25795155d4

2024-11-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117574 Richard Biener changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/117608] [15 Regression] ICE: in extract_insn, at recog.cc:2882 (unrecognizable insn) with __builtin_ia32_prefetch(0, 2, 0, 0)

2024-11-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117608 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.0

[Bug target/117608] New: [15 Regression] ICE: in extract_insn, at recog.cc:2882 (unrecognizable insn) with __builtin_ia32_prefetch(0, 2, 0, 0)

2024-11-15 Thread zsojka at seznam dot cz via Gcc-bugs
0241115090525-ge5050819808-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241115 (experimental) (GCC)

[Bug c/117610] New: -Wzero-as-null-pointer-constant false positive with {0}

2024-11-15 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117610 Bug ID: 117610 Summary: -Wzero-as-null-pointer-constant false positive with {0} Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Prior

[Bug c/117164] ICE building gcc.dg/nested-func-12.c with -std=gnu23

2024-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117164 --- Comment #6 from GCC Commits --- The master branch has been updated by Joseph Myers : https://gcc.gnu.org/g:3320319ede5ce1cb34ba016f4a0d1e6588059980 commit r15-5321-g3320319ede5ce1cb34ba016f4a0d1e6588059980 Author: Joseph Myers Date: Fri

[Bug c/117164] ICE building gcc.dg/nested-func-12.c with -std=gnu23

2024-11-15 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117164 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Target Milestone|---

[Bug tree-optimization/117142] [13/14/15 Regression] ICE: verify_flow_info failed: error: returns_twice call is not first in basic block 2 at -O1 and above since r13-1754-g7a158a5776f5ca

2024-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117142 --- Comment #5 from GCC Commits --- The releases/gcc-13 branch has been updated by Martin Jambor : https://gcc.gnu.org/g:6244de432a5ba9807c6f0065e70a8025af7b1bd6 commit r13-9193-g6244de432a5ba9807c6f0065e70a8025af7b1bd6 Author: Martin Jambor

[Bug c/117610] -Wzero-as-null-pointer-constant false positive with {0}

2024-11-15 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117610 Xi Ruoyao changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/110137] implement clang -fassume-sane-operator-new

2024-11-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110137 --- Comment #31 from Jakub Jelinek --- I believe to match clang++ behavior the needed change would be: --- gcc/gimple.cc.jj2024-11-14 18:26:16.877459015 +0100 +++ gcc/gimple.cc 2024-11-15 13:40:43.484711373 +0100 @@ -1605,7 +1605,7 @@

[Bug rtl-optimization/112398] Suboptimal code generation for xor pattern on subreg

2024-11-15 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112398 Rainer Orth changed: What|Removed |Added CC||ro at gcc dot gnu.org --- Comment #9 from

[Bug libstdc++/98723] On Windows with CP936 encoding, regex compiles very slow.

2024-11-15 Thread luca.bacci at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98723 --- Comment #11 from Luca Bacci --- The problem happens in https://github.com/gcc-mirror/gcc/blob/releases/gcc-14.2.0/libstdc%2B%2B-v3/include/bits/regex_compiler.tcc#L612. _M_translator takes __collate (the std::regex::collate flag) in account,

[Bug target/117594] [15] RISC-V: Miscompile at -O3

2024-11-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117594 Richard Biener changed: What|Removed |Added Last reconfirmed||2024-11-15 Ever confirmed|0

[Bug libgcc/117600] [15 regression] libgcc arm build doesn't respect --disable-werror

2024-11-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117600 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.0 Keywords|

[Bug c++/110137] implement clang -fassume-sane-operator-new

2024-11-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110137 --- Comment #30 from Jakub Jelinek --- I had further look and I must say I really don't know what if anything is clang++'s -fassume-sane-operator-new vs. -fno-assume-sane-operator-new option doing. Initially when that option has been added the

[Bug libstdc++/110952] Allocator::pointer is required to be implicitly convertible from and into a native pointer

2024-11-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110952 --- Comment #3 from Jonathan Wakely --- (In reply to Kamil Kaznowski from comment #0) > This proper way of handling allocator pointer is already implemented in > std::forward_list. This is not true: _Fwd_list_node_base* _M_node; The pro

[Bug libstdc++/109442] Dead local copy of std::vector not removed from function

2024-11-15 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109442 --- Comment #28 from Jan Hubicka --- > vector::size() is called **very often** so needs to be as fast as possible. > Does this still inline identically? Last year I made patch for inliner to ignore conditions guarding __builtin_unreachable. Ric

[Bug tree-optimization/116518] GCC does not optimize-out useless operations. Clang does.

2024-11-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116518 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #8

[Bug target/117564] a-comp.c:649:1: internal compiler error: in plus_constant, at explow.cc:102

2024-11-15 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117564 John David Anglin changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRME

[Bug rtl-optimization/116781] [lra][avr] internal compiler error: in cselib_invalidate_regno, at cselib.cc:2545

2024-11-15 Thread denisc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116781 --- Comment #3 from Denis Chertykov --- (In reply to Georg-Johann Lay from comment #2) > Created attachment 59602 [details] > pr116781-gjl.diff > > (In reply to Denis Chertykov from comment #1) > > Probably we have a wring definition of "*table

[Bug rtl-optimization/116781] [lra][avr] internal compiler error: in cselib_invalidate_regno, at cselib.cc:2545

2024-11-15 Thread denisc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116781 --- Comment #4 from Denis Chertykov --- (In reply to Georg-Johann Lay from comment #2) > Created attachment 59602 [details] > pr116781-gjl.diff > > (In reply to Denis Chertykov from comment #1) > > Probably we have a wring definition of "*table

[Bug tree-optimization/115016] [14/15 regression] False positive -Wfree-nonheap-object using std::vector with -O3

2024-11-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115016 Sam James changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/117613] New: [modules] using-directive not exported

2024-11-15 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117613 Bug ID: 117613 Summary: [modules] using-directive not exported Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/117613] [modules] using-directive not exported

2024-11-15 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117613 Jason Merrill changed: What|Removed |Added Last reconfirmed||2024-11-15 Ever confirmed|0

[Bug tree-optimization/117612] spaceship codegen is inferior to hand written operator when comparing doubles

2024-11-15 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117612 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug tree-optimization/117093] Missing detection of REV64 vector permute

2024-11-15 Thread jschmitz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117093 Jennifer Schmitz changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/98723] On Windows with CP936 encoding, regex compiles very slow.

2024-11-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98723 --- Comment #14 from Jonathan Wakely --- Thanks! Please CC the libstdc++ list, as per https://gcc.gnu.org/lists.html https://gcc.gnu.org/contribute.html lists the other requirements. I think this is small enough to not need a copyright assignme

[Bug target/117564] a-comp.c:649:1: internal compiler error: in plus_constant, at explow.cc:102

2024-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117564 --- Comment #2 from GCC Commits --- The master branch has been updated by John David Anglin : https://gcc.gnu.org/g:029c16c15f79dc27d44d77d82fd38aabe83bd4f7 commit r15-5323-g029c16c15f79dc27d44d77d82fd38aabe83bd4f7 Author: John David Anglin D

[Bug libstdc++/109442] Dead local copy of std::vector not removed from function

2024-11-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109442 --- Comment #27 from Jonathan Wakely --- vector::size() is called **very often** so needs to be as fast as possible. Does this still inline identically? I tried something like that in r14-1452-gfb409a15d9babc and reverted it in r14-1470-gb7b255

[Bug tree-optimization/115016] False positive -Wfree-nonheap-object using std::vector with -O3

2024-11-15 Thread mstarovo at pm dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115016 --- Comment #2 from Mark Starovoytov --- This issue is still reproducible with 14.2 and trunk. Another godbolt example (very similar): https://godbolt.org/z/3xrMGMYx7

[Bug c++/117613] [modules] using-directive not exported

2024-11-15 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117613 --- Comment #1 from Jason Merrill --- This interferes with the using-directive used to bring the chrono literal operators from ...::chrono_literals into std::chrono, breaking libstdc++-prettyprinters/chrono.cc.

[Bug modula2/117371] [14/15 Regression] type incompatibility between ‘INTEGER’ and ‘CARDINAL’

2024-11-15 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371 Gaius Mulley changed: What|Removed |Added Last reconfirmed||2024-11-15 Status|UNCONFIRME

[Bug modula2/117371] [14/15 Regression] type incompatibility between ‘INTEGER’ and ‘CARDINAL’

2024-11-15 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371 --- Comment #3 from Gaius Mulley --- Created attachment 59604 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59604&action=edit Proposed fix Thanks for the bug report. The error location was missing and here is a proposed fix. All langua

[Bug c++/39437] Support for automatic linking via pragma

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39437 --- Comment #9 from Andrew Pinski --- https://hachyderm.io/@whitequark@mastodon.social/113488978156293353 So it looks like clang puts it in the .deplibs SHT_LLVM_DEPENDENT_LIBRARIES section. I don't know if lld or mold reads that section thoug

[Bug c++/39437] Support for automatic linking via pragma

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39437 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #9) > https://hachyderm.io/@whitequark@mastodon.social/113488978156293353 > > So it looks like clang puts it in the .deplibs SHT_LLVM_DEPENDENT_LIBRARIES > section.

[Bug c++/117615] constexpr failure static_cast of Derived virtual Pointer to Member

2024-11-15 Thread acox at reliablecontrols dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117615 --- Comment #1 from Alec --- It is worth noting that the same code compiles under clang-18 (haven't tested other versions), although that doesn't mean they're doing the right thing.

[Bug tree-optimization/109410] [13/14/15 Regression] ICE: verify_flow_info failed

2024-11-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109410 Sam James changed: What|Removed |Added Last reconfirmed|2024-08-24 00:00:00 |2024-11-16 --- Comment #21 from Sam James

[Bug c/117622] [14/15 regression] builtin-sprintf-warn-1.c test fails with -std=gnu23 -g (error: ‘TYPE_CANONICAL’ is not compatible)

2024-11-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117622 Sam James changed: What|Removed |Added Target Milestone|--- |14.3 Keywords|

[Bug c/114014] [14/15 Regression] ICE: 'verify_type' failed: 'TYPE_CANONICAL' is not compatible with -g on gcc.dg/gnu23-tag-1.c

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114014 Andrew Pinski changed: What|Removed |Added Summary|ICE: 'verify_type' failed: |[14/15 Regression] ICE:

[Bug d/117621] New: [13/14/15 regression] runnable/mangle.d test fails with -g (d21: error: type variant differs by TYPE_PACKED)

2024-11-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117621 Bug ID: 117621 Summary: [13/14/15 regression] runnable/mangle.d test fails with -g (d21: error: type variant differs by TYPE_PACKED) Product: gcc Version: 15.0

[Bug d/117621] [13/14/15 regression] runnable/mangle.d test fails with -g (d21: error: type variant differs by TYPE_PACKED)

2024-11-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117621 Sam James changed: What|Removed |Added Target Milestone|--- |13.4

[Bug tree-optimization/117623] abs(a) == INT_MIN -> A == INT_MIN

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117623 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug c/114014] [14/15 Regression] ICE: 'verify_type' failed: 'TYPE_CANONICAL' is not compatible with -g on gcc.dg/gnu23-tag-1.c and builtin-sprintf-warn-1.c

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114014 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c/113688] verify_type fails for compatible structs with FAM in C23

2024-11-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113688 Sam James changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug tree-optimization/117093] Missing detection of REV64 vector permute

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117093 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 --- Comment #8 from Andrew Pinski

[Bug tree-optimization/117623] New: abs(a) == INT_MIN -> A == INT_MIN

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117623 Bug ID: 117623 Summary: abs(a) == INT_MIN -> A == INT_MIN Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priorit

[Bug c/114014] ICE: 'verify_type' failed: 'TYPE_CANONICAL' is not compatible with -g on gcc.dg/gnu23-tag-1.c

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114014 --- Comment #3 from Andrew Pinski --- *** Bug 117622 has been marked as a duplicate of this bug. ***

[Bug c/117622] [14/15 regression] builtin-sprintf-warn-1.c test fails with -std=gnu23 -g (error: ‘TYPE_CANONICAL’ is not compatible)

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117622 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c/114723] ICE when checking for type compatibility with structure that contains flexible array member (C23)

2024-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114723 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/117622] New: [14/15 regression] builtin-sprintf-warn-1.c test fails with -std=gnu23 -g (error: ‘TYPE_CANONICAL’ is not compatible)

2024-11-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117622 Bug ID: 117622 Summary: [14/15 regression] builtin-sprintf-warn-1.c test fails with -std=gnu23 -g (error: ‘TYPE_CANONICAL’ is not compatible) Product: gcc Versio

<    1   2