aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-09-09 14:22:10 +0000
committerUlrich Drepper <drepper@gcc.gnu.org>2012-09-09 14:22:10 +0000
commitef64d158fb3ff94c3e6a290586061f3e5a8983f3 (patch)
tree602b5169923319f3a07641e93d8f934b27d2c271 /libstdc++-v3
parent7b99cca4787efe0a5eec258b236c13b7b7604f04 (diff)
downloadgcc-ef64d158fb3ff94c3e6a290586061f3e5a8983f3.zip
gcc-ef64d158fb3ff94c3e6a290586061f3e5a8983f3.tar.gz
gcc-ef64d158fb3ff94c3e6a290586061f3e5a8983f3.tar.bz2
cpuid.h: Define signature_*_e[bcd]x macros for matching results of level 0 calls to...
gcc/ * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for matching results of level 0 calls to __cpuid to processor manufacturers. * config/i386/driver-i386.c (vendor_signatures): Removed. (processor_signatures): Removed. (host_detect_local_cpu): Replace uses of now-removed SIG_* constants with the new signature_*_ebx constants. libstdc++-v3/ * src/c++11/random.cc (random_device::_M_init): Use new macro signature_INTEL_ebx to check for Intel processors. From-SVN: r191109
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/src/c++11/random.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index f3a5852..bd87dec 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-09 Ulrich Drepper <drepper@gmail.com>
+
+ * src/c++11/random.cc (random_device::_M_init): Use new macro
+ signature_INTEL_ebx to check for Intel processors.
+
2012-09-06 Thiago Macieira <thiago.macieira@intel.com>
PR libstdc++/54172
diff --git a/libstdc++-v3/src/c++11/random.cc b/libstdc++-v3/src/c++11/random.cc
index f5ee9f4..3b05318 100644
--- a/libstdc++-v3/src/c++11/random.cc
+++ b/libstdc++-v3/src/c++11/random.cc
@@ -79,7 +79,7 @@ namespace std _GLIBCXX_VISIBILITY(default)
unsigned int eax, ebx, ecx, edx;
// Check availability of cpuid and, for now at least, also the
// CPU signature for Intel's
- if (__get_cpuid_max(0, &ebx) > 0 && ebx == 0x756e6547)
+ if (__get_cpuid_max(0, &ebx) > 0 && ebx == signature_INTEL_ebx)
{
__cpuid(1, eax, ebx, ecx, edx);
if (ecx & bit_RDRND)