From ef64d158fb3ff94c3e6a290586061f3e5a8983f3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 9 Sep 2012 14:22:10 +0000 Subject: 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 --- libstdc++-v3/src/c++11/random.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libstdc++-v3/src') 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) -- cgit v1.1