[Bug c++/117317] [12/13/14/15 Regression] ICE on call to virtual constexpr function via comparison operator in CRTP with multiple inheritance with template since r12-4202-g09d886e671f223

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117317 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug jit/117275] test-functions.c.exe and test-tls.c.exe FAIL on ppc64le with an assertion failure

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117275 --- Comment #5 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:7f41203f08b9948c1c636dc9d66571121c6c7793 commit r15-4739-g7f41203f08b9948c1c636dc9d66571121c6c7793 Author: David Malcolm Date: T

[Bug c/112716] LTO optimization with struct with variable size

2024-10-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112716 --- Comment #15 from Richard Biener --- (In reply to uecker from comment #14) > (In reply to Richard Biener from comment #13) > > (In reply to uecker from comment #11) > > > I asked the C FE and it wants to get this fixed. > > > > That was a fu

[Bug tree-optimization/117333] [13/14/15 regression] ICE on structure copy with flexible array member

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117333 --- Comment #4 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:0e99b22aa666f107c4035d32bfb5ab11534a9d2f commit r15-4737-g0e99b22aa666f107c4035d32bfb5ab11534a9d2f Author: Richard Biener Date:

[Bug libstdc++/112641] : `drop_view::begin const` has O(n) complexity

2024-10-29 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112641 --- Comment #3 from Patrick Palka --- > which will have 𝒪(n) complexity in the case of random-access-sized but > non-common range. As mentioned in the commit message I think the ranges::next implementation is O(n) only if the range is sized wit

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #5 from ak at gcc dot gnu.org --- Peter, can you construct a test case that demonstrates the problem?

[Bug c/112716] LTO optimization with struct with variable size

2024-10-29 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112716 --- Comment #14 from uecker at gcc dot gnu.org --- (In reply to Richard Biener from comment #13) > (In reply to uecker from comment #11) > > I asked the C FE and it wants to get this fixed. > > That was a funny comment? Yes sorry. > > But yes,

[Bug middle-end/117342] .base64 emitted when gas doesn't support it

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

[Bug tree-optimization/117333] [13/14/15 regression] ICE on structure copy with flexible array member

2024-10-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117333 Richard Biener changed: What|Removed |Added Last reconfirmed||2024-10-29 Assignee|unassign

[Bug c/117343] New: valgrind error in vect_optimize_slp_pass::decide_masked_load_lanes

2024-10-29 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117343 Bug ID: 117343 Summary: valgrind error in vect_optimize_slp_pass::decide_masked_load_lanes Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c/117334] structure copy with flexible array member (2)

2024-10-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117334 --- Comment #1 from Richard Biener --- I think it's a GCC extension that we accept const struct s gs = { 3, -4, "abcdef" }; C17 6.7.2.1/21 shows an example where such initialization is invalid as 'struct s' should be treated as if the 'ac' mem

[Bug c++/117336] [14/15 Regression] ICE on lambda in requires expression

2024-10-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117336 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug testsuite/117335] [15 regression] New test case gfortran.dg/pr115070.f90 from r15-4702-ged8ca972f88578 fails

2024-10-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117335 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug target/117344] New: Suboptimal use of movprfx in SVE intrinsics code

2024-10-29 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117344 Bug ID: 117344 Summary: Suboptimal use of movprfx in SVE intrinsics code Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: aarch64-sve, missed-optimization Severi

[Bug tree-optimization/117343] valgrind error in vect_optimize_slp_pass::decide_masked_load_lanes

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117343 --- Comment #3 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:cc79e9866ba33dea0256078f4557d92d80d9 commit r15-4738-gcc79e9866ba33dea0256078f4557d92d80d9 Author: Richard Biener Date:

[Bug ipa/112601] [12/13/14/15 Regression] ICE in cgraph_node::verify_node(): error: invalid calls_comdat_local flag

2024-10-29 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112601 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org --- Com

[Bug c++/61379] __attribute__((noreturn)) ignored on pure virtual member functions

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61379 --- Comment #5 from Jakub Jelinek --- Yes.

[Bug c++/61379] __attribute__((noreturn)) ignored on pure virtual member functions

2024-10-29 Thread k4lizen at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61379 --- Comment #4 from k4lizen at proton dot me --- re: jakub Does what you're saying also apply to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117337 ?

[Bug ipa/112601] [12/13/14/15 Regression] ICE in cgraph_node::verify_node(): error: invalid calls_comdat_local flag

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

[Bug tree-optimization/117343] valgrind error in vect_optimize_slp_pass::decide_masked_load_lanes

2024-10-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117343 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/61379] __attribute__((noreturn)) ignored on pure virtual member functions

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

[Bug c++/117317] [12/13/14/15 Regression] ICE on call to virtual constexpr function via comparison operator in CRTP with multiple inheritance with template since r12-4202-g09d886e671f223

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117317 --- Comment #5 from Jakub Jelinek --- Slightly cleaned up: struct C { constexpr bool operator== (const C &b) const { return foo (); } constexpr virtual bool foo () const = 0; }; class A : public C {}; class B : public C {}; template struct

[Bug libstdc++/112349] ranges::min/max make unnecessary copies

2024-10-29 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112349 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org S

[Bug libstdc++/112641] : `drop_view::begin const` has O(n) complexity

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112641 --- Comment #2 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:7f622ee83fbbcf4a4ca70e020db8a0ce4b556b61 commit r15-4740-g7f622ee83fbbcf4a4ca70e020db8a0ce4b556b61 Author: Patrick Palka Date: T

[Bug libstdc++/112641] : `drop_view::begin const` has O(n) complexity

2024-10-29 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112641 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c/117030] [C2y] Implement N3367, More Modern Bit Utilities

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117030 --- Comment #4 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:972f653cad2aedcfa901614566506c1c2e668766 commit r15-4729-g972f653cad2aedcfa901614566506c1c2e668766 Author: Jakub Jelinek Date: T

[Bug middle-end/117342] .base64 emitted when gas doesn't support it

2024-10-29 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117342 --- Comment #3 from David Binderman --- No mention of base64 in the config.log: working.2 $ grep base64 config.log working.2 $ What's a combined build ? My usual configure line is: CC="clang" CXX="clang++" \ ../trunk/configure --prefix=$HO

[Bug middle-end/117342] .base64 emitted when gas doesn't support it

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117342 --- Comment #5 from Jakub Jelinek --- Combined build is when you build gcc together with binutils (and often other modules like gmp, mpfr, libmpc, etc.) by unpacking those into the same tree. The toplevel configure indeed doesn't check for .base

[Bug c++/117317] [12/13/14/15 Regression] ICE on call to virtual constexpr function via comparison operator in CRTP with multiple inheritance with template since r12-4202-g09d886e671f223

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117317 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #6

[Bug target/116415] [12/13/14 Regression][PPC64LE] atomics wrongly use vector instructions in DWCAS.

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116415 --- Comment #13 from GCC Commits --- The releases/gcc-12 branch has been updated by Peter Bergner : https://gcc.gnu.org/g:eeb72f26ea7e70baadf2e3b9e89e8f7055fec0a9 commit r12-10790-geeb72f26ea7e70baadf2e3b9e89e8f7055fec0a9 Author: Peter Bergner

[Bug target/116415] [12/13/14 Regression][PPC64LE] atomics wrongly use vector instructions in DWCAS.

2024-10-29 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116415 Peter Bergner changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c/112716] LTO optimization with struct with variable size

2024-10-29 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112716 --- Comment #16 from uecker at gcc dot gnu.org --- (In reply to Richard Biener from comment #15) > (In reply to uecker from comment #14) > > (In reply to Richard Biener from comment #13) > > > (In reply to uecker from comment #11) > > > > > >

[Bug c++/61379] __attribute__((noreturn)) ignored on pure virtual member functions

2024-10-29 Thread k4lizen at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61379 --- Comment #6 from k4lizen at proton dot me --- I understand what you're saying but I'm hoping that there would be *some* solution for annotating such functions as noreturn. It's highly counterintuitive that even after marking all definitions and

[Bug target/117349] New: aarch64_gen_ccmp_next, aarch64_gen_ccmp_first contains extra casts which can be removed

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117349 Bug ID: 117349 Summary: aarch64_gen_ccmp_next, aarch64_gen_ccmp_first contains extra casts which can be removed Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/117349] aarch64_gen_ccmp_next, aarch64_gen_ccmp_first contains extra casts which can be removed

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117349 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-10-29 Ever confirmed|0

[Bug tree-optimization/106073] [12/13/14/15 Regression] wrong code at -O3 on x86_64-linux-gnu since r12-3903-g0288527f47cec669

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106073 --- Comment #12 from Sam James --- Ah, thanks. Let's add the testcase too, if no objection? The topic is a prickly one and PR90348 was somewhat worked around.

[Bug middle-end/117342] .base64 emitted when gas doesn't support it

2024-10-29 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117342 --- Comment #11 from David Binderman --- (In reply to Andreas Schwab from comment #10) > Can you provide an example of the evidence? Sure. For this C++ source code: void s61() { static char extra_special_characters[] = "\n\t\b\r\f\\\'"; } com

[Bug target/117349] aarch64_gen_ccmp_next, aarch64_gen_ccmp_first contains extra casts which can be removed

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117349 --- Comment #2 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:9dd9a88b75334bc079b8ab5fb2dbb5d56765bd60 commit r15-4754-g9dd9a88b75334bc079b8ab5fb2dbb5d56765bd60 Author: Andrew Pinski Date: Tu

[Bug tree-optimization/114785] special handling of COND_EXPR in gimple_extract can be removed

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114785 --- Comment #4 from Andrew Pinski --- (In reply to Richard Biener from comment #3) > Note there's still code in tree-vect-patterns.cc creating those and code in > tree-vect-stmts.cc might use gimple_extract on them. Now we assert this won't hap

[Bug target/117007] Poor optimization for small vector constants needed for vector shift/rotate/mask generation

2024-10-29 Thread munroesj at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117007 --- Comment #10 from Steven Munroe --- (In reply to Segher Boessenkool from comment #7) > It is always more and slower code. Yes. More examples: vui64_t test_sld_52_v1 (vui64_t vra) { vui32_t shft = vec_splat_u32(52-64); return vec_vsld (

[Bug target/117344] Suboptimal use of movprfx in SVE intrinsics code due to hard register for return register or argument passing

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117344 --- Comment #2 from Andrew Pinski --- The way cond_addvnx4si_2 is written currently is: ;; Predicated integer operations, merging with the first input. (define_insn "*cond__2" [(set (match_operand:SVE_I 0 "register_operand") (unspec:SV

[Bug tree-optimization/116949] walk_stmt_load_store_addr_ops has extra code to handle comparisons in there

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

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread brad.moody at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117327 --- Comment #11 from Brad Moody --- Thank you for the quick turnaround!

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #15 from H. Peter Anvin --- Odd. When I added a read flag intrinsic to my test case, it prevented the red zone from being used. If it clobbers the redzone, then that's obviously a very serious problem.

[Bug other/116613] RFE: support outputting diagnostics in *multiple* formats

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116613 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org Severit

[Bug other/116613] RFE: support outputting diagnostics in *multiple* formats

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116613 Sam James changed: What|Removed |Added Target Milestone|--- |15.0

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 ak at gcc dot gnu.org changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug c/117311] Documentation request: __builtin_frame_address(0) and inline assembly

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117311 --- Comment #4 from H. Peter Anvin --- Again, any recommendations for a construct (current or future) that *can* be relied upon?

[Bug target/117349] aarch64_gen_ccmp_next, aarch64_gen_ccmp_first contains extra casts which can be removed

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117349 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Status|ASSIGNED

[Bug c++/117351] New: ICE while reporting invalid template error

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117351 Bug ID: 117351 Summary: ICE while reporting invalid template error Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #3 from ak at gcc dot gnu.org --- Reduced test case for an Intel platform: gu.cc: template class tuple; template struct tuple<_T1, _T2> { tuple(_T1, _T2); }; struct __uniq_ptr_impl { __uniq_ptr_impl(int __p, int) : _M_t(__p, in

[Bug middle-end/117352] switch bit test conversion makes comparison code worse

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117352 --- Comment #2 from Andrew Pinski --- But note not all targets support all comparisons with ccmp (though I think for integer both x86_64 and aarch64 supports all, it is float comparisons where TARGET_GEN_CCMP_FIRST/TARGET_GEN_CCMP_NEXT can fail)

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #18 from GCC Commits --- The trunk branch has been updated by Andi Kleen : https://gcc.gnu.org/g:3d06e9c3e07e13eab715e19dafbcfc1a0b7e43d6 commit r15-4758-g3d06e9c3e07e13eab715e19dafbcfc1a0b7e43d6 Author: Andi Kleen Date: Fri Oct

[Bug middle-end/117329] -Wnull-dereference error indicator in the wrong place.

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117329 --- Comment #5 from Andrew Pinski --- (In reply to Oskars Putans from comment #4) > (In reply to Andrew Pinski from comment #1) > > I can't reproduce the warning for Wnull-dereference but I do get a warning > > for -O2 -Warray-bounds that has t

[Bug middle-end/117329] -Wnull-dereference error indicator in the wrong place.

2024-10-29 Thread o.putaans at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117329 --- Comment #4 from Oskars Putans --- (In reply to Andrew Pinski from comment #1) > I can't reproduce the warning for Wnull-dereference but I do get a warning > for -O2 -Warray-bounds that has the same line as what you reported. Oh no.. It see

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #8 from Andrew Pinski --- Created attachment 59495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59495&action=edit C/C++ code

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #9 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > (In reply to Andrew Pinski from comment #6) > > Most likely r15-4414-g51b85dfeb19652 > > Or r15-4396-g72ae35bbc90fea . 100% this one. Tested the revision befor

[Bug c++/116607] ICE: tree check: expected tree_list, have integer_cst in has_active_contract_condition, at cp/contracts.cc:1505 with no_sanitize attribute and -fcontracts option

2024-10-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116607 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org Assign

[Bug target/117344] Suboptimal use of movprfx in SVE intrinsics code

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117344 Andrew Pinski changed: What|Removed |Added Keywords||ra Ever confirmed|0

[Bug fortran/117347] Associate with derived type array constructor

2024-10-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117347 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid Last reconfi

[Bug target/117346] ccmp does not go through canonicalize_comparison

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117346 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Resolution|---

[Bug target/117353] [15 regression] RISC-V: ICE when building libcrypt since r15-3228-g771256bcb9ddc4

2024-10-29 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 --- Comment #2 from Vineet Gupta --- For other benign instances of the pattern lshrv8qi3, typically it goes through a splitter in autovec.md which converts it into the canonical RVV form with all the VL info. (define_insn_and_split "3" [(set

[Bug target/117353] New: RISC-V: ICE when building libcrypt

2024-10-29 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 Bug ID: 117353 Summary: RISC-V: ICE when building libcrypt Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug tree-optimization/85605] Potentially missing optimization under x64 and ARM: seemingly unnecessary branch in codegen

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85605 Bug 85605 depends on bug 117346, which changed state. Bug 117346 Summary: ccmp does not go through canonicalize_comparison https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117346 What|Removed |Added

[Bug target/117353] RISC-V: ICE when building libcrypt

2024-10-29 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353 Vineet Gupta changed: What|Removed |Added CC||ewlu at rivosinc dot com,

[Bug middle-end/117329] -Wnull-dereference error indicator in the wrong place.

2024-10-29 Thread o.putaans at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117329 --- Comment #6 from Oskars Putans --- (In reply to Andrew Pinski from comment #5) > That is ok because the underlying issue is the same though. Only the line > info for the `var = a;` assignment is there. Could I get confirmation of Wnull-deref

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #12 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #11) > (In reply to H. Peter Anvin from comment #9) > > So this sounds like it would solve additional problems, which may very well > > make it worthwhile. > > How about

[Bug rtl-optimization/117354] New: [14] ICE: in extract_bit_field_1, at expmed.cc:1838

2024-10-29 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 Bug ID: 117354 Summary: [14] ICE: in extract_bit_field_1, at expmed.cc:1838 Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug rtl-optimization/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #2 from Sam James --- Oh, nevermind.

[Bug middle-end/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #4 from Sam James --- _BitInt(512) x; void baz (void *p) { __builtin_memcpy (p, &x, sizeof x); } _BitInt(512) qux (void *p) { _BitInt(512) y = x + 1; __builtin_memcpy (p, &y, sizeof y); return x; } int main() { void *ptr

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #6 from Andrew Pinski --- Most likely r15-4414-g51b85dfeb19652

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > Most likely r15-4414-g51b85dfeb19652 Or r15-4396-g72ae35bbc90fea .

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #5 from Andrew Pinski --- It worked in July (20240727).

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
. gcc/ PR rtl-optimization/117327 * reorg.cc (find_end_label): Do not return a dangling label at the end of the function and adjust commentary. gcc/testsuite/ * gcc.c-torture/execute/20241029-1.c: New test.

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 Uroš Bizjak changed: What|Removed |Added CC||hjl.tools at gmail dot com,

[Bug rtl-optimization/117327] delay slot scheduling miscompiles function containing __builtin_unreachable

2024-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117327 Eric Botcazou changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 ak at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #11 from Uroš Bizjak --- (In reply to H. Peter Anvin from comment #9) > So this sounds like it would solve additional problems, which may very well > make it worthwhile. How about a guarantee that the first word of the redzone won't

[Bug middle-end/117352] New: switch bit test conversion makes comparison code worse

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117352 Bug ID: 117352 Summary: switch bit test conversion makes comparison code worse Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug middle-end/117352] [15 Regression] switch bit test conversion makes comparison code worse on aarch64 and x86_64 with APX due to not generating ccmp

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117352 Andrew Pinski changed: What|Removed |Added Summary|switch bit test conversion |[15 Regression] switch bit

[Bug middle-end/117352] switch bit test conversion makes comparison code worse

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117352 Andrew Pinski changed: What|Removed |Added Target||aarch64 x86_64 Ever confirmed|0

[Bug middle-end/117091] switch clustering takes extensive time with large switches even at -O0

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117091 --- Comment #17 from GCC Commits --- The trunk branch has been updated by Andi Kleen : https://gcc.gnu.org/g:a4e2b13888267f2581ac03f076aa0d32cd045adb commit r15-4757-ga4e2b13888267f2581ac03f076aa0d32cd045adb Author: Andi Kleen Date: Wed Oct

[Bug tree-optimization/85605] Potentially missing optimization under x64 and ARM: seemingly unnecessary branch in codegen

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85605 --- Comment #8 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3d8cd34a450e9ffe2b2ac8a0c8eb33fd5d613483 commit r15-4759-g3d8cd34a450e9ffe2b2ac8a0c8eb33fd5d613483 Author: Andrew Pinski Date: Tue

[Bug target/117346] ccmp does not go through canonicalize_comparison

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117346 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3d8cd34a450e9ffe2b2ac8a0c8eb33fd5d613483 commit r15-4759-g3d8cd34a450e9ffe2b2ac8a0c8eb33fd5d613483 Author: Andrew Pinski Date: Tu

[Bug middle-end/117355] [15 regression] firebird miscompiled

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #2 from Sam James --- It's fine in C...

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #4 from Sam James --- Created attachment 59494 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59494&action=edit larger.cxx Attached the larger original function without branches pruned. I'll bisect.

[Bug middle-end/117355] [15 regression] firebird miscompiled

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #3 from Sam James --- --- a/foo.cxx.034t.early_objsz +++ b/foo.cxx.034t.early_objsz @@ -19,14 +19,14 @@ char * strncpy (char * restrict __dest, const char * restrict __src, size_t __le -;; Function gen_blr (_ZL7gen_blrPKc, funcdef

[Bug middle-end/117355] [15 regression] firebird miscompiled

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #13 from H. Peter Anvin --- Yes, you have to be able to "reserve" (clobber) the entire redzone (128 bytes).

[Bug middle-end/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #5 from Sam James --- asan isn't needed.

[Bug middle-end/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #6 from Andrew Pinski --- Created attachment 59492 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59492&action=edit Reduced testcase ` -O2 -mavx512f -fsanitize=address` is enough to reproduce the issue.

[Bug middle-end/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt and asan

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Ever confirmed|0

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-29 Thread hpa at zytor dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #14 from H. Peter Anvin --- I am assuming the cases Uroš are talking about are constrained by a separate software convention.

[Bug middle-end/117354] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt (and asan in some cases)

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #8 from Andrew Pinski --- Created attachment 59493 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59493&action=edit fails with ` -O2 -mavx2 -fsanitize=address`

[Bug rtl-optimization/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #3 from Sam James --- Reproduced on trunk and tip of releases/gcc-14 with: ``` $ gcc /tmp/a.c -O2 -march=znver4 -fwhole-program -fsanitize=address during RTL pass: expand example.c:29:3: internal compiler error: in extract_bit_field_

[Bug rtl-optimization/117354] [14] ICE: in extract_bit_field_1, at expmed.cc:1838

2024-10-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #1 fr

[Bug other/116613] RFE: support outputting diagnostics in *multiple* formats

2024-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116613 --- Comment #35 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:0b73e9382ab51c00a79b2a6f8abbcd31d87f6814 commit r15-4760-g0b73e9382ab51c00a79b2a6f8abbcd31d87f6814 Author: David Malcolm Date:

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread ak at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #5 from ak at gcc dot gnu.org --- Also the ICE had a truncated backtrace. Checking it in gdb gives the full one. The bad mangling happens while autofdo is reading the string table of the afdo file, and trying to generate the asm name

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|2024-10-29 00:00:0

[Bug bootstrap/117350] ICE in pretty print during bootstrap

2024-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117350 --- Comment #7 from Andrew Pinski --- Also when was the last time was this known to work?

  1   2   >