diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-26 14:12:20 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-26 14:12:20 +0000 |
commit | a0f1278f2dc2c3d0ee856f80d8735f7b153dc0f2 (patch) | |
tree | 77ada0b2458ccbed700347fdd8d7abe888466876 /libgcc/config | |
parent | 0337c8efb855d00db2bd4c13d8222555e0764750 (diff) | |
download | gcc-a0f1278f2dc2c3d0ee856f80d8735f7b153dc0f2.tar.gz |
* config/i386/cpuinfo.c (enum vendor_signatures): Remove.
(__cpu_indicator_init): Use signature_INTEL_ebx and signature_AMD_ebx
from cpuid.h to check vendor signatures.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206211 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/config')
-rw-r--r-- | libgcc/config/i386/cpuinfo.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c index 7835b202906..394db876d72 100644 --- a/libgcc/config/i386/cpuinfo.c +++ b/libgcc/config/i386/cpuinfo.c @@ -36,12 +36,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see int __cpu_indicator_init (void) __attribute__ ((constructor CONSTRUCTOR_PRIORITY)); -enum vendor_signatures -{ - SIG_INTEL = 0x756e6547 /* Genu */, - SIG_AMD = 0x68747541 /* Auth */ -}; - /* Processor Vendor and Models. */ enum processor_vendor @@ -368,7 +362,7 @@ __cpu_indicator_init (void) extended_model = (eax >> 12) & 0xf0; extended_family = (eax >> 20) & 0xff; - if (vendor == SIG_INTEL) + if (vendor == signature_INTEL_ebx) { /* Adjust model and family for Intel CPUS. */ if (family == 0x0f) @@ -385,7 +379,7 @@ __cpu_indicator_init (void) get_available_features (ecx, edx, max_level); __cpu_model.__cpu_vendor = VENDOR_INTEL; } - else if (vendor == SIG_AMD) + else if (vendor == signature_AMD_ebx) { /* Adjust model and family for AMD CPUS. */ if (family == 0x0f) |