[v2] Apply the Makefile sorting fix

Message ID 20240215192020.2484727-1-hjl.tools@gmail.com
State Committed
Commit ef7f4b1fef67430a8f3cfc77fa6aada2add851d7
Headers
Series [v2] Apply the Makefile sorting fix |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-arm warning Patch is already merged
redhat-pt-bot/TryBot-32bit fail Patch series failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 warning Patch is already merged

Commit Message

H.J. Lu Feb. 15, 2024, 7:20 p.m. UTC
  Apply the Makefile sorting fix generated by sort-makefile-lines.py.
---
 sysdeps/loongarch/lp64/multiarch/Makefile | 80 +++++++++++------------
 sysdeps/x86/Makefile                      |  6 +-
 sysdeps/x86_64/Makefile                   | 10 +--
 sysdeps/x86_64/fpu/multiarch/Makefile     | 14 ++--
 sysdeps/x86_64/multiarch/Makefile         |  4 +-
 5 files changed, 57 insertions(+), 57 deletions(-)
  

Comments

H.J. Lu Feb. 15, 2024, 7:42 p.m. UTC | #1
On Thu, Feb 15, 2024 at 11:20 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Apply the Makefile sorting fix generated by sort-makefile-lines.py.
> ---
>  sysdeps/loongarch/lp64/multiarch/Makefile | 80 +++++++++++------------
>  sysdeps/x86/Makefile                      |  6 +-
>  sysdeps/x86_64/Makefile                   | 10 +--
>  sysdeps/x86_64/fpu/multiarch/Makefile     | 14 ++--
>  sysdeps/x86_64/multiarch/Makefile         |  4 +-
>  5 files changed, 57 insertions(+), 57 deletions(-)
>
> diff --git a/sysdeps/loongarch/lp64/multiarch/Makefile b/sysdeps/loongarch/lp64/multiarch/Makefile
> index fe863e1ba4..01762ef526 100644
> --- a/sysdeps/loongarch/lp64/multiarch/Makefile
> +++ b/sysdeps/loongarch/lp64/multiarch/Makefile
> @@ -1,52 +1,52 @@
>  ifeq ($(subdir),string)
>  sysdep_routines += \
> -  strlen-aligned \
> -  strlen-lsx \
> -  strlen-lasx \
> -  strnlen-aligned \
> -  strnlen-lsx \
> -  strnlen-lasx \
> +  memchr-aligned \
> +  memchr-lasx \
> +  memchr-lsx \
> +  memcmp-aligned \
> +  memcmp-lasx \
> +  memcmp-lsx \
> +  memcpy-aligned \
> +  memcpy-unaligned \
> +  memmove-lasx \
> +  memmove-lsx \
> +  memmove-unaligned \
> +  memrchr-generic \
> +  memrchr-lasx \
> +  memrchr-lsx \
> +  memset-aligned \
> +  memset-lasx \
> +  memset-lsx \
> +  memset-unaligned \
> +  rawmemchr-aligned \
> +  rawmemchr-lasx \
> +  rawmemchr-lsx \
> +  stpcpy-aligned \
> +  stpcpy-lasx \
> +  stpcpy-lsx \
> +  stpcpy-unaligned \
>    strchr-aligned \
> -  strchr-lsx \
>    strchr-lasx \
> -  strrchr-aligned \
> -  strrchr-lsx \
> -  strrchr-lasx \
> +  strchr-lsx \
>    strchrnul-aligned \
> -  strchrnul-lsx \
>    strchrnul-lasx \
> +  strchrnul-lsx \
>    strcmp-aligned \
>    strcmp-lsx \
> -  strncmp-aligned \
> -  strncmp-lsx \
>    strcpy-aligned \
> -  strcpy-unaligned \
> -  strcpy-lsx \
>    strcpy-lasx \
> -  stpcpy-aligned \
> -  stpcpy-unaligned \
> -  stpcpy-lsx \
> -  stpcpy-lasx \
> -  memcpy-aligned \
> -  memcpy-unaligned \
> -  memmove-unaligned \
> -  memmove-lsx \
> -  memmove-lasx \
> -  rawmemchr-aligned \
> -  rawmemchr-lsx \
> -  rawmemchr-lasx \
> -  memchr-aligned \
> -  memchr-lsx \
> -  memchr-lasx \
> -  memrchr-generic \
> -  memrchr-lsx \
> -  memrchr-lasx \
> -  memset-aligned \
> -  memset-unaligned \
> -  memset-lsx \
> -  memset-lasx \
> -  memcmp-aligned \
> -  memcmp-lsx \
> -  memcmp-lasx \
> +  strcpy-lsx \
> +  strcpy-unaligned \
> +  strlen-aligned \
> +  strlen-lasx \
> +  strlen-lsx \
> +  strncmp-aligned \
> +  strncmp-lsx \
> +  strnlen-aligned \
> +  strnlen-lasx \
> +  strnlen-lsx \
> +  strrchr-aligned \
> +  strrchr-lasx \
> +  strrchr-lsx \
>  # sysdep_routines
>  endif
> diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile
> index 4d50b327b5..73b29cc78c 100644
> --- a/sysdeps/x86/Makefile
> +++ b/sysdeps/x86/Makefile
> @@ -15,18 +15,18 @@ CFLAGS-dl-get-cpu-features.os += $(rtld-early-cflags)
>  CFLAGS-get-cpuid-feature-leaf.o += $(no-stack-protector)
>
>  tests += \
> -  tst-get-cpu-features \
> -  tst-get-cpu-features-static \
>    tst-cpu-features-cpuinfo \
>    tst-cpu-features-cpuinfo-static \
>    tst-cpu-features-supports \
>    tst-cpu-features-supports-static \
> +  tst-get-cpu-features \
> +  tst-get-cpu-features-static \
>    tst-hwcap-tunables \
>  # tests
>  tests-static += \
> -  tst-get-cpu-features-static \
>    tst-cpu-features-cpuinfo-static \
>    tst-cpu-features-supports-static \
> +  tst-get-cpu-features-static \
>  # tests-static
>  ifeq (yes,$(have-ifunc))
>  ifeq (yes,$(have-gcc-ifunc))
> diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
> index 524a15f3bb..145f25e7f6 100644
> --- a/sysdeps/x86_64/Makefile
> +++ b/sysdeps/x86_64/Makefile
> @@ -252,6 +252,10 @@ sysdep-dl-routines += dl-cet
>
>  tests += \
>    tst-cet-legacy-1 \
> +  tst-cet-legacy-10 \
> +  tst-cet-legacy-10-static \
> +  tst-cet-legacy-10a \
> +  tst-cet-legacy-10a-static \
>    tst-cet-legacy-1a \
>    tst-cet-legacy-2 \
>    tst-cet-legacy-2a \
> @@ -263,15 +267,11 @@ tests += \
>    tst-cet-legacy-8 \
>    tst-cet-legacy-9 \
>    tst-cet-legacy-9-static \
> -  tst-cet-legacy-10 \
> -  tst-cet-legacy-10-static \
> -  tst-cet-legacy-10a \
> -  tst-cet-legacy-10a-static \
>  # tests
>  tests-static += \
> -  tst-cet-legacy-9-static \
>    tst-cet-legacy-10-static \
>    tst-cet-legacy-10a-static \
> +  tst-cet-legacy-9-static \
>  # tests-static
>  tst-cet-legacy-1a-ARGS = -- $(host-test-program-cmd)
>
> diff --git a/sysdeps/x86_64/fpu/multiarch/Makefile b/sysdeps/x86_64/fpu/multiarch/Makefile
> index ea81753b70..e1a490dd98 100644
> --- a/sysdeps/x86_64/fpu/multiarch/Makefile
> +++ b/sysdeps/x86_64/fpu/multiarch/Makefile
> @@ -4,10 +4,10 @@ libm-sysdep_routines += \
>    s_ceilf-c \
>    s_floor-c \
>    s_floorf-c \
> -  s_rint-c \
> -  s_rintf-c \
>    s_nearbyint-c \
>    s_nearbyintf-c \
> +  s_rint-c \
> +  s_rintf-c \
>    s_roundeven-c \
>    s_roundevenf-c \
>    s_trunc-c \
> @@ -21,10 +21,10 @@ libm-sysdep_routines += \
>    s_floorf-sse4_1 \
>    s_nearbyint-sse4_1 \
>    s_nearbyintf-sse4_1 \
> -  s_roundeven-sse4_1 \
> -  s_roundevenf-sse4_1 \
>    s_rint-sse4_1 \
>    s_rintf-sse4_1 \
> +  s_roundeven-sse4_1 \
> +  s_roundevenf-sse4_1 \
>    s_trunc-sse4_1 \
>    s_truncf-sse4_1 \
>  # libm-sysdep_routines
> @@ -84,12 +84,12 @@ CFLAGS-s_cosf-fma.c = -mfma -mavx2
>  CFLAGS-s_sincosf-fma.c = -mfma -mavx2
>
>  libm-sysdep_routines += \
> +  e_asin-fma4 \
> +  e_atan2-fma4 \
>    e_exp-fma4 \
>    e_log-fma4 \
>    e_pow-fma4 \
> -  e_asin-fma4 \
>    s_atan-fma4 \
> -  e_atan2-fma4 \
>    s_sin-fma4 \
>    s_sincos-fma4 \
>    s_tan-fma4 \
> @@ -106,10 +106,10 @@ CFLAGS-s_tan-fma4.c = -mfma4
>  CFLAGS-s_sincos-fma4.c = -mfma4
>
>  libm-sysdep_routines += \
> +  e_atan2-avx \
>    e_exp-avx \
>    e_log-avx \
>    s_atan-avx \
> -  e_atan2-avx \
>    s_sin-avx \
>    s_sincos-avx \
>    s_tan-avx \
> diff --git a/sysdeps/x86_64/multiarch/Makefile b/sysdeps/x86_64/multiarch/Makefile
> index e1e894c963..d3d2270394 100644
> --- a/sysdeps/x86_64/multiarch/Makefile
> +++ b/sysdeps/x86_64/multiarch/Makefile
> @@ -4,8 +4,8 @@ sysdep_routines += \
>    memchr-avx2 \
>    memchr-avx2-rtm \
>    memchr-evex \
> -  memchr-evex512 \
>    memchr-evex-rtm \
> +  memchr-evex512 \
>    memchr-sse2 \
>    memcmp-avx2-movbe \
>    memcmp-avx2-movbe-rtm \
> @@ -37,8 +37,8 @@ sysdep_routines += \
>    rawmemchr-avx2 \
>    rawmemchr-avx2-rtm \
>    rawmemchr-evex \
> -  rawmemchr-evex512 \
>    rawmemchr-evex-rtm \
> +  rawmemchr-evex512 \
>    rawmemchr-sse2 \
>    stpcpy-avx2 \
>    stpcpy-avx2-rtm \
> --
> 2.43.0
>

I am checking it in.
  

Patch

diff --git a/sysdeps/loongarch/lp64/multiarch/Makefile b/sysdeps/loongarch/lp64/multiarch/Makefile
index fe863e1ba4..01762ef526 100644
--- a/sysdeps/loongarch/lp64/multiarch/Makefile
+++ b/sysdeps/loongarch/lp64/multiarch/Makefile
@@ -1,52 +1,52 @@ 
 ifeq ($(subdir),string)
 sysdep_routines += \
-  strlen-aligned \
-  strlen-lsx \
-  strlen-lasx \
-  strnlen-aligned \
-  strnlen-lsx \
-  strnlen-lasx \
+  memchr-aligned \
+  memchr-lasx \
+  memchr-lsx \
+  memcmp-aligned \
+  memcmp-lasx \
+  memcmp-lsx \
+  memcpy-aligned \
+  memcpy-unaligned \
+  memmove-lasx \
+  memmove-lsx \
+  memmove-unaligned \
+  memrchr-generic \
+  memrchr-lasx \
+  memrchr-lsx \
+  memset-aligned \
+  memset-lasx \
+  memset-lsx \
+  memset-unaligned \
+  rawmemchr-aligned \
+  rawmemchr-lasx \
+  rawmemchr-lsx \
+  stpcpy-aligned \
+  stpcpy-lasx \
+  stpcpy-lsx \
+  stpcpy-unaligned \
   strchr-aligned \
-  strchr-lsx \
   strchr-lasx \
-  strrchr-aligned \
-  strrchr-lsx \
-  strrchr-lasx \
+  strchr-lsx \
   strchrnul-aligned \
-  strchrnul-lsx \
   strchrnul-lasx \
+  strchrnul-lsx \
   strcmp-aligned \
   strcmp-lsx \
-  strncmp-aligned \
-  strncmp-lsx \
   strcpy-aligned \
-  strcpy-unaligned \
-  strcpy-lsx \
   strcpy-lasx \
-  stpcpy-aligned \
-  stpcpy-unaligned \
-  stpcpy-lsx \
-  stpcpy-lasx \
-  memcpy-aligned \
-  memcpy-unaligned \
-  memmove-unaligned \
-  memmove-lsx \
-  memmove-lasx \
-  rawmemchr-aligned \
-  rawmemchr-lsx \
-  rawmemchr-lasx \
-  memchr-aligned \
-  memchr-lsx \
-  memchr-lasx \
-  memrchr-generic \
-  memrchr-lsx \
-  memrchr-lasx \
-  memset-aligned \
-  memset-unaligned \
-  memset-lsx \
-  memset-lasx \
-  memcmp-aligned \
-  memcmp-lsx \
-  memcmp-lasx \
+  strcpy-lsx \
+  strcpy-unaligned \
+  strlen-aligned \
+  strlen-lasx \
+  strlen-lsx \
+  strncmp-aligned \
+  strncmp-lsx \
+  strnlen-aligned \
+  strnlen-lasx \
+  strnlen-lsx \
+  strrchr-aligned \
+  strrchr-lasx \
+  strrchr-lsx \
 # sysdep_routines
 endif
diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile
index 4d50b327b5..73b29cc78c 100644
--- a/sysdeps/x86/Makefile
+++ b/sysdeps/x86/Makefile
@@ -15,18 +15,18 @@  CFLAGS-dl-get-cpu-features.os += $(rtld-early-cflags)
 CFLAGS-get-cpuid-feature-leaf.o += $(no-stack-protector)
 
 tests += \
-  tst-get-cpu-features \
-  tst-get-cpu-features-static \
   tst-cpu-features-cpuinfo \
   tst-cpu-features-cpuinfo-static \
   tst-cpu-features-supports \
   tst-cpu-features-supports-static \
+  tst-get-cpu-features \
+  tst-get-cpu-features-static \
   tst-hwcap-tunables \
 # tests
 tests-static += \
-  tst-get-cpu-features-static \
   tst-cpu-features-cpuinfo-static \
   tst-cpu-features-supports-static \
+  tst-get-cpu-features-static \
 # tests-static
 ifeq (yes,$(have-ifunc))
 ifeq (yes,$(have-gcc-ifunc))
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
index 524a15f3bb..145f25e7f6 100644
--- a/sysdeps/x86_64/Makefile
+++ b/sysdeps/x86_64/Makefile
@@ -252,6 +252,10 @@  sysdep-dl-routines += dl-cet
 
 tests += \
   tst-cet-legacy-1 \
+  tst-cet-legacy-10 \
+  tst-cet-legacy-10-static \
+  tst-cet-legacy-10a \
+  tst-cet-legacy-10a-static \
   tst-cet-legacy-1a \
   tst-cet-legacy-2 \
   tst-cet-legacy-2a \
@@ -263,15 +267,11 @@  tests += \
   tst-cet-legacy-8 \
   tst-cet-legacy-9 \
   tst-cet-legacy-9-static \
-  tst-cet-legacy-10 \
-  tst-cet-legacy-10-static \
-  tst-cet-legacy-10a \
-  tst-cet-legacy-10a-static \
 # tests
 tests-static += \
-  tst-cet-legacy-9-static \
   tst-cet-legacy-10-static \
   tst-cet-legacy-10a-static \
+  tst-cet-legacy-9-static \
 # tests-static
 tst-cet-legacy-1a-ARGS = -- $(host-test-program-cmd)
 
diff --git a/sysdeps/x86_64/fpu/multiarch/Makefile b/sysdeps/x86_64/fpu/multiarch/Makefile
index ea81753b70..e1a490dd98 100644
--- a/sysdeps/x86_64/fpu/multiarch/Makefile
+++ b/sysdeps/x86_64/fpu/multiarch/Makefile
@@ -4,10 +4,10 @@  libm-sysdep_routines += \
   s_ceilf-c \
   s_floor-c \
   s_floorf-c \
-  s_rint-c \
-  s_rintf-c \
   s_nearbyint-c \
   s_nearbyintf-c \
+  s_rint-c \
+  s_rintf-c \
   s_roundeven-c \
   s_roundevenf-c \
   s_trunc-c \
@@ -21,10 +21,10 @@  libm-sysdep_routines += \
   s_floorf-sse4_1 \
   s_nearbyint-sse4_1 \
   s_nearbyintf-sse4_1 \
-  s_roundeven-sse4_1 \
-  s_roundevenf-sse4_1 \
   s_rint-sse4_1 \
   s_rintf-sse4_1 \
+  s_roundeven-sse4_1 \
+  s_roundevenf-sse4_1 \
   s_trunc-sse4_1 \
   s_truncf-sse4_1 \
 # libm-sysdep_routines
@@ -84,12 +84,12 @@  CFLAGS-s_cosf-fma.c = -mfma -mavx2
 CFLAGS-s_sincosf-fma.c = -mfma -mavx2
 
 libm-sysdep_routines += \
+  e_asin-fma4 \
+  e_atan2-fma4 \
   e_exp-fma4 \
   e_log-fma4 \
   e_pow-fma4 \
-  e_asin-fma4 \
   s_atan-fma4 \
-  e_atan2-fma4 \
   s_sin-fma4 \
   s_sincos-fma4 \
   s_tan-fma4 \
@@ -106,10 +106,10 @@  CFLAGS-s_tan-fma4.c = -mfma4
 CFLAGS-s_sincos-fma4.c = -mfma4
 
 libm-sysdep_routines += \
+  e_atan2-avx \
   e_exp-avx \
   e_log-avx \
   s_atan-avx \
-  e_atan2-avx \
   s_sin-avx \
   s_sincos-avx \
   s_tan-avx \
diff --git a/sysdeps/x86_64/multiarch/Makefile b/sysdeps/x86_64/multiarch/Makefile
index e1e894c963..d3d2270394 100644
--- a/sysdeps/x86_64/multiarch/Makefile
+++ b/sysdeps/x86_64/multiarch/Makefile
@@ -4,8 +4,8 @@  sysdep_routines += \
   memchr-avx2 \
   memchr-avx2-rtm \
   memchr-evex \
-  memchr-evex512 \
   memchr-evex-rtm \
+  memchr-evex512 \
   memchr-sse2 \
   memcmp-avx2-movbe \
   memcmp-avx2-movbe-rtm \
@@ -37,8 +37,8 @@  sysdep_routines += \
   rawmemchr-avx2 \
   rawmemchr-avx2-rtm \
   rawmemchr-evex \
-  rawmemchr-evex512 \
   rawmemchr-evex-rtm \
+  rawmemchr-evex512 \
   rawmemchr-sse2 \
   stpcpy-avx2 \
   stpcpy-avx2-rtm \