diff options
author | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-09 14:22:10 +0000 |
---|---|---|
committer | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-09 14:22:10 +0000 |
commit | 865812bf75d27473d32386711289e7a14832da31 (patch) | |
tree | 602b5169923319f3a07641e93d8f934b27d2c271 /libstdc++-v3 | |
parent | 5cf7e051674826c62b2d70c98530387013309834 (diff) | |
download | gcc-865812bf75d27473d32386711289e7a14832da31.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191109 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/src/c++11/random.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f3a5852dd21..bd87deca5b3 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 f5ee9f4fa61..3b05318ea4c 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) |