Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2017 21:40:17 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317810 - head/contrib/llvm/lib/Target/PowerPC
Message-ID:  <201705042140.v44LeHrU077370@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu May  4 21:40:16 2017
New Revision: 317810
URL: https://svnweb.freebsd.org/changeset/base/317810

Log:
  Pull in r302183 from upstream llvm trunk (by Krzysztof Parzyszek):
  
    [PPC] When restoring R30 (PIC base pointer), mark it as <def>
  
    This happened on the PPC32/SVR4 path and was discovered when building
    FreeBSD on PPC32. It was a typo-class error in the frame lowering
    code.
  
    This fixes PR26519.
  
  Reported by:	Mark Millard
  PR:		206990
  MFC after:	3 days

Modified:
  head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp

Modified: head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
==============================================================================
--- head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp	Thu May  4 21:31:50 2017	(r317809)
+++ head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp	Thu May  4 21:40:16 2017	(r317810)
@@ -1467,8 +1467,7 @@ void PPCFrameLowering::emitEpilogue(Mach
   }
 
   if (FI->usesPICBase())
-    BuildMI(MBB, MBBI, dl, LoadInst)
-      .addReg(PPC::R30)
+    BuildMI(MBB, MBBI, dl, LoadInst, PPC::R30)
       .addImm(PBPOffset)
       .addReg(RBReg);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705042140.v44LeHrU077370>