pgsql: Avoid crash on old Windows with AVX2-capable CPU for VS2013 buil

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема pgsql: Avoid crash on old Windows with AVX2-capable CPU for VS2013 buil
Дата
Msg-id E1ae0P6-0002Uj-Gs@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-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_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/ad9a15d3f156dd42f6ed5e47fff1fa77e974c351

Modified Files
--------------
src/backend/main/main.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Avoid crash on old Windows with AVX2-capable CPU for VS2013 buil
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Avoid crash on old Windows with AVX2-capable CPU for VS2013 buil