[Bug tree-optimization/116684] [vectorization][x86-64] dot_16x1x16_uint8_int8_int32 could be better optimized

2024-09-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116684 Richard Biener changed: What|Removed |Added CC||fxue at os dot amperecomputing.com --

[Bug target/116686] [15 Regression] RISC-V: gcc.target/riscv/rvv/autovec/pr114734.c failing with zvl1024b lmul2

2024-09-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116686 Richard Biener changed: What|Removed |Added Target||riscv Keywords|

[Bug target/116691] RISC-V: Unexpected auto-vectorization codegen in simple vectorization

2024-09-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116691 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Target

[Bug tree-optimization/116689] Some simple scheduling to reduce register presure should be done on the gimple level

2024-09-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116689 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/116352] [15 regression] ICE when building opencv-4.9.0 (error: definition in block 208 does not dominate use in block 188) since r15-2820-gab18785840d7b8

2024-09-12 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116352 --- Comment #14 from rguenther at suse dot de --- On Wed, 11 Sep 2024, pinskia at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116352 > > Andrew Pinski changed: > >What|Removed |Ad

[Bug demangler/116692] New: demangler crash on valid input

2024-09-12 Thread djnz00 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116692 Bug ID: 116692 Summary: demangler crash on valid input Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: demangler

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #252 from John Paul Adrian Glaubitz --- (In reply to John Paul Adrian Glaubitz from comment #250) > This builds fine. I will try to build Kaz's tree now as it is. I suggest, once this is verified to work, that we start upstreaming th

[Bug c/116690] Miscompile with different optimization flags

2024-09-12 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116690 Vincent Lefèvre changed: What|Removed |Added CC||vincent-gcc at vinc17 dot net --- Com

[Bug fortran/116661] Undefined behavior when compiling interop-1.f90 gomp test

2024-09-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116661 --- Comment #6 from Tobias Burnus --- > FAIL: gfortran.dg/gomp/interop-1.f90 That's a known issue – there is a parsing issue that was (usually) hidden by the not properly initialized variable. Now it is exposed as consistent FAIL, which is muc

[Bug c++/116323] [12/13/14/15 Regression] ICE: tree check: expected record_type or union_type or qual_union_type, have bound_template_template_parm in access_in_type, at cp/search.cc:663

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116323 --- Comment #4 from GCC Commits --- The master branch has been updated by Simon Martin : https://gcc.gnu.org/g:19831baf4904d09a74c7cf684a27b091947a610b commit r15-3598-g19831baf4904d09a74c7cf684a27b091947a610b Author: Simon Martin Date: Tue

[Bug c++/116323] [12/13/14/15 Regression] ICE: tree check: expected record_type or union_type or qual_union_type, have bound_template_template_parm in access_in_type, at cp/search.cc:663

2024-09-12 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116323 Simon Martin changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug sanitizer/104690] UBSan does not detect undefined behavior on function without a specified return value

2024-09-12 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104690 --- Comment #3 from Vincent Lefèvre --- Well, I can understand that this may be difficult in some cases. For instance: static int f (void) { if (complex_condition_1) return 1; } and used with if (complex_condition_2) printf ("%d\n", f (

[Bug demangler/88539] A memory leak issue was discovered in cplus-dem.c

2024-09-12 Thread nickc at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88539 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment #4 fr

[Bug sanitizer/104690] UBSan does not detect undefined behavior on function without a specified return value

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104690 --- Comment #4 from Jonathan Wakely --- Couldn't the C front end insert a trap at the end of the function for -O0 compilations? That would at least diagnose this for unoptimized builds. That's what G++ does now.

[Bug sanitizer/104690] UBSan does not detect undefined behavior on function without a specified return value

2024-09-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104690 --- Comment #5 from Jakub Jelinek --- It would be difficult in all cases. Essentially, the sanitizer would need to change the ABI of the function to return a pair of normal return type, boolean flag whether it fell off from the function end wit

[Bug sanitizer/104690] UBSan does not detect undefined behavior on function without a specified return value

2024-09-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104690 --- Comment #6 from Jakub Jelinek --- (In reply to Jonathan Wakely from comment #4) > Couldn't the C front end insert a trap at the end of the function for -O0 > compilations? That would at least diagnose this for unoptimized builds. > That's wh

[Bug sanitizer/104690] UBSan does not detect undefined behavior on function without a specified return value

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104690 --- Comment #7 from Jonathan Wakely --- Doh, of course, the trap would happen even when the caller doesn't try to use the result. ENOCAFFEINE

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-12 Thread ping at zero dot ms via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 Sofian Touhami changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED URL|

[Bug c/105863] RFE: C23 #embed

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105863 --- Comment #17 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:eba6d2aa71a9b59386e5a2453cbe924371626b0b commit r15-3599-geba6d2aa71a9b59386e5a2453cbe924371626b0b Author: Jakub Jelinek Date:

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #253 from Oleg Endo --- (In reply to John Paul Adrian Glaubitz from comment #252) > (In reply to John Paul Adrian Glaubitz from comment #250) > > This builds fine. I will try to build Kaz's tree now as it is. > > I suggest, once this

[Bug target/116662] The value of __GCC_DESTRUCTIVE_SIZE for riscv64 could be improved

2024-09-12 Thread rsworktech at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116662 --- Comment #10 from Levi Zim --- (In reply to Jeffrey A. Law from comment #9) > So the question in my mind, how important is this? On modern kernels & > toolchains it's possible to query the cboz extension & its block size which > effectively

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #254 from John Paul Adrian Glaubitz --- (In reply to Oleg Endo from comment #253) > (In reply to John Paul Adrian Glaubitz from comment #252) > > (In reply to John Paul Adrian Glaubitz from comment #250) > > > This builds fine. I will

[Bug ada/116438] GNAT should print backtraces on ICEs with bug box

2024-09-12 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116438 Eric Botcazou changed: What|Removed |Added Status|NEW |ASSIGNED Summary|Ada FE shou

[Bug target/116693] [RISC-V] @tlsdesc generates duplicate assembler labels

2024-09-12 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116693 Andreas Schwab changed: What|Removed |Added Target Milestone|--- |14.3

[Bug target/116693] New: [RISC-V] @tlsdesc generates duplicate assembler labels

2024-09-12 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116693 Bug ID: 116693 Summary: [RISC-V] @tlsdesc generates duplicate assembler labels Product: gcc Version: 14.2.0 Status: UNCONFIRMED Keywords: assemble-failure

[Bug c++/116678] "-Os" triggers [[deprecated]] on a class ctor definition with implementation

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

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #255 from Oleg Endo --- (In reply to John Paul Adrian Glaubitz from comment #254) > OK, thanks for the clarification. I'd suggest then to upstream everything > that has been tested to work and is also fine to merge as-is. Having the

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #256 from John Paul Adrian Glaubitz --- (In reply to Oleg Endo from comment #255) > (In reply to John Paul Adrian Glaubitz from comment #254) > > > OK, thanks for the clarification. I'd suggest then to upstream everything > > that ha

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #257 from Oleg Endo --- (In reply to John Paul Adrian Glaubitz from comment #256) > > > > Having the compiler bootstrapping is already a big step, but how about > > building other packages? With the patched up and bootstrapping comp

[Bug c++/96097] ICE in dependent_type_p, at cp/pt.c:26326

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96097 --- Comment #9 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:25ac2bb57ae400621050a7e0845994336ca83b99 commit r15-3603-g25ac2bb57ae400621050a7e0845994336ca83b99 Author: Marek Polacek Date: Tue

[Bug c++/96097] ICE in dependent_type_p, at cp/pt.c:26326

2024-09-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96097 --- Comment #10 from Marek Polacek --- Fixed on trunk; I will backport to 14 at least.

[Bug c++/116694] New: -Ftemplate-depth = parameter does not match the actual number of instantiations

2024-09-12 Thread polarlinda6 at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116694 Bug ID: 116694 Summary: -Ftemplate-depth = parameter does not match the actual number of instantiations Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severi

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-12 Thread ping at zero dot ms via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 Sofian Touhami changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug preprocessor/96842] enhancement: copy clang Wheader-guard

2024-09-12 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96842 Eric Gallager changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug tree-optimization/116520] Multiple condition lead to missing vectorization due to missing early break

2024-09-12 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 ak at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|WAITING Resolution|DUPLI

[Bug tree-optimization/115866] missed optimization vectorizing switch statements.

2024-09-12 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 ak at gcc dot gnu.org changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2024-09-12 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 115866, which changed state. Bug 115866 Summary: missed optimization vectorizing switch statements. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 What|Removed |Added --

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2024-09-12 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 116520, which changed state. Bug 116520 Summary: Multiple condition lead to missing vectorization due to missing early break https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 What|Removed

[Bug tree-optimization/115130] [meta-bug] early break vectorization

2024-09-12 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115130 Bug 115130 depends on bug 116520, which changed state. Bug 116520 Summary: Multiple condition lead to missing vectorization due to missing early break https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 What|Removed

[Bug tree-optimization/115130] [meta-bug] early break vectorization

2024-09-12 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115130 Bug 115130 depends on bug 115866, which changed state. Bug 115866 Summary: missed optimization vectorizing switch statements. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 What|Removed |Added

[Bug tree-optimization/116520] Multiple condition lead to missing vectorization due to missing early break

2024-09-12 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 --- Comment #7 from Andi Kleen --- Tamas also gave this example in PR115866 which shows the same problem: short a[100]; int foo(int n, int counter) { for (int i = 0; i < n; i++) { if (a[i] == 1 || a[i] == 2 || a[i] == 7 || a[i]

[Bug c++/116695] New: Undefined behaviour involving unsequenced side effects on a memory location during constant evaluation should not compile

2024-09-12 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116695 Bug ID: 116695 Summary: Undefined behaviour involving unsequenced side effects on a memory location during constant evaluation should not compile Product: gcc Ve

[Bug rtl-optimization/95405] Unnecessary stores with std::optional from returns

2024-09-12 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95405 --- Comment #11 from Thiago Macieira --- May also be related to why GCC produces warnings about uninitialised memory - Bug 100115

[Bug tree-optimization/115866] missed optimization vectorizing switch statements.

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

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 115866, which changed state. Bug 115866 Summary: missed optimization vectorizing switch statements. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 What|Removed |Added --

[Bug tree-optimization/115130] [meta-bug] early break vectorization

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115130 Bug 115130 depends on bug 115866, which changed state. Bug 115866 Summary: missed optimization vectorizing switch statements. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 What|Removed |Added

[Bug tree-optimization/116520] Multiple condition lead to missing vectorization due to missing early break

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

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 116520, which changed state. Bug 116520 Summary: Multiple condition lead to missing vectorization due to missing early break https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 What|Removed

[Bug tree-optimization/115866] missed optimization vectorizing switch statements.

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

[Bug tree-optimization/115130] [meta-bug] early break vectorization

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115130 Bug 115130 depends on bug 116520, which changed state. Bug 116520 Summary: Multiple condition lead to missing vectorization due to missing early break https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 What|Removed

[Bug tree-optimization/115866] missed optimization vectorizing switch statements.

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115866 Andrew Pinski changed: What|Removed |Added Status|REOPENED|NEW --- Comment #13 from Andrew Pinski

[Bug c++/116636] [12/13/14/15 Regression] Deprecation warning/unavailable error when overriding member of virtual base class

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116636 --- Comment #3 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:4026d89d623e322920b052f7ac0d940ef267dc0f commit r15-3610-g4026d89d623e322920b052f7ac0d940ef267dc0f Author: Jakub Jelinek Date: T

[Bug target/116686] [15 Regression] RISC-V: gcc.target/riscv/rvv/autovec/pr114734.c failing with zvl1024b lmul2

2024-09-12 Thread syq at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116686 --- Comment #3 from YunQiang Su --- I cannot reproduce this problem (with Debian Sid) 1) apt install g++-riscv-linux-gnu linux-libc-dev-riscv64-cross 2) ../configure --prefix=/usr --disable-multilib --with-arch=rv64gc --with-abi=lp64d --target=

[Bug c++/116418] [12/13/14/15 Regression] statement expressions as initializer for decltype auto breaks in templates with optimization turned on and debug info turned on due to gstatement-frontiers

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116418 --- Comment #9 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:12bdcc3d7970860b9d66ed4dea203bde8fd68d4d commit r15-3611-g12bdcc3d7970860b9d66ed4dea203bde8fd68d4d Author: Patrick Palka Date: T

[Bug c++/116694] -Ftemplate-depth = parameter does not match the actual number of instantiations

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116694 --- Comment #1 from Andrew Pinski --- `-ftemplate-depth=101` is enough here.

[Bug c++/116694] -Ftemplate-depth = parameter does not match the actual number of instantiations

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

[Bug c/116483] RFE: a notion for asm goto to indicate all labels in the function may be jumped to

2024-09-12 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116483 --- Comment #9 from Alexander Monakov --- (In reply to Xi Ruoyao from comment #8) > Is there any pointer how to implement this instead? It may be sufficient to change (define_insn "@tablejump" [(set (pc) (match_operand:P 0 "register_

[Bug c/116483] RFE: a notion for asm goto to indicate all labels in the function may be jumped to

2024-09-12 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116483 Xi Ruoyao changed: What|Removed |Added Resolution|--- |WONTFIX Status|WAITING

[Bug c++/116696] New: function template not considered constexpr even with -fimplicit-constexpr

2024-09-12 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116696 Bug ID: 116696 Summary: function template not considered constexpr even with -fimplicit-constexpr Product: gcc Version: unknown Status: UNCONFIRMED Severity: n

[Bug c++/116696] function template not considered constexpr even with -fimplicit-constexpr

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116696 --- Comment #1 from Jonathan Wakely --- Created attachment 59104 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59104&action=edit slightly modified std::format implementation This is the code from the compiler explorer link. Compile with

[Bug c++/116696] function template not considered constexpr even with -fimplicit-constexpr

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116696 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Bug c++/116697] New: Bogus -Wuninitialized warning when no access to uninitialized data is done

2024-09-12 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116697 Bug ID: 116697 Summary: Bogus -Wuninitialized warning when no access to uninitialized data is done Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: n

[Bug c++/116696] function template not considered constexpr even with -fimplicit-constexpr

2024-09-12 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116696 --- Comment #2 from Jason Merrill --- Ah, that's because __write_padded isn't inline; -fimplicit-constexpr only applies to inlines.

[Bug c/116483] RFE: a notion for asm goto to indicate all labels in the function may be jumped to

2024-09-12 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116483 --- Comment #11 from Alexander Monakov --- > It only handles switch statements, not computed gotos. Oh, right, apologies for misunderstanding your question like that. For computed gotos it is indeed not so easy, especially if there is more than

[Bug target/116693] [RISC-V] @tlsdesc generates duplicate assembler labels

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

[Bug target/116693] [RISC-V] @tlsdesc generates duplicate assembler labels

2024-09-12 Thread palmer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116693 --- Comment #2 from Palmer Dabbelt --- I think something like this diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md index 9f94b5aa023..c64c881d152 100644 --- a/gcc/config/riscv/riscv.md +++ b/gcc/config/riscv/riscv.md @@ -2334

[Bug lto/116614] lto-wrapper: fatal error: Too many copied sections: Operation not supported

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116614 --- Comment #9 from GCC Commits --- The releases/gcc-14 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:c9fd43a8df0e30109794e2480e2d8d05d00763c0 commit r14-10665-gc9fd43a8df0e30109794e2480e2d8d05d00763c0 Author: Jakub Jelinek

[Bug c++/116449] Miscompilation and missing bounds check with UBSAN with pointer to member functions and array accesses

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116449 --- Comment #9 from GCC Commits --- The releases/gcc-14 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:90a9c36dc3ba341cf662ba1d60c939027487fe9a commit r14-10666-g90a9c36dc3ba341cf662ba1d60c939027487fe9a Author: Jakub Jelinek

[Bug c++/116636] [12/13/14/15 Regression] Deprecation warning/unavailable error when overriding member of virtual base class

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116636 --- Comment #4 from GCC Commits --- The releases/gcc-14 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:5609246b561ab929b24eeb32965911884b58b0df commit r14-10667-g5609246b561ab929b24eeb32965911884b58b0df Author: Jakub Jelinek

[Bug target/116698] New: [12/13/14/15 Regression] ICE: in add_cfi_args_size, at dwarf2cfi.cc:501 with -O -finstrument-functions -fstack-check=generic -m32 -mrtd -maccumulate-outgoing-args

2024-09-12 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116698 Bug ID: 116698 Summary: [12/13/14/15 Regression] ICE: in add_cfi_args_size, at dwarf2cfi.cc:501 with -O -finstrument-functions -fstack-check=generic -m32 -mrtd -ma

[Bug middle-end/112600] Failed to optimize saturating addition using __builtin_add_overflow

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112600 --- Comment #16 from GCC Commits --- The master branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:19d751601d012bbe31512d26f968e75873a408ab commit r15-3612-g19d751601d012bbe31512d26f968e75873a408ab Author: Uros Bizjak Date: Thu

[Bug c++/96097] ICE in dependent_type_p, at cp/pt.c:26326

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96097 --- Comment #11 from GCC Commits --- The releases/gcc-14 branch has been updated by Marek Polacek : https://gcc.gnu.org/g:4088319e7ce98f813988a36f98a18ee30ff7f1d8 commit r14-10668-g4088319e7ce98f813988a36f98a18ee30ff7f1d8 Author: Marek Polacek

[Bug c++/96097] ICE in dependent_type_p, at cp/pt.c:26326

2024-09-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96097 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 --- Comment #6 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:9fe57e4879de93b6e3c7b4c226f42d5f3a48474f commit r15-3614-g9fe57e4879de93b6e3c7b4c226f42d5f3a48474f Author: Jonathan Wakely Date:

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

2024-09-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116673 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/116673] __builtin_launder accepts function pointers and void pointers

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

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #258 from John Paul Adrian Glaubitz --- (In reply to John Paul Adrian Glaubitz from comment #250) > This builds fine. I will try to build Kaz's tree now as it is. So, for Kaz's tree, I'm getting the comparison failure: Comparing sta

[Bug tree-optimization/116573] [15 Regression] Recent SLP work appears to generate significantly worse code on RISC-V

2024-09-12 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116573 --- Comment #4 from JuzheZhong --- (In reply to Richard Biener from comment #3) > So when investigating "future" fallout I've seen similar differences for > gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-1.c for example with the > GIMPLE diffe

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #259 from Kazumoto Kojima --- I totally agree with Oleg. We are still close to the starting point. The experiment with 58895/59000 shows that there might be some issue with the SH sfunc when LRA is enabled. It only paper over the rea

[Bug tree-optimization/116699] New: factor_out_conditional_operation does not ignore PREDICT/NOP sometimes

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116699 Bug ID: 116699 Summary: factor_out_conditional_operation does not ignore PREDICT/NOP sometimes Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-

[Bug tree-optimization/116699] factor_out_conditional_operation does not ignore PREDICT/NOP sometimes

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116699 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/55212] [SH] Switch to LRA

2024-09-12 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #260 from Hans-Peter Nilsson --- Random advice that some of you know, but it's also easy to forget: reorg (the delayed-branch-slot-filling pass) is a usual suspect: there be dragons. So, when suspecting wrong-code for DELAY_SLOTS suc

[Bug tree-optimization/116700] New: `(A > PZ) ? ABS(A) : PZ` -> `MAX(A, PZ)` where PZ is known to be non-negative

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116700 Bug ID: 116700 Summary: `(A > PZ) ? ABS(A) : PZ` -> `MAX(A, PZ)` where PZ is known to be non-negative Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords:

[Bug tree-optimization/116700] `(A > PZ) ? ABS(A) : PZ` -> `MAX(A, PZ)` where PZ is known to be non-negative

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116700 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug c++/116694] -Ftemplate-depth = parameter does not match the actual number of instantiations

2024-09-12 Thread polarlinda6 at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116694 --- Comment #3 from polarlinda6 --- (In reply to Andrew Pinski from comment #2) > So GCC is counting `A<...>` and `A<...>::value` as `seperate template > instantiation depth` which is why you need 101. > > Since this is outside of the standard

[Bug c++/116694] -Ftemplate-depth = parameter does not match the actual number of instantiations

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116694 --- Comment #4 from Andrew Pinski --- (In reply to polarlinda6 from comment #3) > For the special behavior that occurs with `A<...>::value`, I hope to > eliminate this inconsistency. GCC counts each instantiation of a template that happens. So

[Bug tree-optimization/66726] missed optimization, factor conversion out of COND_EXPR

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66726 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/116701] New: [15 Regression] gfortran.dg/write_check3.f90 suddenly fails for non-fd_truncate targets

2024-09-12 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116701 Bug ID: 116701 Summary: [15 Regression] gfortran.dg/write_check3.f90 suddenly fails for non-fd_truncate targets Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug tree-optimization/116699] factor_out_conditional_operation does not ignore PREDICT/NOP sometimes

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116699 --- Comment #2 from Andrew Pinski --- here is a better example where we have a secondary phiopt happening: ``` short f(int a, int b, int c) { int t1 = 4; if (c < t1) return (c > -1 ? c : -1); return t1; } short f1(int a, int b, int c) {

[Bug tree-optimization/116699] factor_out_conditional_operation does not ignore PREDICT/NOP sometimes

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116699 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #3 from Andrew Pin

[Bug tree-optimization/116702] New: `MIN_EXPR , 0>` can be optimized to `a >> (BITSIZE-1)` for signed types

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116702 Bug ID: 116702 Summary: `MIN_EXPR , 0>` can be optimized to `a >> (BITSIZE-1)` for signed types Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: misse

[Bug tree-optimization/116702] `MIN_EXPR , 0>` can be optimized to `a >> (BITSIZE-1)` for signed types

2024-09-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116702 --- Comment #1 from Andrew Pinski --- `MIN_EXPR , 1>` -> `a > 0` : ``` #define cst1 0 #define cst2 1 int f(int a, int b, int c) { int t = (c > cst1 ? c : cst1); int t2 = (t < cst2) ? t : cst2; return t2; } int f2(int a, int b, int c) {

[Bug testsuite/116653] new test case gfortran.dg/unsigned_21.f90 from r15-3526-g113a6da9bf91c5 fails

2024-09-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116653 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/116025] Experimental implementation of unsigned integers for Fortran

2024-09-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116025 Bug 116025 depends on bug 116653, which changed state. Bug 116653 Summary: new test case gfortran.dg/unsigned_21.f90 from r15-3526-g113a6da9bf91c5 fails https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116653 What|Removed

[Bug tree-optimization/116573] [15 Regression] Recent SLP work appears to generate significantly worse code on RISC-V

2024-09-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116573 --- Comment #5 from Richard Biener --- (In reply to JuzheZhong from comment #4) > So, If I am understanding correctly, it seems that Richard has change > vectorizer that all auto-vectorization are represented as SLP instance ? Yes. > So the !s