Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2012 21:18:31 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r242835 - head/contrib/llvm/lib/Target/X86
Message-ID:  <20121109191831.GG73505@kib.kiev.ua>
In-Reply-To: <201211091856.qA9IuRxX035169@svn.freebsd.org>
References:  <201211091856.qA9IuRxX035169@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--hSgrh6VlWhhGqruz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 09, 2012 at 06:56:27PM +0000, Dimitry Andric wrote:
> Author: dim
> Date: Fri Nov  9 18:56:27 2012
> New Revision: 242835
> URL: http://svnweb.freebsd.org/changeset/base/242835
>=20
> Log:
>   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.
>  =20
>   MFC after:	1 week
>=20
> Modified:
>   head/contrib/llvm/lib/Target/X86/X86Subtarget.cpp
>=20
> Modified: head/contrib/llvm/lib/Target/X86/X86Subtarget.cpp
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/contrib/llvm/lib/Target/X86/X86Subtarget.cpp	Fri Nov  9 18:23:38=
 2012	(r242834)
> +++ head/contrib/llvm/lib/Target/X86/X86Subtarget.cpp	Fri Nov  9 18:56:27=
 2012	(r242835)
> @@ -416,12 +416,12 @@ X86Subtarget::X86Subtarget(const std::st
>    assert((!In64BitMode || HasX86_64) &&
>           "64-bit code requested on a subtarget that doesn't support it!"=
);
> =20
> -  // 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 a=
nd 64
> +  // bit) and for all 64-bit targets.
>    if (StackAlignOverride)
>      stackAlignment =3D StackAlignOverride;
> -  else if (isTargetDarwin() || isTargetFreeBSD() || isTargetLinux() ||
> -           isTargetSolaris() || In64BitMode)
> +  else if (isTargetDarwin() || isTargetLinux() || isTargetSolaris() ||
> +           In64BitMode)
>      stackAlignment =3D 16;
>  }
> =20
Great, thank you for taking care of this.

--hSgrh6VlWhhGqruz
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlCdVwcACgkQC3+MBN1Mb4gnBQCgpycCgPxe9LwwdYAGDZDk600P
EsgAoMs9CuQzXGo5N6vcnvFNR8Md0qH+
=IbZs
-----END PGP SIGNATURE-----

--hSgrh6VlWhhGqruz--



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