[Bug tree-optimization/119085] [13/14/15/16 regression] tree-sra generates wrong code for unions containing structs with holes (Emacs crashes with -O3) since r10-6321-g636e80eea24b78

2025-07-18 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119085 Sam James changed: What|Removed |Added Target Milestone|12.5|13.5 Summary|[12/13/14/15 regres

[Bug tree-optimization/119085] [12/13/14/15 regression] tree-sra generates wrong code for unions containing structs with holes (Emacs crashes with -O3) since r10-6321-g636e80eea24b78

2025-07-18 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119085 Sam James changed: What|Removed |Added Resolution|DUPLICATE |--- See Also|

[Bug tree-optimization/117423] [13/14/15/16 Regression] union not written to with particular layout since r10-6321-g636e80eea24b78

2025-07-18 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117423 --- Comment #25 from Sam James --- The testcases in this bug work now, but PR119085 still fails. I'll reopen it.

[Bug libgcc/121149] [16 Regression] build broken for bpf in libgcc

2025-07-18 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121149 --- Comment #2 from Sam James --- Are you explicitly passing a flag to enable it? Please share your configure line.

[Bug c++/121147] ../.././gcc/c/c-decl.cc:6192:21: error: ‘ENABLE_OFFLOADING’ was not declared in this scope

2025-07-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121147 --- Comment #1 from Sam James --- What platform is this?

[Bug tree-optimization/121144] wrong code generated with -fPIC -O3

2025-07-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121144 Sam James changed: What|Removed |Added Keywords||wrong-code --- Comment #1 from Sam James -

[Bug libstdc++/97949] Recursive calls of std::call_once together with cout leads to deadlock under mingw64

2025-07-17 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97949 --- Comment #10 from Sam James --- (In reply to fiesh from comment #9) https://gcc.gnu.org/bugzilla/userprefs.cgi "After changing a bug"

[Bug tree-optimization/121138] [16 Regression] missed optimization in the loop caused by r16-303-g1a13684dfc7286

2025-07-16 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121138 Sam James changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/121126] [16 Regression] RISC-V: Miscompile at -O[23] since r16-2159-g3bf2aa834e1

2025-07-16 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121126 Sam James changed: What|Removed |Added Target Milestone|--- |16.0 Keywords|

[Bug tree-optimization/121115] [15/16 regression] GCC 15+ miscompiles Julia programming language

2025-07-16 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121115 Sam James changed: What|Removed |Added Keywords||needs-source --- Comment #2 from Sam James

[Bug tree-optimization/121115] [15/16 regression] GCC 15+ miscompiles Julia programming language

2025-07-16 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121115 Sam James changed: What|Removed |Added Keywords||wrong-code See Also|

[Bug debug/121045] [16 Regression] FAIL: g++.dg/torture/pr58552.C caused by r16-2197-g385d9937f0e23c

2025-07-16 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121045 --- Comment #5 from Sam James --- https://inbox.sourceware.org/gcc-patches/ahjqdpdjavw6h...@kam.mff.cuni.cz/

[Bug c/121110] Issue about alias function call under high level optimization

2025-07-16 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121110 --- Comment #2 from Sam James --- There are several requirements on IFUNC resolvers. I wouldn't be surprised at all if it can't work with alias.

[Bug target/119430] profiledbootstrap fails on armv7a-unknown-linux-gnueabhif (crashes in elists__append_elmt during stagefeedback)

2025-07-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119430 --- Comment #21 from Sam James --- Indeed works too.

[Bug rtl-optimization/117922] [15/16/16 Regression] fold-mem-offsets pass is slow and memory hungry because UD/UD chain usage and the RD df problem

2025-07-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117922 Sam James changed: What|Removed |Added Keywords|deferred|patch --- Comment #27 from Sam James --- T

[Bug tree-optimization/121049] [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4 since r16-1729-ga0af6fd825d533

2025-07-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049 Sam James changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/121049] [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4 since r16-1729-ga0af6fd825d533

2025-07-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049 Sam James changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug sanitizer/119356] [15 Regression] libsanitizer fails to build on riscv musl

2025-07-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119356 --- Comment #9 from Sam James --- Thanks Jeff! r16-1750-g5111ea055f5699 works on trunk.

[Bug tree-optimization/121059] [15/16 regression] ICE when building imagemagick-7.1.1-47 (vect_get_loop_mask, at tree-vect-loop.cc:10960) since r15-5383-g8f68d9cb7897df

2025-07-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121059 Sam James changed: What|Removed |Added CC||rdapp at gcc dot gnu.org Summary

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled since r16-1624-g6deab186535a5a

2025-07-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #9 from Sam James --- (In reply to Sam James from comment #8) FWIW, I've checked that this reproduces it in a Debian stable container too (i.e. there's nothing special that the stage1 gcc-trunk/g++-trunk that CC/CXX should point to

[Bug bootstrap/119430] profiledbootstrap fails on armv7a-unknown-linux-gnueabhif (crashes in elists__append_elmt during stagefeedback)

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119430 --- Comment #20 from Sam James --- You're a star, it works! I'll try it in the usual packaging environment next.

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #19 from Sam James --- (In reply to Sam James from comment #18) > (In reply to H.J. Lu from comment #17) > > Created attachment 61837 [details] > > A patch > > > > Please try this. No idea why it works for me. > > `./configure --w

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #18 from Sam James --- (In reply to H.J. Lu from comment #17) > Created attachment 61837 [details] > A patch > > Please try this. No idea why it works for me. `./configure --with-tail-call-interp CFLAGS="-O2 -march=znver2 -ggdb3"`

[Bug tree-optimization/121059] [16 regression] ICE when building imagemagick-7.1.1-47 (vect_get_loop_mask, at tree-vect-loop.cc:10960) since r16-2088-ge9079e4f43d135

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121059 Sam James changed: What|Removed |Added CC||rguenth at gcc dot gnu.org Keywor

[Bug tree-optimization/121059] [16 regression] ICE when building imagemagick-7.1.1-47 (vect_get_loop_mask, at tree-vect-loop.cc:10960)

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121059 --- Comment #3 from Sam James --- (In reply to Sam James from comment #2) > Created attachment 61857 [details] > reduced.i > > bisecting with char exists[256], frozen[256]; instead

[Bug tree-optimization/121059] [16 regression] ICE when building imagemagick-7.1.1-47 (vect_get_loop_mask, at tree-vect-loop.cc:10960)

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121059 --- Comment #2 from Sam James --- Created attachment 61857 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61857&action=edit reduced.i bisecting

[Bug tree-optimization/121059] [16 regression] ICE when building imagemagick-7.1.1-47 (vect_get_loop_mask, at tree-vect-loop.cc:10960)

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121059 --- Comment #1 from Sam James --- I'm reducing it.

[Bug tree-optimization/121059] New: [16 regression] ICE when building imagemagick-7.1.1-47 (vect_get_loop_mask, at tree-vect-loop.cc:10960)

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121059 Bug ID: 121059 Summary: [16 regression] ICE when building imagemagick-7.1.1-47 (vect_get_loop_mask, at tree-vect-loop.cc:10960) Product: gcc Version: 16.0 Status: UNCONF

[Bug tree-optimization/121049] [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4 since r16-2088-ge9079e4f43d135

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049 --- Comment #9 from Sam James --- Yes, I tried to go further but the compiler hangs with the needed param before that commit for a large part of the range.

[Bug ipa/120987] [13/14/15/16 regression] gdb build with lto triggers use after free since r12-5541-g2cadaa1f134bec

2025-07-13 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120987 --- Comment #23 from Sam James --- (In reply to Tom de Vries from comment #20) > Seems to be fixed by: I've regtested this and it was fine.

[Bug tree-optimization/121049] [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4 since r16-2088-ge9079e4f43d135

2025-07-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049 Sam James changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug tree-optimization/121049] [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4

2025-07-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049 --- Comment #2 from Sam James --- Created attachment 61850 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61850&action=edit localtime.c Reduced it a bit more.

[Bug tree-optimization/121049] [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4

2025-07-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049 --- Comment #1 from Sam James --- May have overreduced, sec.

[Bug tree-optimization/121049] [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4

2025-07-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049 Sam James changed: What|Removed |Added Keywords||wrong-code Target Milestone|---

[Bug tree-optimization/121049] New: [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4

2025-07-12 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049 Bug ID: 121049 Summary: [16 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4 Product: gcc Version: 16.0 Status: UNCONFIRMED Severi

[Bug gcov-profile/121045] [16 Regression] FAIL: g++.dg/torture/pr58552.C caused by r16-2196-g52d9c2272f6366

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121045 --- Comment #1 from Sam James --- You're sure it's not the other commit that rewrites discriminator handling?

[Bug tree-optimization/117423] [13/14/15/16 Regression] union not written to with particular layout since r10-6321-g636e80eea24b78

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117423 --- Comment #18 from Sam James --- (In reply to pipcet from comment #16) > I'm not sure it's really a duplicate of this one I wouldn't worry too much about if it's marked as a dupe or not. Whoever fixes this bug will likely add a testcase from

[Bug tree-optimization/117423] [13/14/15/16 Regression] union not written to with particular layout since r10-6321-g636e80eea24b78

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117423 --- Comment #17 from Sam James --- (In reply to Andrew Pinski from comment #15) > The odd thing is this has been an issue for the last 5 years now, did Emacs > code change recently to expose this issue? I think it is a combination of: * the str

[Bug tree-optimization/117423] [13/14/15/16 Regression] union not written to with particular layout since r10-6321-g636e80eea24b78

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117423 --- Comment #14 from Sam James --- (In reply to Sam James from comment #13) > (In reply to Andrew Pinski from comment #12) > > Also it is not obvious from the Emacs bug report it is exactly this bug. It > > could be another bug that is exposed b

[Bug tree-optimization/117423] [13/14/15/16 Regression] union not written to with particular layout since r10-6321-g636e80eea24b78

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117423 --- Comment #13 from Sam James --- (In reply to Andrew Pinski from comment #12) > Also it is not obvious from the Emacs bug report it is exactly this bug. It > could be another bug that is exposed by SRA https://gcc.gnu.org/bugzilla/show_bug.cg

[Bug fortran/121043] [15/16 Regression] Tests of OpenCoarray fail to pass, works on 14.3.1 20250701

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121043 Sam James changed: What|Removed |Added Keywords||needs-bisection, |

[Bug ipa/120987] [13/14/15/16 regression] gdb build with lto triggers use after free since r12-5541-g2cadaa1f134bec

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120987 Sam James changed: What|Removed |Added Summary|[14/15/16 regression] gdb |[13/14/15/16 regression]

[Bug middle-end/120987] [14/15/16 regression] gdb build with lto triggers use after free since r14-5831-gaae723d360ca26

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120987 Sam James changed: What|Removed |Added Keywords|needs-bisection | Status|UNCONFIRMED

[Bug middle-end/120987] [14/15/16 regression] gdb build with lto triggers use after free since r14-5831-gaae723d360ca26

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120987 Sam James changed: What|Removed |Added Keywords||needs-bisection --- Comment #18 from Sam Ja

[Bug tree-optimization/121036] bogus -Warray-bounds with cse-able conditions

2025-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121036 --- Comment #1 from Sam James --- With Qing's -fdiagnostics-details patch (not in trunk): ``` $ gcc a.c -O2 -Wall -Wextra -fdiagnostics-details -c a.c: In function ‘virt_to_phys’: a.c:79:84: warning: array subscript 4 is above array bounds of ‘c

[Bug bootstrap/119430] profiledbootstrap fails on armv7a-unknown-linux-gnueabhif (crashes in elists__append_elmt during stagefeedback)

2025-07-10 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119430 --- Comment #18 from Sam James --- (In reply to Alexandre Oliva from comment #17) > FWIW, with the candidate fix, and > --with-specs='%{!mno-long-calls:-mlong-calls} > %{!fno-function-sections:-ffunction-sections}' TIL you can do that. > on to

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-10 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #16 from Sam James --- (In reply to H.J. Lu from comment #15) > also failed to build. -fprofile-generate isn't needed. Ugh. Not sure why I keep making mistakes on this one.

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled since r16-1624-g6deab186535a5a

2025-07-10 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #8 from Sam James --- (In reply to Pengfei Li from comment #7) > Hi Sam, sorry about the issue. I just followed your build steps (make > command revised) but didn't reproduce it. I also tried valgrind but it > exited with no error. I

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled since r16-1624-g6deab186535a5a

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 Sam James changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #5 from Sam James --- (In reply to Sam James from comment #0) > $ make -j$(nproc) -l$(nproc) This should read: $ make -j$(nproc) -l$(nproc) STAGE1_C{,XX}FLAGS="-O3 -march=znver2 -ggdb3"

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #4 from Sam James --- I'll bisect it now, I won't have a chance to try reduce until the weekend.

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #3 from Sam James --- (In reply to Sam James from comment #2) > Created attachment 61828 [details] > genrecog.ii.xz > > genrecog.o itself is miscompiled. $ g++ -std=c++14 -c -ggdb3 -o build/genrecog.o /tmp/genrecog.ii -O2 -fno-vect

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #2 from Sam James --- Created attachment 61828 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61828&action=edit genrecog.ii.xz genrecog.o itself is miscompiled.

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 Sam James changed: What|Removed |Added Component|c |tree-optimization Target Milestone|---

[Bug c/121020] New: [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 Bug ID: 121020 Summary: [16 regression] genrecog miscompiled Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: build, wrong-code Severity: normal Priori

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #14 from Sam James --- (In reply to Sam James from comment #13) > It looks like the last commit this machine built python3.14t at was > r16-1594-gb03e0d69b37f6e which predates preserve_none being added > (r16-1692-g9804b23198b39f). >

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #13 from Sam James --- It looks like the last commit this machine built python3.14t at was r16-1594-gb03e0d69b37f6e which predates preserve_none being added (r16-1692-g9804b23198b39f). We had a similar problem in PR120840.

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #11 from Sam James --- Without -fprofile-generate: │ 0001ed00 <_Py_Check_ArgsIterable>: │ _Py_Check_ArgsIterable(): │ mov0x18(%rdx),%rax │ cmpq $0x0,0xe8(%rax) │ je 1ed20 <_Py_Check_ArgsIterable+0x20>

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #10 from Sam James --- Created attachment 61824 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61824&action=edit ceval.i.xz ceval.o is broken. ``` $ gcc -c -fno-strict-overflow -O2 -mavx -mtune=znver2 -std=c11 -fvisibility=hi

[Bug target/121015] [16 regression] ICE when building blender

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 --- Comment #2 from Sam James --- This fails with just -O2: ``` union { int i; float f; } int_as_float_u; int render_result_from_bake_w, render_result_from_bake_h_seed_pass; float *render_result_from_bake_h_primitive, *render_result_from_ba

[Bug target/121015] [16 regression] ICE when building blender

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 Sam James changed: What|Removed |Added CC||hjl.tools at gmail dot com Target Milesto

[Bug target/121015] [16 regression] ICE when building blender

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 --- Comment #1 from Sam James --- I'm reducing it now.

[Bug target/121015] New: [16 regression] ICE when building blender

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 Bug ID: 121015 Summary: [16 regression] ICE when building blender Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal P

[Bug target/117468] [12/13/14/15/16 Regression] arm thumb1 high reg restoration trashes register reserved with -ffixed-reg

2025-07-08 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117468 --- Comment #2 from Sam James --- (In reply to Matt Parks from comment #1) > gcc-patches e-mail with changelog/test case/patch posted here but no > replies: https://gcc.gnu.org/pipermail/gcc-patches/2025-June/687629.html Just reply to it with "

[Bug tree-optimization/120929] [16 Regression] file-5.45 triggers _FORTIFY_SOURCE false positives since r16-1905-g7165ca43caf470

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

[Bug tree-optimization/120358] [15/16 regression] qtbase-6.9.0 miscompiled since r15-580-gf3e5f4c58591f5

2025-07-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358 Sam James changed: What|Removed |Added Attachment #61749|0 |1 is obsolete|

[Bug libstdc++/60662] simple use of call_once throws a system_error exception, but not if sleep_for is called beforehand

2025-07-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60662 --- Comment #8 from Sam James --- (In reply to Antoine Pitrou from comment #7) For cases like this, a new bug is best, as it's not always the exact same issue, and in any case is harder to miss in a new bug.

[Bug lto/120987] [14/15/16 regression] gdb build with lto triggers use after free since r14-5831-gaae723d360ca26

2025-07-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120987 Sam James changed: What|Removed |Added CC||jamborm at gcc dot gnu.org See Al

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2025-07-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 120984, which changed state. Bug 120984 Summary: [16 Regression] Bunch of 'insufficient space for an object of type...' errors during ubsan bootstrap https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120984 What

[Bug sanitizer/120984] [16 Regression] Bunch of 'insufficient space for an object of type...' errors during ubsan bootstrap

2025-07-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120984 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/120929] [16 Regression] file-5.45 triggers _FORTIFY_SOURCE false positives since r16-1905-g7165ca43caf470

2025-07-07 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120929 Sam James changed: What|Removed |Added CC||pheeck at gcc dot gnu.org --- Comment #22 f

[Bug tree-optimization/109934] [14 Regression] Wrong code at -O3 on x86_64-linux-gnu

2025-07-06 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109934 --- Comment #9 from Sam James --- (In reply to Fangrui Song from comment #8) > I am curious when the regression started to happen. I think it's probably the same as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117100#c1 (it got broken by a back

[Bug target/118891] [14/15/16 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-07-05 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 --- Comment #26 from Sam James --- *** Bug 120965 has been marked as a duplicate of this bug. ***

[Bug target/120965] gcc 14.3 aarch64 be failed with pr78542.c

2025-07-05 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120965 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/120964] aarch64 be failed with pr78542.c

2025-07-05 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120964 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/118891] [14/15/16 regression] gcc 14 fails to build from source on aarch64_be: "error: ‘dynamic_cast’ not permitted with ‘-fno-rtti’"

2025-07-05 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118891 Sam James changed: What|Removed |Added CC||hanwei62 at huawei dot com --- Comment #25

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-05 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 Sam James changed: What|Removed |Added Target Milestone|--- |16.0 Keywords|

[Bug tree-optimization/120954] [15/16 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954 --- Comment #5 from Sam James --- (In reply to Franz Sirl from comment #0) > This small code snippet warns with r15-9921 (r15-9866 was still OK): > I can't seem to reproduce it at r15-9873, nor r15-9921. Can you double-check please? (Or, bette

[Bug c++/120954] [15 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954 --- Comment #3 from Sam James --- 15.1: https://godbolt.org/z/3bM5bEY7b 14.3: https://godbolt.org/z/fahjWYEfr 13.4: https://godbolt.org/z/KK3bh5Gz4 12.4: https://godbolt.org/z/fM3c913qh However, when compiling it as C++, I only see it on trunk

[Bug c++/120954] [15 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954 --- Comment #2 from Sam James --- (In reply to Franz Sirl from comment #0) > This small code snippet warns with r15-9921 (r15-9866 was still OK): > r15-9873-g06a26f4d643a5d warns for me. ``` $ git shortlog r15-9866-g8d600e98004b63..r15-9873-g

[Bug c++/120954] [15 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120954 --- Comment #1 from Sam James --- (In reply to Franz Sirl from comment #0) > But this time I'm not very confident about that. Compiling this a C code > doesn't warn. It does for me, and it warns before Jakub's change.

[Bug libstdc++/120949] [16 regression] rejected with clang-20.1.7

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949 --- Comment #3 from Sam James --- Not sure if missing something but I see a bunch of the changes in that commit do it right (?) (as mentioned in the commit message), just some don't follow that pattern.

[Bug libstdc++/120949] [16 regression] rejected with clang-20.1.7

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949 --- Comment #2 from Sam James --- Created attachment 61798 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61798&action=edit readable.ii.xz

[Bug libstdc++/120949] [16 regression] rejected with clang-20.1.7

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949 Sam James changed: What|Removed |Added CC||redi at gcc dot gnu.org Target Milestone|

[Bug libstdc++/120949] New: [16 regression] rejected with clang-20.1.7

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120949 Bug ID: 120949 Summary: [16 regression] rejected with clang-20.1.7 Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Pri

[Bug tree-optimization/120358] [15/16 regression] qtbase-6.9.0 miscompiled since r15-580-gf3e5f4c58591f5

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358 --- Comment #26 from Sam James --- I'm going to try clean it up with my poor C++, as I can't follow it at all right now.

[Bug tree-optimization/120358] [15/16 regression] qtbase-6.9.0 miscompiled since r15-580-gf3e5f4c58591f5

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358 --- Comment #24 from Sam James --- (In reply to Sam James from comment #11) > Created attachment 61749 [details] > small.cxx OK, on this, with a small adjustment to change the two ""s as args to char* str1, str2: --- a/small.cxx.057t.local-fns

[Bug tree-optimization/120358] [15/16 regression] qtbase-6.9.0 miscompiled since r15-580-gf3e5f4c58591f5

2025-07-04 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358 --- Comment #25 from Sam James --- (In reply to Sam James from comment #24) > @@ -1882,7 +1881,6 @@ IPA function summary for void ar::bc::operator++() > [with aq = QStringView]/7 >calls: Adding __attribute__((noipa)) on that template works.

[Bug debug/120938] discriminators are not useful in statements doing multiple calls

2025-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120938 Sam James changed: What|Removed |Added Resolution|INVALID |MOVED See Also|

[Bug tree-optimization/120929] [16 Regression] file-5.45 triggers _FORTIFY_SOURCE false positives since r16-1905-g7165ca43caf470

2025-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120929 --- Comment #15 from Sam James --- (In reply to qinzhao from comment #14) > (In reply to Siddhesh Poyarekar from comment #13) > > Here's a super-minimal test case: > > > thanks for the smaller testing case, it has the same behavior as the one >

[Bug tree-optimization/120929] [16 Regression] file-5.45 triggers _FORTIFY_SOURCE false positives since r16-1905-g7165ca43caf470

2025-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120929 --- Comment #11 from Sam James --- Qing, is it the same glibc version in the arm64 environment vs the x86-64 one? I think it might be what Sergei said: > It still needs glibc, but if you would not be able to reproduce I'll > preprocess it as

[Bug c++/120940] [15/16 Regression] False positive -Wduplicated-branches warning

2025-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120940 Sam James changed: What|Removed |Added Summary|[15 Regression] False |[15/16 Regression] False

[Bug tree-optimization/120780] Missed __builtin_dynamic_object_size optimization(?)

2025-07-03 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120780 --- Comment #21 from Sam James --- (In reply to Siddhesh Poyarekar from comment #20) > I'll backport to the gcc-15 branch after it marinates on trunk for a day or > so, allowing various CIs to test it. I don't know for certain, but you may need

[Bug target/48868] There are no -mtls-dialect=gnu2 run-time tests

2025-07-02 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48868 --- Comment #4 from Sam James --- (In reply to Sam James from comment #3) > Should we copy gcc.target/i386/math-torture for a new > gcc.target/i386/tls-torture, and move testcases referencing __thread from > gcc.target/i386 inside? There are sev

[Bug target/48868] There are no -mtls-dialect=gnu2 run-time tests

2025-07-02 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48868 --- Comment #3 from Sam James --- dg-torture as suggested in https://inbox.sourceware.org/gcc-patches/CAFiYyc2s-nBPwON-zLqprGUy_nNOZwHCq9LtK99M53=xk+j...@mail.gmail.com/ would help. Should we copy gcc.target/i386/math-torture for a new gcc.targe

[Bug target/38749] native and core2 differ on core2 hardware

2025-07-02 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38749 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/120936] [12/13/14/15/16 Regression] x86_function_profiler emits an unused label by by r5-3767-gecc81e33123d7a

2025-07-02 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120936 Sam James changed: What|Removed |Added Target Milestone|--- |12.5 Keywords|

[Bug tree-optimization/120929] [16 Regression] file-5.45 triggers _FORTIFY_SOURCE false positives since r16-1905-g7165ca43caf470

2025-07-02 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120929 Sam James changed: What|Removed |Added Last reconfirmed||2025-07-03 Status|UNCONFIRMED

[Bug tree-optimization/120929] [16 Regression] file-5.45 triggers _FORTIFY_SOURCE false positives since r16-1905-g7165ca43caf470

2025-07-02 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120929 --- Comment #8 from Sam James --- (In reply to qinzhao from comment #5) > you mean during bootstrap gcc itself? (I didn't see such issue when > bootstrap gcc before committing my patches) It was only with certain options, not reduced which ones

[Bug gcov-profile/120881] [16 Regression] -pg may not call mount at function entry by r16-1550-g9244ea4bf55638

2025-07-02 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120881 --- Comment #27 from Sam James --- Thanks.

  1   2   3   4   5   6   7   8   9   10   >