From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Avoid crash on old Windows with AVX2-capable CPU for VS2013 buil
Date: Thu, 10 Mar 2016 13:13:24 +0000
Message-ID: <E1ae0P6-0002Us-HW@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Avoid crash on old Windows with AVX2-capable CPU for VS2013 builds
The Visual Studio 2013 CRT generates invalid code when it makes a 64-bit
build that is later used on a CPU that supports AVX2 instructions using a
version of Windows before 7SP1/2008R2SP1.
Detect this combination, and in those cases turn off the generation of
FMA3, per recommendation from the Visual Studio team.
The bug is actually in the CRT shipping with Visual Studio 2013, but
Microsoft have stated they're only fixing it in newer major versions.
The fix is therefor conditioned specifically on being built with this
version of Visual Studio, and not previous or later versions.
Author: Christian Ullrich
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/3e6385e27105a95ccc00ae475a37f83d431fc730
Modified Files
--------------
src/backend/main/main.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: magnus@hagander.net
Subject: Re: pgsql: Avoid crash on old Windows with AVX2-capable CPU for VS2013 buil
In-Reply-To: <E1ae0P6-0002Us-HW@gemulon.postgresql.org>
References: <E1ae0P6-0002Us-HW@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox