[Bug target/120840] CPython miscompiled with preserve_none

2025-06-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120840 H.J. Lu changed: What|Removed |Added Target Milestone|--- |16.0

[Bug target/120840] CPython miscompiled with preserve_none

2025-06-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120840 H.J. Lu changed: What|Removed |Added Assignee|hjl.tools at gmail dot com |unassigned at gcc dot gnu.org

[Bug target/120840] CPython miscompiled with preserve_none

2025-06-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120840 --- Comment #6 from Sam James --- I'll look. --- Comment #7 from Sam James --- It starts with r16-1551-g2c30f828e45078 with your patch on top. I did the bisection without SSP as the default (vanilla). When playing with the result on my usual

[Bug target/120840] CPython miscompiled with preserve_none

2025-06-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120840 --- Comment #5 from H.J. Lu --- I backported the patch to GCC 15 branch, which works. Sam, is it possible to identify which commit on master caused the miscompilation?

[Bug target/120840] CPython miscompiled with preserve_none

2025-06-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120840 H.J. Lu changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/120840] CPython miscompiled with preserve_none

2025-06-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120840 --- Comment #3 from Sam James --- (In reply to Ken Jin from comment #2) > @Sam James > > Passing CFLAGS="-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" to the > configure fixes the crash for me, does it do the same for you? If so this is

[Bug target/120840] CPython miscompiled with preserve_none

2025-06-26 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120840 --- Comment #2 from Ken Jin --- @Sam James Passing CFLAGS="-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" to the configure fixes the crash for me, does it do the same for you? If so this is probably a pretty big hint.

[Bug target/120840] CPython miscompiled with preserve_none

2025-06-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120840 --- Comment #1 from Sam James --- Just ftr: with ./configure --with-tail-call-interp CFLAGS="-O2 -fno-stack-protector" (to override my own defaults), it still fails with a corrupt stack.