[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #30 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:9050cbed34135c8472c2654c4dd6a8739d69b92e commit r16-1506-g9050cbed34135c8472c2654c4dd6a8739d69b92e Author: Jakub Jelinek Date:

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #29 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:2661d87d54ab7185e7115cbcfa47cb42565eb925 commit r16-1499-g2661d87d54ab7185e7115cbcfa47cb42565eb925 Author: Jakub Jelinek Date:

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 Sam James changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment #28 f

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 Sam James changed: What|Removed |Added CC||zhendong.su at inf dot ethz.ch --- Comment

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 Sam James changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #25 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:701a7cceba56217b466b5854d1e145bbf52679ac commit r16-1482-g701a7cceba56217b466b5854d1e145bbf52679ac Author: Jakub Jelinek Date:

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 Jonathan Wakely changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment #

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #23 from Sam James --- (In reply to Jakub Jelinek from comment #22) > Created attachment 61626 [details] > gcc16-pr120629.patch > > Untested fix. Thanks. This restores bootstrap for me and regtests fine (one "regression" in c761007

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

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

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #19 from Jakub Jelinek --- Note, we call in that function get_range_pos_neg first on _54 on the _55 = (sizetype) _54; statement (same block 11), that is the first ranger query during expansion of that function and already there it re

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #21 from Andrew Macleod --- In reply to Jakub Jelinek from comment #19) > Note, we call in that function get_range_pos_neg first on _54 > on the _55 = (sizetype) _54; statement (same block 11), that is the first > ranger query during

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #20 from Jakub Jelinek --- In all 3 cases the addition of the BB_RTL bbs looks like if we'd split one of the edges (in the first case the ENTRY->succs[0] edge, in the latter case the EDGE_FALSE_VALUE edge I think. So handling it in

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 Jakub Jelinek changed: What|Removed |Added CC||amacleod at redhat dot com --- Comment

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #15 from Jakub Jelinek --- Ok, managed to reproduce with ../configure 'CFLAGS= -O2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g' 'CXXFLAGS= -O2 -funwind-tables -fasynchronous-unwind-tab

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #16 from Jakub Jelinek --- Ok, self-contained testcase, this is miscompiled by stage1: // PR middle-end/120629 // { dg-do run } // { dg-options "-O2 -fprofile-generate -fno-exceptions -fno-rtti" } __attribute__((noipa, noreturn, col

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #18 from Jakub Jelinek --- With --param=ranger-debug=all I see 21 range_of_expr(_57) at stmt __builtin_memset (_60, 0, _57); 22 range_of_stmt (_57) at stmt _57 = _56 * 4; 23 ROS dependence fill

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #14 from Andreas Schwab --- It fails also with the generic target. https://build.opensuse.org/package/live_build_log/devel:gcc:next/gcc16/openSUSE_Tumbleweed/x86_64

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #13 from Jakub Jelinek --- Anyway, my main ws is Intel skylake-avx512, so can't easily do LTO -march=znver2 profiledbootstraps. So unless it is reproduceable with some other options (say -mavx512{bw,cd,dq} -mbmi2 -mlzcnt or somethin

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 --- Comment #12 from Jakub Jelinek --- (In reply to Andreas Schwab from comment #10) > 8154fc95f097a146f9c80edcaafb2baff73065b5 is the first bad commit > commit 8154fc95f097a146f9c80edcaafb2baff73065b5 > Author: Jakub Jelinek > Date: Tue Jun

[Bug middle-end/120629] [16 regression] profiledbootstrap with lto fails

2025-06-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629 Sam James changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #11 fr