Bug#842956: llvm-3.9-dev: Please backport 279980 since rustc 1.12.1 needs it
infinity0 at debian.org
Thu Nov 3 17:04:00 UTC 2016
> rust.git$ git format-patch 4105790 # 4105790 and earlier are already applied to our LLVM
> In 1:3.9-4 you applied 0013, and this bug report is me asking you to apply
> 0011. However if these two don't make our rustc work, then the heavy-handed
> approach would be to apply all of the above patches. I've tested that these
> apply cleanly to our LLVM 1:3.9-4, but not yet built the thing.
TL;DR: we should probably apply 14-17. None of these are critical, but sound fairly important or helpful, and might save us from getting weird errors elsewhere.
The rest are "nice to have" but not essential if you want to keep the package as close to upstream as possible.
<eddyb> infinity0: 1, 2 are old optimizations never upstreamed
<eddyb> infinity0: 8-10 are optimization backports, with my 12 being the hack to squeeze out more optimizations [..]
<eddyb> 11 and 13 are correctness fixes as you've discovered
<eddyb> 14 is emscripten compat helpers AFAICT
<eddyb> 15 looks like a correctness fix - might only affect windows though, IIRC
<eddyb> 16 & 17 are debuginfo fixes
<eddyb> I don't know what 6 is for - maybe optional rustc --print feature?
<eddyb> you don't need 4 & 5
<eddyb> (or want, for that matter :P)
<eddyb> infinity0: only 1 is rust-specific AFAICT, everything else should be general-purpose
<infinity0> commit 1e3c7023b91c2e0b9d6643f05fd75c86c0507279 [patch 0003] seems like an optimisation [..]
I later confirmed that #6 is not necessary: https://github.com/rust-lang/llvm/pull/45#issuecomment-258202774
Let me know what you decide; I can prepare a debdiff of the whole series.
More information about the Pkg-llvm-team