[Bug tree-optimization/115426] ICE: in execute_todo, at passes.cc:2138

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115426 --- Comment #4 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:a4bbdec2be1c9f8fb49276b8a54ee86024ceac17 commit r15-1837-ga4bbdec2be1c9f8fb49276b8a54ee86024ceac17 Author: Richard Biener Date:

[Bug target/106902] [11/12/13/14/15 Regression] Program compiled with -O3 -mfma produces different result

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106902 --- Comment #29 from Richard Biener --- *** Bug 115533 has been marked as a duplicate of this bug. ***

[Bug ipa/68331] [meta-bug] fipa-pta issues

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68331 Bug 68331 depends on bug 115533, which changed state. Bug 115533 Summary: [12/13/14/15 regression] flac miscompiled with -O3 -march=znver2 -fipa-pta -fno-vect-cost-model since r12-3893-g6390c5047adb75 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=

[Bug ipa/115533] [12/13/14/15 regression] flac miscompiled with -O3 -march=znver2 -fipa-pta -fno-vect-cost-model since r12-3893-g6390c5047adb75

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115533 Richard Biener changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug ipa/115533] [12/13/14/15 regression] flac miscompiled with -O3 -march=znver2 -fipa-pta -fno-vect-cost-model since r12-3893-g6390c5047adb75

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115533 --- Comment #24 from Richard Biener --- (In reply to Alexander Monakov from comment #23) > I suggest it to close this a dup of PR 106902 if there are no better ideas. > > By the way, in both cases SLP introduces vectors in a loop where scalar >

[Bug target/115748] [15 Regression] gcc.target/i386/avx512bw-pr70509.c SIGILL with -m32

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115748 --- Comment #5 from GCC Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:699087a16591adfdf21228876b6c48dbcd353faa commit r15-1836-g699087a16591adfdf21228876b6c48dbcd353faa Author: liuhongt Date: Thu Jul

[Bug middle-end/115767] [11/12/13/14/15 regression] GCC loses track of value on aarch64 with -O2

2024-07-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115767 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #4 fr

[Bug middle-end/115767] [11/12/13/14/15 regression] GCC loses track of value on aarch64 with -O2

2024-07-03 Thread bugs at qult dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115767 Ignacy Gawędzki changed: What|Removed |Added Target|aarch64 |aarch64 x86_64 --- Comment #3 from Ig

[Bug c/109828] [13/14/15 Regression] static compound literal with flexible array in initializer leads to invalid size and ICE

2024-07-03 Thread rlcamp.pdx at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109828 Campbell changed: What|Removed |Added CC||rlcamp.pdx at gmail dot com --- Comment #13

[Bug middle-end/115767] [11/12/13/14/15 regression] GCC loses track of value on aarch64 with -O2

2024-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115767 Sam James changed: What|Removed |Added Summary|GCC loses track of value on |[11/12/13/14/15 regression]

[Bug target/115750] [14/15 regression] Emacs fails to build on HPPA since r14-4426-g0ee3266b3dec4d

2024-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115750 --- Comment #9 from Sam James --- Many thanks Dave!

[Bug target/112980] 64-bit powerpc ELFv2 does not allow nops to be generated before function global entry point

2024-07-03 Thread giuliano.belinassi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112980 --- Comment #19 from Giuliano Belinassi --- > A formal patch had been sent out as URL field shows, still waiting for review. I am using this patch on libpulp (userspace livepatching) and I found no issues so far. I think this is safe to be com

[Bug target/113116] [14/15 Regression] ~11-17% exec time regression of 436.cactusADM on aarch64

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113116 --- Comment #5 from Andrew Pinski --- This looks fixed since https://lnt.opensuse.org/db_default/v4/SPEC/49489 .

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

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 114481, which changed state. Bug 114481 Summary: 14% exec time slowdown of 433.milc on aarch64 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114481 What|Removed |Added ---

[Bug target/114481] 14% exec time slowdown of 433.milc on aarch64

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

[Bug target/114656] [15 Regression] ~5% slowdown of 538.imagick_r on aarch64 since r14-9692

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

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

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 114656, which changed state. Bug 114656 Summary: [15 Regression] ~5% slowdown of 538.imagick_r on aarch64 since r14-9692 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114656 What|Removed

[Bug target/115463] [15 regression] 526.blender_r regressed 5% on Zen2 with -Ofast -flto -march=native since r15-1058-gc989e59fc99d99

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

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

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 115463, which changed state. Bug 115463 Summary: [15 regression] 526.blender_r regressed 5% on Zen2 with -Ofast -flto -march=native since r15-1058-gc989e59fc99d99 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115463

[Bug target/112915] [14/15 Regression] 4% exec time regression of 454.calculix on AMD Zen2

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112915 --- Comment #4 from Andrew Pinski --- This looks like it was fixed in Jan 2024 around between 02948ced062b730e and 7f7d9c525c694e36 revision (https://lnt.opensuse.org/db_default/v4/SPEC/44304).

[Bug c++/101232] Bad error message with stray semicolon in initializer

2024-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101232 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #4

[Bug c++/115775] User-defined deduction guide ignored for alias template if the alias passes on a template template parameter to the aliased class template

2024-07-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115775 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #2 fr

[Bug tree-optimization/115753] [15 Regression] ICE: tree check: expected ssa_name, have integer_cst in supportable_indirect_convert_operation, at tree-vect-stmts.cc:14680

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115753 --- Comment #8 from GCC Commits --- The master branch has been updated by Hu : https://gcc.gnu.org/g:d1eeafe40f263acdb5eb1b57f777e064a11ced2b commit r15-1830-gd1eeafe40f263acdb5eb1b57f777e064a11ced2b Author: Hu, Lin1 Date: Wed Jul 3 10:07:0

[Bug target/115749] Non optimal assembly for integer modulo by a constant on x86-64 CPUs

2024-07-03 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115749 Hongtao Liu changed: What|Removed |Added CC||haochen.jiang at intel dot com,

[Bug c++/115706] Compiling headers as header units fails depending on order.

2024-07-03 Thread devdude2 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115706 --- Comment #2 from Dev Dude --- Just to clarify the initial comment if it is unclear: It's unclear how to compile C++ standard headers. If I use the script below to try to build all the standard c++ headers, I see the "random" header errors an

[Bug middle-end/109224] Wmismatched-new-delete false positive with coroutines

2024-07-03 Thread rs2740 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224 --- Comment #2 from TC --- (In reply to Brian Bi from comment #1) > I'm also encountering this issue, and I can't find any way to write the code > that avoids triggering the warning, so I will simply have to disable the > warning until this issu

[Bug target/115777] [12/13/14/15 regression] Severe performance regression on insertion sort at -O2 or above

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115777 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-07-03 Keywords|

[Bug c++/115778] Internal compiler error: in keep_template_parm, at cp/pt.cc:10960

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115778 Andrew Pinski changed: What|Removed |Added Known to fail||11.1.0 --- Comment #2 from Andrew Pinsk

[Bug tree-optimization/115777] [12/13/14/15 regression] Severe performance regression on insertion sort at -O2 or above

2024-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115777 --- Comment #1 from Sam James --- 11 vs 12: ``` --- /dev/fd/63 2024-07-03 22:38:09.929726424 +0100 +++ /dev/fd/62 2024-07-03 22:38:09.932726456 +0100 @@ -5,24 +5,28 @@ insertion_sort.constprop.0: .LFB25: .cfi_startproc - leaq

[Bug c++/115778] Internal compiler error: in keep_template_parm, at cp/pt.cc:10960

2024-07-03 Thread s.murthy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115778 --- Comment #1 from Sean Murthy --- Created attachment 58587 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58587&action=edit Compiler output from Compiler Explorer (link in initial report) I am unable to generate pre-processed file becau

[Bug c++/115778] New: Internal compiler error: in keep_template_parm, at cp/pt.cc:10960

2024-07-03 Thread s.murthy at outlook dot com via Gcc-bugs
, but reporting it because the compiler output asks to, and I don't this issue in the bug database. --version outputs: "g++ (Compiler-Explorer-Build-gcc-751982484b50f3fcf54235683fb4c76dd6426d92-binutils-2.42) 15.0.0 20240703 (experimental)" The same code has no error in GCC 14

[Bug tree-optimization/115777] New: Severe performance regression on insertion sort at -O2 or above

2024-07-03 Thread nrk at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115777 Bug ID: 115777 Summary: Severe performance regression on insertion sort at -O2 or above Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal

[Bug analyzer/115735] Analyzer misses trivial syslog() call in signal handler for -Wanalyzer-unsafe-call-within-signal-handler

2024-07-03 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115735 --- Comment #12 from Eric Gallager --- (In reply to David Malcolm from comment #9) > Note that the POSIX list might not be redistributable, and the stuff in > glibc is probably under the GFDL rather than the GPL. Using glibc's is > probably the

[Bug fortran/108889] [12/13/14/15 Regression] (Re)Allocate in assignment shows used uninitialized memory warning with -Wall if LHS is unallocated

2024-07-03 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108889 Paul Thomas changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug libstdc++/110356] [C++26] P2637R3 Member visit

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110356 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |15.0

[Bug libstdc++/115776] [C++26] Implement P2757R3 Type checking format args

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115776 Jonathan Wakely changed: What|Removed |Added Version|13.3.1 |15.0 Assignee|unassigned at

[Bug libstdc++/115776] New: [C++26] Implement P2757R3 Type checking format args

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115776 Bug ID: 115776 Summary: [C++26] Implement P2757R3 Type checking format args Product: gcc Version: 13.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug libstdc++/110356] [C++26] P2637R3 Member visit

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110356 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/115775] User-defined deduction guide ignored for alias template if the alias passes on a template template parameter to the aliased class template

2024-07-03 Thread s.murthy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115775 --- Comment #1 from Sean Murthy --- Created attachment 58585 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58585&action=edit Compiler output for the repro Generated with GCC 14.1 with the following command line: g++ -v -save-temps -std=

[Bug middle-end/109224] Wmismatched-new-delete false positive with coroutines

2024-07-03 Thread bbi5291 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224 Brian Bi changed: What|Removed |Added CC||bbi5291 at gmail dot com --- Comment #1 from

[Bug c++/115775] New: User-defined deduction guide ignored for alias template if the alias passes on a template template parameter to the aliased class template

2024-07-03 Thread s.murthy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115775 Bug ID: 115775 Summary: User-defined deduction guide ignored for alias template if the alias passes on a template template parameter to the aliased class template Product:

[Bug analyzer/115735] Analyzer misses trivial syslog() call in signal handler for -Wanalyzer-unsafe-call-within-signal-handler

2024-07-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115735 --- Comment #11 from David Malcolm --- FWIW I just noticed that your reproducer is wrong (I think) whilst trying to implement sigaction: if you're going to use sa_sigaction for the function pointer (rather than sa_handler), you have to set the S

[Bug c++/101232] Bad error message with stray semicolon in initializer

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101232 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug analyzer/115735] Analyzer misses trivial syslog() call in signal handler for -Wanalyzer-unsafe-call-within-signal-handler

2024-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115735 --- Comment #10 from Sam James --- Let me try whip up a proof of concept for the parsing then we can go from there. Thank you for the help so far! (Ah, good catch wrt sigaction -- I noticed something funny when testing but I didn't clock it pro

[Bug target/115750] [14/15 regression] Emacs fails to build on HPPA since r14-4426-g0ee3266b3dec4d

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

[Bug analyzer/115735] Analyzer misses trivial syslog() call in signal handler for -Wanalyzer-unsafe-call-within-signal-handler

2024-07-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115735 --- Comment #9 from David Malcolm --- (In reply to Sam James from comment #4) > Hi David, I started hacking up a list based on the man pages I had from > `man-pages` & removing the POSIX list of safe functions, but it's kind of > gross. It's not

[Bug analyzer/115735] Analyzer misses trivial syslog() call in signal handler for -Wanalyzer-unsafe-call-within-signal-handler

2024-07-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115735 --- Comment #8 from David Malcolm --- Not only are we not treating "syslog" as unsafe, we're also failing to handle sigaction as a way of setting a signal handler. I'm taking a look.

[Bug debug/115774] GDb does not work in Centos 9 Stream

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115774 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug debug/115774] New: GDb does not work in Centos 9 Stream

2024-07-03 Thread ergasies.uni at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115774 Bug ID: 115774 Summary: GDb does not work in Centos 9 Stream Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug

[Bug target/115691] [15 Regression] libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

2024-07-03 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115691 John David Anglin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/115691] [15 Regression] libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115691 --- Comment #8 from GCC Commits --- The releases/gcc-11 branch has been updated by John David Anglin : https://gcc.gnu.org/g:ce713016fb50796e906e39ba4244fbaf47ae77a9 commit r11-11555-gce713016fb50796e906e39ba4244fbaf47ae77a9 Author: John David

[Bug target/115691] [15 Regression] libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115691 --- Comment #7 from GCC Commits --- The releases/gcc-12 branch has been updated by John David Anglin : https://gcc.gnu.org/g:0c98d9479cec88148eb3be8d0098e36bce061cd6 commit r12-10597-g0c98d9479cec88148eb3be8d0098e36bce061cd6 Author: John David

[Bug target/115691] [15 Regression] libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115691 --- Comment #6 from GCC Commits --- The releases/gcc-13 branch has been updated by John David Anglin : https://gcc.gnu.org/g:ecd6ebe5fb0151f9649705a5798325032bbc811a commit r13--gecd6ebe5fb0151f9649705a5798325032bbc811a Author: John David

[Bug target/115691] [15 Regression] libgomp.c-c++-common/for -2.h:101:33: internal compiler error: in extract_insn, at recog.cc:2816

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115691 --- Comment #5 from GCC Commits --- The releases/gcc-14 branch has been updated by John David Anglin : https://gcc.gnu.org/g:acde9f81da39450b90e12ccf937d35aa8da1b478 commit r14-10375-gacde9f81da39450b90e12ccf937d35aa8da1b478 Author: John David

[Bug c/115770] Undefined arm instruction (udf #255) is generated when optimizer is on O2

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115770 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #6 from Andrew Pins

[Bug c/115770] Undefined arm instruction (udf #255) is generated when optimizer is on O2

2024-07-03 Thread manuel.koeppen at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115770 Manuel Köppen changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #5 from Manuel Köppen

[Bug c/115768] [C23] constexpr array of string literals not optimized

2024-07-03 Thread biggs at biggs dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115768 --- Comment #7 from biggs at biggs dot xyz --- (In reply to Andrew Pinski from comment #2) > For C++ (well with GCC extensions obvious) this would be valid: > ``` > static constexpr const char *names[] = { > [CE_RED] = "RED", > [CE_GREEN]

[Bug c/115768] [C23] constexpr array of string literals not optimized

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115768 --- Comment #6 from Andrew Pinski --- (In reply to biggs from comment #5) > So the argument here is that C23's constexpr does not permit this > optimization because it does not allow constexpr pointers other than nullptr? No I am saying the fol

[Bug target/115749] Non optimal assembly for integer modulo by a constant on x86-64 CPUs

2024-07-03 Thread kim.walisch at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115749 --- Comment #9 from kim.walisch at gmail dot com --- Here I am providing some benchmark results to back up my claim that switching to the integer modulo by a constant algorithm with 2 multiplication instructions (which is the default in both Clan

[Bug c/115768] [C23] constexpr array of string literals not optimized

2024-07-03 Thread biggs at biggs dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115768 --- Comment #5 from biggs at biggs dot xyz --- (In reply to Andrew Pinski from comment #4) > (In reply to biggs from comment #3) > > > > The unused names are optimized out here and string_view is simply a > > contiguous array of characters not p

[Bug c++/103732] Incorrect constexpr evaluation of runtime expression

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/115768] [C23] constexpr array of string literals not optimized

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115768 --- Comment #4 from Andrew Pinski --- (In reply to biggs from comment #3) > > The unused names are optimized out here and string_view is simply a > contiguous array of characters not pointers. Nope, it is still an array of pointers (and length

[Bug fortran/115700] [11/12/13/14 regression] Bogus warning for associate with assumed-length character array

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115700 --- Comment #6 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:7b7f203472d07a05d959a29638c7c95d98bf0c1c commit r15-1826-g7b7f203472d07a05d959a29638c7c95d98bf0c1c Author: Harald Anlauf Date: T

[Bug c++/103732] Incorrect constexpr evaluation of runtime expression

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > >constexpr int y = s0.C; > > > The above is now valid due to https://wg21.link/p2280r2 (which was acecpted > as a defect report against all C++ version

[Bug c/115770] Undefined arm instruction (udf #255) is generated when optimizer is on O2

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115770 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #4 from Andrew Pins

[Bug c++/72756] Using an enum as a constant expression via dot operator should not compile.

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72756 --- Comment #7 from Andrew Pinski --- Note the paper that was acepted in the end is https://wg21.link/p2280 .

[Bug c++/105696] invalid use of constexpr static class member accepted as constant expression

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105696 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > https://wg21.link/p2280r2 was accepted as a defect report against all > versions of C++. Note the correct link is https://wg21.link/p2280 .

[Bug c++/92171] accept incorrect access of static constexpr member when read from a reference

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

[Bug c/115770] Undefined arm instruction (udf #255) is generated when optimizer is on O2

2024-07-03 Thread manuel.koeppen at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115770 Manuel Köppen changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #3 from Manuel Köppen

[Bug c++/105696] invalid use of constexpr static class member accepted as constant expression

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

[Bug c++/103732] Incorrect constexpr evaluation of runtime expression

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732 --- Comment #3 from Andrew Pinski --- >constexpr int y = s0.C; The above is now valid due to https://wg21.link/p2280r2 (which was acecpted as a defect report against all C++ versions). >constexpr int z = a[i]->C; I think this is inva

[Bug c/115768] [C23] constexpr array of string literals not optimized

2024-07-03 Thread biggs at biggs dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115768 --- Comment #3 from biggs at biggs dot xyz --- (In reply to Andrew Pinski from comment #1) > >The unused constexpr names aren't optimized out but the const*const ones are. > > > They are different. > In the constexpr case, you have an array of

[Bug c++/79083] GCC incorrectly compiles calls to constexpr static methods via a non-constexpr variable

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

[Bug c++/72756] Using an enum as a constant expression via dot operator should not compile.

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72756 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/115773] New: gcc crashed with a init-capture which introduces a pack inside another lambda

2024-07-03 Thread rungecc at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115773 Bug ID: 115773 Summary: gcc crashed with a init-capture which introduces a pack inside another lambda Product: gcc Version: 15.0 Status: UNCONFIRMED Severity:

[Bug c/115768] [C23] constexpr array of string literals not optimized

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115768 --- Comment #2 from Andrew Pinski --- For C++ (well with GCC extensions obvious) this would be valid: ``` static constexpr const char *names[] = { [CE_RED] = "RED", [CE_GREEN] = "GREEN", [CE_BLUE] = "BLUE", }; ``` And gets optimized

[Bug c/115768] [C23] constexpr array of string literals not optimized

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

[Bug c++/106650] [C++23] P2280 - Using unknown references in constant expressions

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106650 Andrew Pinski changed: What|Removed |Added CC||Shun.Yao at de dot bosch.com --- Commen

[Bug c++/55004] [meta-bug] constexpr issues

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 115772, which changed state. Bug 115772 Summary: static_assert rejected constexpr member function with non-constexpr this https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115772 What|Removed

[Bug c++/115772] static_assert rejected constexpr member function with non-constexpr this

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115772 Andrew Pinski changed: What|Removed |Added Target Milestone|14.2|14.0 Resolution|---

[Bug target/115763] RISC-V: Use wrong SEW for vfmv.v.f when -march only has zvfhmin

2024-07-03 Thread pan2.li at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115763 --- Comment #5 from Li Pan --- The second test may still have some problem, will double check about it.

[Bug target/115752] [13/14/15 Regression] [loongarch -O1] ICE: maximum number of generated reload insns per insn achieved (90)

2024-07-03 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115752 --- Comment #13 from chenglulu --- (In reply to Xi Ruoyao from comment #12) > (In reply to chenglulu from comment #11) > > (In reply to chenglulu from comment #7) > > > (In reply to Xi Ruoyao from comment #4) > > > > Reduced more: > > > > > > >

[Bug target/115763] RISC-V: Use wrong SEW for vfmv.v.f when -march only has zvfhmin

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115763 --- Comment #4 from GCC Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:de9254e224eb3d89303cb9b3ba50b4c479c55f7c commit r15-1822-gde9254e224eb3d89303cb9b3ba50b4c479c55f7c Author: Pan Li Date: Wed Jul 3 22:06

[Bug c++/115772] [14/15 Regression] static_assert incorrectly accept constexpr member function with non-constexpr this

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115772 --- Comment #3 from Jonathan Wakely --- The https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2280r4.html change was approved by the C++ committee as a defect report for older standards, so this change is expected to apply to C++17. So n

[Bug c++/106650] [C++23] P2280 - Using unknown references in constant expressions

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106650 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug c++/115772] [14/15 Regression] static_assert incorrectly accept constexpr member function with non-constexpr this

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115772 Jonathan Wakely changed: What|Removed |Added Known to work||13.2.0 Known to fail|

[Bug ipa/115533] [12/13/14/15 regression] flac miscompiled with -O3 -march=znver2 -fipa-pta -fno-vect-cost-model since r12-3893-g6390c5047adb75

2024-07-03 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115533 --- Comment #23 from Alexander Monakov --- I suggest it to close this a dup of PR 106902 if there are no better ideas. By the way, in both cases SLP introduces vectors in a loop where scalar computations it's attempting to replace are not elimi

[Bug target/115755] mulx (with -mbmi2) does not show up with constant multiply

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115755 --- Comment #2 from Andrew Pinski --- (In reply to Hongtao Liu from comment #1) > mulx doesn't support imm operand, a register is still needed to put 123. > mulq is used func/func1 should be ok. Right, but mulx does not set the flags so it shou

[Bug tree-optimization/115771] false postiv -Wstringop-overread with -O2

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115771 Andrew Pinski changed: What|Removed |Added Known to work||15.0 Keywords|

[Bug c++/114990] Compiler errors in compiling a module-based app

2024-07-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114990 --- Comment #18 from Jason Merrill --- (In reply to cqwrteur from comment #17) > But does that apply to classes, templates or template specialization, etc.? Yes, everything that you would define in a header. > If someone writes a function=dele

[Bug tree-optimization/115771] false postiv -Wstringop-overread with -O2

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115771 --- Comment #1 from Andrew Pinski --- Note the testcase needs: ``` #include ``` for newer gcc versions.

[Bug c++/115772] [14/15 Regression] static_assert does not accept constexpr member function

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115772 Andrew Pinski changed: What|Removed |Added Keywords||accepts-invalid, |

[Bug analyzer/115736] Analyzer is sensitive to printf argument (or puts does not warn) for -Wanalyzer-unsafe-call-within-signal-handler

2024-07-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115736 --- Comment #2 from David Malcolm --- Indeed. Is "puts" safe or unsafe to call from a signal handler?

[Bug target/115752] [13/14/15 Regression] [loongarch -O1] ICE: maximum number of generated reload insns per insn achieved (90)

2024-07-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115752 --- Comment #12 from Xi Ruoyao --- (In reply to chenglulu from comment #11) > (In reply to chenglulu from comment #7) > > (In reply to Xi Ruoyao from comment #4) > > > Reduced more: > > > > > > long double > > > test (long double xx) > > > { >

[Bug target/115752] [13/14/15 Regression] [loongarch -O1] ICE: maximum number of generated reload insns per insn achieved (90)

2024-07-03 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115752 --- Comment #11 from chenglulu --- (In reply to chenglulu from comment #7) > (In reply to Xi Ruoyao from comment #4) > > Reduced more: > > > > long double > > test (long double xx) > > { > >__asm ("" :: "f"(xx)); > >return xx + 1; > > }

[Bug c++/115772] New: static_assert does not accept constexpr member function

2024-07-03 Thread Shun.Yao at de dot bosch.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115772 Bug ID: 115772 Summary: static_assert does not accept constexpr member function Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Pri

[Bug target/115752] [13/14/15 Regression] [loongarch -O1] ICE: maximum number of generated reload insns per insn achieved (90)

2024-07-03 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115752 --- Comment #10 from chenglulu --- (In reply to Xi Ruoyao from comment #9) > (In reply to chenglulu from comment #2) > > > On LA, if mode is TFmode and regno is the number of the floating-point > > register, can this hook return true, or must i

[Bug c++/115771] New: false postiv -Wstringop-overread with -O2

2024-07-03 Thread Shun.Yao at de dot bosch.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115771 Bug ID: 115771 Summary: false postiv -Wstringop-overread with -O2 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/115752] [13/14/15 Regression] [loongarch -O1] ICE: maximum number of generated reload insns per insn achieved (90)

2024-07-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115752 --- Comment #9 from Xi Ruoyao --- (In reply to chenglulu from comment #2) > On LA, if mode is TFmode and regno is the number of the floating-point > register, can this hook return true, or must it return false? To me it can return true, but th

[Bug target/115752] [13/14/15 Regression] [loongarch -O1] ICE: maximum number of generated reload insns per insn achieved (90)

2024-07-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115752 --- Comment #8 from Xi Ruoyao --- Started from r13-1834 (which removed movtf).

  1   2   >