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)