Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2012 22:50:51 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r243191 - stable/9/contrib/llvm/lib/Target/X86
Message-ID:  <201211172250.qAHMoppF000120@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Nov 17 22:50:50 2012
New Revision: 243191
URL: http://svnweb.freebsd.org/changeset/base/243191

Log:
  MFC r242835:
  
  Reduce LLVM's default stack alignment for i386 from 16 to 4 bytes, as
  the FreeBSD ABI requires.  This is essentially a revert of upstream llvm
  commit r126226, and it will be reverted by upstream too.

Modified:
  stable/9/contrib/llvm/lib/Target/X86/X86Subtarget.cpp
Directory Properties:
  stable/9/contrib/llvm/   (props changed)

Modified: stable/9/contrib/llvm/lib/Target/X86/X86Subtarget.cpp
==============================================================================
--- stable/9/contrib/llvm/lib/Target/X86/X86Subtarget.cpp	Sat Nov 17 22:40:18 2012	(r243190)
+++ stable/9/contrib/llvm/lib/Target/X86/X86Subtarget.cpp	Sat Nov 17 22:50:50 2012	(r243191)
@@ -411,12 +411,12 @@ X86Subtarget::X86Subtarget(const std::st
   assert((!In64BitMode || HasX86_64) &&
          "64-bit code requested on a subtarget that doesn't support it!");
 
-  // Stack alignment is 16 bytes on Darwin, FreeBSD, Linux and Solaris (both
-  // 32 and 64 bit) and for all 64-bit targets.
+  // Stack alignment is 16 bytes on Darwin, Linux and Solaris (both 32 and 64
+  // bit) and for all 64-bit targets.
   if (StackAlignOverride)
     stackAlignment = StackAlignOverride;
-  else if (isTargetDarwin() || isTargetFreeBSD() || isTargetLinux() ||
-           isTargetSolaris() || In64BitMode)
+  else if (isTargetDarwin() || isTargetLinux() || isTargetSolaris() ||
+           In64BitMode)
     stackAlignment = 16;
 }
 



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