Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-04-26 Thread Paul Gevers
Oops, link missing. On 26-04-2023 22:09, Paul Gevers wrote: We discussed this during the Release Team IRC meeting [1] [1] http://meetbot.debian.net/debian-release/2023/debian-release.2023-04-26-18.59.html Paul OpenPGP_signature Description: OpenPGP digital signature

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-04-26 Thread Paul Gevers
Control: severity -1 important Hi, We discussed this during the Release Team IRC meeting [1], and we decided that it's too late in the release cycle to fix this. We'll accept the de-facto baseline bump for bookworm and document the fact in the Release Notes. Having said that, without

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-04-03 Thread James Addison
Followup-For: Bug #973414 X-Debbugs-Cc: fierel...@gmail.com On Mon, 3 Apr 2023 23:07:35 +0200, Fierelier wrote: > * In terms of confusion: I think using the Rust i586 toolchain, and > building for i586 with Rust might be less confusing, because altering > the i686 definitions for rustc will make

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-04-03 Thread Fierelier OwO
* In terms of efficiency: I believe that if people are on the hunt for efficiency on CPUs at the top-end of x86, they shall use distros that target Pentium 4 explicitly. There are a few of them out there, now. Archlinux32 for example carries packages for i486, i686 and Pentium 4 where possible,

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-03-31 Thread James Addison
Package: rustc Followup-For: Bug #973414 X-Debbugs-Cc: fierel...@gmail.com Hi Fierelier - thanks for your previous comment, here's my reply, slightly later than I'd hoped: On Wed, 29 Mar 2023 00:10:52 +0200, Fierelier wrote: > - issue 1: i386, i486, i586, i686 are considered as Pentium 4 in

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-03-29 Thread James Addison
Package: rustc Followup-For: Bug #973414 X-Debbugs-Cc: debian-toolch...@lists.debian.org, martin-eric.rac...@iki.fi, fierel...@gmail.com Control: severity -1 serious Control: tags -1 patch A caution: there's a good chance I'm wasting everyone's time with this patch and much of the preceding

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-03-28 Thread James Addison
Package: rustc Followup-For: Bug #973414 X-Debbugs-Cc: fierel...@gmail.com After a few false starts, I've built libstd-rust-dev:i386 targeting i686 in the way I'd expected (and to clarify: the interpretation I'm using is to match Debian's baseline and a strict-ish reading of what P6 / i686 was

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-03-28 Thread Fierelier OwO
@jay - I hope this helps you: - issue 1: i386, i486, i586, i686 are considered as Pentium 4 in LLVM, which might be relevant if Rust is compiled with it: https://github.com/llvm/llvm-project/issues/61347 - issue 2: Rust considers i686 as Pentium 4, and i586 as Pentium:

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-03-27 Thread James Addison
Package: rustc Followup-For: Bug #973414 > Today I plan to rebuild rustc on Debian i386 with RUSTC_FLAGS (different to > RUSTFLAGS) configured for i686 during the build. That's inspired by a comment > here: https://github.com/rust-lang/rust/pull/31110#issuecomment-174327810 > > To implement

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-03-24 Thread James Addison
Package: rustc Followup-For: Bug #973414 > On Fri, 24 Mar 2023 14:23:18 +, James wrote: > > In particular, one area to look at: > > > > > > https://github.com/llvm/llvm-project/blob/llvmorg-14.0.6/clang/lib/Driver/ToolChains/Arch/X86.cpp#L25-L70 > > Line range correction: > > >

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-03-24 Thread James Addison
Followup-For: Bug #973414 On Fri, 24 Mar 2023 14:23:18 +, James wrote: > In particular, one area to look at: > > > https://github.com/llvm/llvm-project/blob/llvmorg-14.0.6/clang/lib/Driver/ToolChains/Arch/X86.cpp#L25-L70 Line range correction:

Bug#973414: rustc: produces non-baseline opcodes for compiler_builtins::int::udiv::__udivmoddi4 on i386

2023-03-24 Thread James Addison
Package: rustc Followup-For: Bug #973414 X-Debbugs-Cc: martin-eric.rac...@iki.fi, fierel...@gmail.com, s...@debian.org, ru...@packages.debian.org I've been trying to track down 'NOPL' opcodes in Debian's i386 bookworm archive and many of the affected cases appear Rust and/or LLVM-related. The