diff options
author | liuhongt <hongtao.liu@intel.com> | 2023-08-09 14:41:46 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2023-08-09 15:47:48 +0800 |
commit | 6ef7956e9df910fa49bd5106139a7d26c9d51fdf (patch) | |
tree | e69d3e3074d69ed7729add4cb843d4f66a1e0109 /gcc | |
parent | b66e613a1a8d5b8fc9d8b03f7b60260700acf833 (diff) | |
download | gcc-6ef7956e9df910fa49bd5106139a7d26c9d51fdf.zip gcc-6ef7956e9df910fa49bd5106139a7d26c9d51fdf.tar.gz gcc-6ef7956e9df910fa49bd5106139a7d26c9d51fdf.tar.bz2 |
Rename local variable subleaf_level to max_subleaf_level.
gcc/ChangeLog:
* common/config/i386/cpuinfo.h (get_available_features):
Rename local variable subleaf_level to max_subleaf_level.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/common/config/i386/cpuinfo.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h index 9fa4dec..13102b9 100644 --- a/gcc/common/config/i386/cpuinfo.h +++ b/gcc/common/config/i386/cpuinfo.h @@ -663,7 +663,6 @@ get_available_features (struct __processor_model *cpu_model, unsigned int max_cpuid_level = cpu_model2->__cpu_max_level; unsigned int eax, ebx; unsigned int ext_level; - unsigned int subleaf_level; /* Get XCR_XFEATURE_ENABLED_MASK register with xgetbv. */ #define XCR_XFEATURE_ENABLED_MASK 0x0 @@ -763,7 +762,9 @@ get_available_features (struct __processor_model *cpu_model, /* Get Advanced Features at level 7 (eax = 7, ecx = 0/1). */ if (max_cpuid_level >= 7) { - __cpuid_count (7, 0, subleaf_level, ebx, ecx, edx); + unsigned int max_subleaf_level; + + __cpuid_count (7, 0, max_subleaf_level, ebx, ecx, edx); if (ebx & bit_BMI) set_feature (FEATURE_BMI); if (ebx & bit_SGX) @@ -875,7 +876,7 @@ get_available_features (struct __processor_model *cpu_model, set_feature (FEATURE_AVX512FP16); } - if (subleaf_level >= 1) + if (max_subleaf_level >= 1) { __cpuid_count (7, 1, eax, ebx, ecx, edx); if (eax & bit_HRESET) |