aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@gcc.gnu.org>2015-10-13 20:55:44 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2015-10-13 20:55:44 +0000
commit141aa58b53d979d2ffa38e072691ecf55a5a5b04 (patch)
treef2b06731895afcb27aaf49776355936f72faccdb
parentd9a6bd32adc40a7e1e5c72692a330f14453ad7f0 (diff)
downloadgcc-141aa58b53d979d2ffa38e072691ecf55a5a5b04.zip
gcc-141aa58b53d979d2ffa38e072691ecf55a5a5b04.tar.gz
gcc-141aa58b53d979d2ffa38e072691ecf55a5a5b04.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/config/cpu/i486/opt/bits/opt_random.h4
-rw-r--r--libstdc++-v3/include/ext/random2
3 files changed, 10 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index e3061ef..ff0b048 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-13 Nathan Froyd <froydnj@gcc.gnu.org>
+
+ * 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 <joseph@codesourcery.com>
* 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 4495569..a9f6c13 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 <x86intrin.h>
+#ifdef __SSE3__
+#include <pmmintrin.h>
+#endif
#pragma GCC system_header
diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random
index 0bcfa4a..ba363ce 100644
--- a/libstdc++-v3/include/ext/random
+++ b/libstdc++-v3/include/ext/random
@@ -40,7 +40,7 @@
#include <array>
#include <ext/cmath>
#ifdef __SSE2__
-# include <x86intrin.h>
+# include <emmintrin.h>
#endif
#if defined(_GLIBCXX_USE_C99_STDINT_TR1) && defined(UINT32_C)