openbsd-ports/devel/llvm/patches/patch-lib_Target_Mips_MipsTargetStreamer_h
jca 3335a863b8 Merge various improvements from base
o clang:
- add back kernel printf %b length specifier support (%llb, etc, lost in
the update to 8.0.0)
o lld:
- Restore previous section after setting the MIPS ABI marker
- Fix output section alignement when entry size isn't a power of two
o arm64, amd64:
- Do not store the retguard cookie in frame in leaf functions if possible
- Emit variable length trap padding in retguard epilogue
o amd64:
- move code that selects retpoline by default to a different source file
o mips64:
- Fix a bug in memory operand handling
- Implement SGE pseudo-instructions
- Implement .cplocal directive
- Fix instruction guard
- Implement the 'h' register constraint on mips64
o sparc64:
- Remove cast that truncates immediate operands to 32 bits
2019-07-09 13:21:37 +00:00

27 lines
728 B
Plaintext

$OpenBSD: patch-lib_Target_Mips_MipsTargetStreamer_h,v 1.1 2019/07/09 13:21:37 jca Exp $
- Implement .cplocal directive. Needed when building libcrypto.
Index: lib/Target/Mips/MipsTargetStreamer.h
--- lib/Target/Mips/MipsTargetStreamer.h.orig
+++ lib/Target/Mips/MipsTargetStreamer.h
@@ -185,6 +185,10 @@ class MipsTargetStreamer : public MCTargetStreamer { (
return *ABI;
}
+ void setGPReg(unsigned GPReg) {
+ this->GPReg = GPReg;
+ }
+
protected:
llvm::Optional<MipsABIInfo> ABI;
MipsABIFlagsSection ABIFlagsSection;
@@ -199,6 +203,7 @@ class MipsTargetStreamer : public MCTargetStreamer { (
bool FrameInfoSet;
int FrameOffset;
+ unsigned GPReg;
unsigned FrameReg;
unsigned ReturnReg;