From 141aa58b53d979d2ffa38e072691ecf55a5a5b04 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 13 Oct 2015 20:55:44 +0000 Subject: [PATCH] opt_random.h: Include pmmintrin.h instead of x86intrin.h, and only do so when __SSE3__ * config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead of x86intrin.h, and only do so when __SSE3__ * include/ext/random: Include emmintrin.h instead of x86intrin.h From-SVN: r228786 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h | 4 +++- libstdc++-v3/include/ext/random | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e3061efca4f..ff0b048a444 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-10-13 Nathan Froyd + + * config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead + of x86intrin.h, and only do so when __SSE3__ + * include/ext/random: Include emmintrin.h instead of x86intrin.h + 2015-10-11 Joseph Myers * crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* | diff --git a/libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h b/libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h index 4495569ab26..a9f6c1355e7 100644 --- a/libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h +++ b/libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h @@ -30,7 +30,9 @@ #ifndef _BITS_OPT_RANDOM_H #define _BITS_OPT_RANDOM_H 1 -#include +#ifdef __SSE3__ +#include +#endif #pragma GCC system_header diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random index 0bcfa4a3016..ba363ce23e7 100644 --- a/libstdc++-v3/include/ext/random +++ b/libstdc++-v3/include/ext/random @@ -40,7 +40,7 @@ #include #include #ifdef __SSE2__ -# include +# include #endif #if defined(_GLIBCXX_USE_C99_STDINT_TR1) && defined(UINT32_C) -- 2.30.2