Le 16/12/2019 à 23:31, Ximin Luo a écrit :
Source: llvm-toolchain-9
Severity: normal
Tags: patch upstream
Dear Maintainer,
Please include this upstream patch which is already merged:
https://reviews.llvm.org/D71028
It is needed for rustc mips to pass
https://github.com/rust-lang/rust/issues/67167
I have confirmed that the raw diff applies cleanly to the current Debian
package.
https://reviews.llvm.org/file/data/62pyj4rca74lyduv2gkr/PHID-FILE-267qlycncoogjurgx7hc/D71028.diff
(It does not apply cleanly to llvm-8, only 9 and upwards.)
And it fails with:
/build/llvm-toolchain-9-9.0.1/llvm/lib/Target/Mips/MipsExpandPseudo.cpp:
In member function 'bool
{anonymous}::MipsExpandPseudo::expandAtomicBinOp(llvm::MachineBasicBlock&,
llvm::MachineBasicBlock::iterator, llvm::MachineBasicBlock::iterator&,
unsigned int)':
/build/llvm-toolchain-9-9.0.1/llvm/lib/Target/Mips/MipsExpandPseudo.cpp:740:21:
error: operands to ?: have different types 'unsigned int' and
'llvm::Register'
(Size == 8) ? STI->getRegisterInfo()->getSubReg(Scratch2,
Mips::sub_32)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: Scratch2;
~~~~~~~~~~
S