aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/lockfuncs.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2016-03-10 13:48:58 +0100
committerMagnus Hagander <magnus@hagander.net>2016-03-10 14:10:18 +0100
commit9d90388247e093cd9b3ead79954df2ac18bfeb66 (patch)
tree7d397eeef1d7fc8f026c315e7ce4cdc1b88f56a4 /src/backend/utils/adt/lockfuncs.c
parente0694cf9c74455fb87beb0f4d66b4c8f5f53715e (diff)
downloadpostgresql-9d90388247e093cd9b3ead79954df2ac18bfeb66.tar.gz
postgresql-9d90388247e093cd9b3ead79954df2ac18bfeb66.zip
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
Diffstat (limited to 'src/backend/utils/adt/lockfuncs.c')
0 files changed, 0 insertions, 0 deletions