[llvm] MIPS: fix emitDirectiveCpsetup on N32 (PR #80534)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 24 00:54:22 PST 2024


================
@@ -1255,7 +1255,9 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsigned RegNo,
     emitRRI(Mips::SD, GPReg, Mips::SP, RegOrOffset, SMLoc(), &STI);
   }
 
-  if (getABI().IsN32()) {
+#if 0
+  // We haven't support -mabicalls -mno-shared yet.
+  if (-mno-shared) {
----------------
MaskRay wrote:

IIUC -mno-shared only makes sense for -fno-pic. Modern executables use PIE and cannot use -mno-shared.

https://github.com/llvm/llvm-project/pull/80534


More information about the llvm-commits mailing list