[Bug tree-optimization/115764] New: When enabling CSE for SLP two operator nodes 526.blender_r breaks

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115764 Bug ID: 115764 Summary: When enabling CSE for SLP two operator nodes 526.blender_r breaks Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/115764] When enabling CSE for SLP two operator nodes 526.blender_r breaks

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115764 Richard Biener changed: What|Removed |Added CC||tnfchris at gcc dot gnu.org --- Commen

[Bug tree-optimization/115764] When enabling CSE for SLP two operator nodes 526.blender_r breaks

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

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

2024-07-03 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 109130, which changed state. Bug 109130 Summary: [13/14/15 Regression] 464.h264ref regressed by 6.5% on a Neoverse-N1 CPU with PGO, LTO, -Ofast and -march=native https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109130

[Bug target/109130] [13/14/15 Regression] 464.h264ref regressed by 6.5% on a Neoverse-N1 CPU with PGO, LTO, -Ofast and -march=native

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

[Bug tree-optimization/115629] Inefficient if-convert of masked conditionals

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115629 --- Comment #9 from Richard Biener --- I think we sort-of agreed to have .MASK_LOAD to have inactive lanes zeroed but we never got around to formalizing that. Note AVX512 supports zero-masking for .MASK_STORE IIRC, not just merge. Same for .MA

[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 #3 from GCC Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:239ad907b1fc08874042f8bea5f61eaf3ba2877d commit r15-1806-g239ad907b1fc08874042f8bea5f61eaf3ba2877d Author: liuhongt Date: Wed Jul

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

2024-07-03 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115748 Hongtao Liu changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/115751] [15 Regression] ICE building 521.wrf_r

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115751 --- Comment #5 from Richard Biener --- (In reply to Roger Sayle from comment #4) > Created attachment 58567 [details] > proposed patch > > Here's my proposed patch. LGTM but I wonder if x86 general_operand should instead support those in-place

[Bug sanitizer/115765] New: [13 Regression] signed integer overflow check missing

2024-07-03 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115765 Bug ID: 115765 Summary: [13 Regression] signed integer overflow check missing Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Com

[Bug target/115756] default tuning for x86_64 produces shifts for `*240`

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115756 Richard Biener changed: What|Removed |Added Target||x86_64-*-* --- Comment #2 from Richard

[Bug tree-optimization/115764] When enabling CSE for SLP two operator nodes 526.blender_r breaks

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115764 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Last reconfirmed

[Bug sanitizer/115765] [13 Regression] signed integer overflow check missing

2024-07-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115765 --- Comment #1 from Jakub Jelinek --- This is in dead code, something || 8 will always be 1 and when something doesn't have side-effects, even -O0 performs some limited optimizations.

[Bug sanitizer/115765] [11/12/13 Regression] signed integer overflow check missing

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115765 Richard Biener changed: What|Removed |Added Summary|[13 Regression] signed |[11/12/13 Regression]

[Bug target/115756] default tuning for x86_64 produces shifts for `*240`

2024-07-03 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115756 --- Comment #3 from Hongtao Liu --- Current rtx_cost for imulq in generic_cost is COST_N_INSNS (4), make it as COST_N_INSNS (3) could generate imulq. {COSTS_N_INSNS (3), /* cost of starting multiply for QI */ COSTS_N_INS

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

2024-07-03 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115755 Hongtao Liu changed: What|Removed |Added CC||liuhongt at gcc dot gnu.org --- Comment #

[Bug tree-optimization/114932] IVopts inefficient handling of signed IV used for addressing.

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114932 --- Comment #16 from GCC Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:25127123100f04c2d5d70c6933a5f5aedcd69c40 commit r15-1808-g25127123100f04c2d5d70c6933a5f5aedcd69c40 Author: Tamar Christina Date

[Bug tree-optimization/114932] IVopts inefficient handling of signed IV used for addressing.

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114932 --- Comment #17 from GCC Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:735edbf1e2479fa2323a2b4a9714fae1a0925f74 commit r15-1809-g735edbf1e2479fa2323a2b4a9714fae1a0925f74 Author: Tamar Christina Date

[Bug target/98762] Wrong code for avrtiny for QI mode loads from Z to R31

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98762 --- Comment #1 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:e9fb6efa1cf542353fd44ddcbb5136344c463fd0 commit r15-1810-ge9fb6efa1cf542353fd44ddcbb5136344c463fd0 Author: Georg-Johann Lay Date

[Bug target/115336] [15] rv64gcv_zvl256b miscompile at -O3

2024-07-03 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115336 --- Comment #3 from Robin Dapp --- Follow-up on this one: My workaround of emitting a vmv.v.i v[0-9],0 before any (potentially) offending masked load is not going to work universally. That's because on several instances we make use of the fact

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

2024-07-03 Thread sh.chiang04 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115763 --- Comment #2 from Monk Chiang --- Thanks Pan. Another test. It includes vfmv.v.f, vfmv.s.f compile option: -mabi=lp64d -march=rv64gcv_zfh_zvfhmin -O3 -ftree-vectorize -fno-vect-cost-model -S #include void f__Float16_int8_t (_Float16 *res

[Bug target/98762] Wrong code for avrtiny for QI mode loads from Z to R31

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98762 --- Comment #2 from GCC Commits --- The releases/gcc-14 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:55744507abc5240fe1a59a6251f815a0d6217fe8 commit r14-10373-g55744507abc5240fe1a59a6251f815a0d6217fe8 Author: Georg-Johann

[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 #3 from Li Pan --- Thanks, I have a quick fix but it looks to break the zvfh to generate the vfmv insn. Let me have another try.

[Bug target/98762] Wrong code for avrtiny for QI mode loads from Z to R31

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98762 --- Comment #3 from GCC Commits --- The releases/gcc-13 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:ba9fef4bdea32ca5c121a1baba02450faf2b commit r13-8887-gba9fef4bdea32ca5c121a1baba02450faf2b Author: Georg-Johann

[Bug tree-optimization/115764] When enabling CSE for SLP two operator nodes 526.blender_r breaks

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115764 --- Comment #3 from Richard Biener --- Created attachment 58578 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58578&action=edit patch to enable CSE This is the patch to enable CSE and have the gcc.dg/vect/bb-slp-76.c testcase ICE.

[Bug target/98762] Wrong code for avrtiny for QI mode loads from Z to R31

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98762 --- Comment #4 from GCC Commits --- The releases/gcc-12 branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:5f699cb08eed44a903393f601009e9c6d0b59c59 commit r12-10596-g5f699cb08eed44a903393f601009e9c6d0b59c59 Author: Georg-Johann

[Bug target/98762] [avr] Wrong code for avrtiny for QImode loads from Z to R31

2024-07-03 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98762 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug tree-optimization/115766] New: [12/13/14 Regression] wrong code at optimization levels -O2, -O3

2024-07-03 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115766 Bug ID: 115766 Summary: [12/13/14 Regression] wrong code at optimization levels -O2, -O3 Product: gcc Version: 12.3.0 Status: UNCONFIRMED Severity: normal

[Bug c++/115744] [C++26] P2747R2 - constexpr placement new

2024-07-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115744 Jakub Jelinek changed: What|Removed |Added Attachment #58563|0 |1 is obsolete|

[Bug target/115767] New: GCC looses track of value on aarch64 with -O2

2024-07-03 Thread bugs at qult dot net via Gcc-bugs
ng Buildroot 2024.02.1 with the following configure flags: Using built-in specs. COLLECT_AS_OPTIONS='--version' COLLECT_GCC=[...]/host/bin/aarch64-linux-g++.br_real COLLECT_LTO_WRAPPER=[...]/host/libexec/gcc/aarch64-buildroot-linux-musl/15.0.0/lto-wrapper aarch64-linux-g++.br_real (Bu

[Bug target/115767] GCC looses 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 CC||bugs at qult dot net --- Comment #1 f

[Bug c/115768] New: [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 Bug ID: 115768 Summary: [C23] constexpr array of string literals not optimized Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Co

[Bug target/115457] AArch64 should define __ARM_FEATURE_BF16

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115457 --- Comment #3 from GCC Commits --- The master branch has been updated by Kyrylo Tkachov : https://gcc.gnu.org/g:c10942134fa759843ac1ed1424b86fcb8e6368ba commit r15-1812-gc10942134fa759843ac1ed1424b86fcb8e6368ba Author: Kyrylo Tkachov Date:

[Bug target/115475] AArch64 should define __ARM_FEATURE_SVE_BF16 when appropriate

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115475 --- Comment #3 from GCC Commits --- The master branch has been updated by Kyrylo Tkachov : https://gcc.gnu.org/g:6492c7130d6ae9992298fc3d072e2589d1131376 commit r15-1813-g6492c7130d6ae9992298fc3d072e2589d1131376 Author: Kyrylo Tkachov Date:

[Bug tree-optimization/115766] [12/13/14 Regression] wrong code at optimization levels -O2, -O3

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

[Bug tree-optimization/115766] [12/13/14 Regression] wrong code at optimization levels -O2, -O3

2024-07-03 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115766 --- Comment #2 from Bi6c --- Created attachment 58582 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58582&action=edit preprocessed source file

[Bug ipa/102061] .constprop gets exposed in warning message

2024-07-03 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102061 ktkachov at gcc dot gnu.org changed: What|Removed |Added CC||ktkachov at gcc dot gnu.org

[Bug target/115752] [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 #3 from Xi Ruoyao --- I found some "interesting" thing in alpha.md: ;; Subregs suck for register allocation. Pretend we can move TFmode ;; data between general registers until after reload. ;; ??? Is this still true now that we hav

[Bug target/113719] [13/14/15 regression] g++.target/i386/pr103696.C FAILs

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113719 --- Comment #11 from GCC Commits --- The master branch has been updated by Alexandre Oliva : https://gcc.gnu.org/g:bf2fc0a27b35de039c3d45e6d7ea9ad0a8a305ba commit r15-1814-gbf2fc0a27b35de039c3d45e6d7ea9ad0a8a305ba Author: Alexandre Oliva Date

[Bug pch/115312] [14/15 Regression] ICE when including a PCH via compiler option -include since r14-5836

2024-07-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115312 --- Comment #10 from GCC Commits --- The releases/gcc-14 branch has been updated by Lewis Hyatt : https://gcc.gnu.org/g:3389a23fd492b7920a62de6af298251b3cdab617 commit r14-10374-g3389a23fd492b7920a62de6af298251b3cdab617 Author: Lewis Hyatt Da

[Bug pch/115312] [14/15 Regression] ICE when including a PCH via compiler option -include since r14-5836

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

[Bug c++/115769] New: Implement CWG 2867 - Order of initialization for structured bindings

2024-07-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115769 Bug ID: 115769 Summary: Implement CWG 2867 - Order of initialization for structured bindings Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c/111035] Getting warning array subscript 0 is outside array bounds

2024-07-03 Thread manuel.koeppen at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111035 Manuel Köppen changed: What|Removed |Added CC||manuel.koeppen at gmx dot de --- Commen

[Bug target/115752] [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 #4 from Xi Ruoyao --- Reduced more: long double test (long double xx) { __asm ("" :: "f"(xx)); return xx + 1; } and this one fails at -O2 & -O3 too.

[Bug target/115752] [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 Xi Ruoyao changed: What|Removed |Added Last reconfirmed||2024-07-03 Status|UNCONFIRMED

[Bug tree-optimization/113681] [14 Regression] ICE in tree_profiling, at tree-profile.cc:803 since r14-6201-gf0a90c7d7333fc

2024-07-03 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113681 Alexandre Oliva changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |aoliva at gcc dot gnu.org

[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 Xi Ruoyao changed: What|Removed |Added Summary|[loongarch -O1] ICE:|[13/14/15 Regression] |ma

[Bug libstdc++/115743] libstdc++: pretty printer is installed in wrong location for mingw32/cygwin targets

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115743 --- Comment #8 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #7) > install-data-local change does look correct though or at least closer to > what it should be. If we're going to check three possible variables instead of two,

[Bug libstdc++/115743] libstdc++: pretty printer is installed in wrong location for mingw32/cygwin targets

2024-07-03 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115743 --- Comment #9 from Jonathan Wakely --- (In reply to Ralf Habacker from comment #0) > but building gcc for the mentioned target with gcc version 13.2.0 installs > the gdb printer for libstdc++ into > > /usr/i686-w64-mingw32/sys-root/mingw/lib/g

[Bug tree-optimization/115766] [12/13/14 Regression] wrong code at optimization levels -O2, -O3

2024-07-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115766 Richard Biener changed: What|Removed |Added Keywords||needs-bisection, |

[Bug c/115770] New: 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 Bug ID: 115770 Summary: Undefined arm instruction (udf #255) is generated when optimizer is on O2 Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: no

[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 #6 from chenglulu --- (In reply to Xi Ruoyao from comment #5) > Interestingly, not happening with 12. Error from r15-1765,but I think there should have been a problem, it just didn't come out.

[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 #7 from chenglulu --- (In reply to Xi Ruoyao from comment #4) > Reduced more: > > long double > test (long double xx) > { >__asm ("" :: "f"(xx)); >return xx + 1; > } > > and this one fails at -O2 & -O3 too. I'm not sure if

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

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

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

2024-07-03 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115770 --- Comment #2 from Richard Earnshaw --- Correction: the option to add is -fno-delete-null-pointer-checks Sorry for the confusion.

[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).

[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 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 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++/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 #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 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 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 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 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++/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 Andrew Pinski changed: What|Removed |Added Known to work||15.0 Keywords|

[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 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 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 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 --- 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 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 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 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 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 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/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/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++/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++/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++/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/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++/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++/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/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++/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++/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++/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/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++/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 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/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 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 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 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 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 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/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

  1   2   >