]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Add missing switch/case fall-through markers to init_cpu_features
authorFlorian Weimer <fweimer@redhat.com>
Fri, 2 Aug 2024 13:22:07 +0000 (15:22 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 2 Aug 2024 16:08:14 +0000 (18:08 +0200)
The commits introducing these fall-throughs intended them to
happen.

Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
sysdeps/x86/cpu-features.c

index c096dd390ab3064b6162f9232a48cd913fe8edc3..18ed0080407ee1a192f3f6fc284e2a04ab8005cc 100644 (file)
@@ -879,6 +879,7 @@ init_cpu_features (struct cpu_features *cpu_features)
                     non-temporal on all Skylake servers. */
              cpu_features->preferred[index_arch_Avoid_Non_Temporal_Memset]
                  |= bit_arch_Avoid_Non_Temporal_Memset;
+             /* fallthrough */
            case INTEL_BIGCORE_COMETLAKE:
            case INTEL_BIGCORE_SKYLAKE:
            case INTEL_BIGCORE_KABYLAKE:
@@ -1073,6 +1074,7 @@ https://www.intel.com/content/www/us/en/support/articles/000059422/processors.ht
              /* Yongfeng and Shijidadao mircoarch tuning.  */
            case 0x5b:
              cpu_features->cachesize_non_temporal_divisor = 2;
+             /* fallthrough */
            case 0x6b:
              cpu_features->preferred[index_arch_AVX_Fast_Unaligned_Load]
                  &= ~bit_arch_AVX_Fast_Unaligned_Load;