freebsd-dev/contrib/llvm/patches/patch-r262261-llvm-r198592-sparc.diff
Dimitry Andric a1f8ad145e Add separate patch files for all the customizations we have currently
applied to our copy of llvm/clang.  These can be applied in alphabetical
order to a pristine llvm/clang 3.4 release source tree, to result in the
same version used in FreeBSD.

This is intended to clearly document all the changes until now, which
mostly consist of cherry pickings from the respective upstream trunks,
plus a number of hand-written FreeBSD-specific ones.  Hopefully those
can eventually be cleaned up and sent upstream too.

MFC after:	1 week
X-MFC-With:	r263313
2014-03-18 22:07:45 +00:00

34 lines
1.4 KiB
Diff

Pull in r198592 from upstream llvm trunk (by Venkatraman Govindaraju):
[Sparc] Explicitly cast -1 to unsigned to fix buildbot errors.
Introduced here: http://svn.freebsd.org/changeset/base/262261
Index: lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
===================================================================
--- lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
+++ lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
@@ -104,14 +104,14 @@ static const unsigned DFPRegDecoderTable[] = {
SP::D14, SP::D30, SP::D15, SP::D31 };
static const unsigned QFPRegDecoderTable[] = {
- SP::Q0, SP::Q8, -1, -1,
- SP::Q1, SP::Q9, -1, -1,
- SP::Q2, SP::Q10, -1, -1,
- SP::Q3, SP::Q11, -1, -1,
- SP::Q4, SP::Q12, -1, -1,
- SP::Q5, SP::Q13, -1, -1,
- SP::Q6, SP::Q14, -1, -1,
- SP::Q7, SP::Q15, -1, -1 } ;
+ SP::Q0, SP::Q8, (unsigned)-1, (unsigned)-1,
+ SP::Q1, SP::Q9, (unsigned)-1, (unsigned)-1,
+ SP::Q2, SP::Q10, (unsigned)-1, (unsigned)-1,
+ SP::Q3, SP::Q11, (unsigned)-1, (unsigned)-1,
+ SP::Q4, SP::Q12, (unsigned)-1, (unsigned)-1,
+ SP::Q5, SP::Q13, (unsigned)-1, (unsigned)-1,
+ SP::Q6, SP::Q14, (unsigned)-1, (unsigned)-1,
+ SP::Q7, SP::Q15, (unsigned)-1, (unsigned)-1 } ;
static DecodeStatus DecodeIntRegsRegisterClass(MCInst &Inst,
unsigned RegNo,