]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
AArch64: Remove PTR_ARG/SIZE_ARG defines
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Tue, 31 Dec 2024 18:07:36 +0000 (18:07 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Mon, 24 Feb 2025 14:15:15 +0000 (14:15 +0000)
This series removes various ILP32 defines that are now
no longer needed.

Remove PTR_ARG/SIZE_ARG.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
35 files changed:
sysdeps/aarch64/__longjmp.S
sysdeps/aarch64/__mtag_tag_region.S
sysdeps/aarch64/__mtag_tag_zero_region.S
sysdeps/aarch64/dl-start.S
sysdeps/aarch64/dl-tlsdesc.S
sysdeps/aarch64/memchr.S
sysdeps/aarch64/memcmp.S
sysdeps/aarch64/memcpy.S
sysdeps/aarch64/memrchr.S
sysdeps/aarch64/memset.S
sysdeps/aarch64/multiarch/memchr_nosimd.S
sysdeps/aarch64/multiarch/memcpy_a64fx.S
sysdeps/aarch64/multiarch/memcpy_mops.S
sysdeps/aarch64/multiarch/memcpy_oryon1.S
sysdeps/aarch64/multiarch/memcpy_sve.S
sysdeps/aarch64/multiarch/memmove_mops.S
sysdeps/aarch64/multiarch/memset_a64fx.S
sysdeps/aarch64/multiarch/memset_emag.S
sysdeps/aarch64/multiarch/memset_kunpeng.S
sysdeps/aarch64/multiarch/memset_mops.S
sysdeps/aarch64/multiarch/memset_oryon1.S
sysdeps/aarch64/multiarch/strlen_asimd.S
sysdeps/aarch64/setjmp.S
sysdeps/aarch64/strchr.S
sysdeps/aarch64/strchrnul.S
sysdeps/aarch64/strcmp.S
sysdeps/aarch64/strcpy.S
sysdeps/aarch64/strlen.S
sysdeps/aarch64/strnlen.S
sysdeps/aarch64/strrchr.S
sysdeps/unix/sysv/linux/aarch64/clone.S
sysdeps/unix/sysv/linux/aarch64/clone3.S
sysdeps/unix/sysv/linux/aarch64/getcontext.S
sysdeps/unix/sysv/linux/aarch64/setcontext.S
sysdeps/unix/sysv/linux/aarch64/swapcontext.S

index 38efddbbae40483ea214c16da72815c39a52fcdf..b79a76b7ce0ec5cbcd0a6acbf64007b7645f227a 100644 (file)
@@ -47,8 +47,6 @@ ENTRY (__longjmp)
        cfi_offset(d14, JB_D14<<3)
        cfi_offset(d15, JB_D15<<3)
 
-       PTR_ARG (0)
-
 #if IS_IN(libc)
        /* Disable ZA state of SME in libc.a and libc.so, but not in ld.so.  */
 # if HAVE_AARCH64_PAC_RET
index 9b1059675cbd6d3a427fa062f5f3b788653cbf8d..fcd8191a7682920d1c78ccc504b8e3ad748e877d 100644 (file)
@@ -40,9 +40,6 @@
 #define zva_val        x4
 
 ENTRY (__libc_mtag_tag_region)
-       PTR_ARG (0)
-       SIZE_ARG (1)
-
        add     dstend, dstin, count
 
        cmp     count, 96
index e7d411706e85e531c7f06988dbd44ae9a4f08e60..3b49e19843b8b39b92c3a5db5a96ab60cde18fad 100644 (file)
@@ -40,9 +40,6 @@
 #define zva_val        x4
 
 ENTRY (__libc_mtag_tag_zero_region)
-       PTR_ARG (0)
-       SIZE_ARG (1)
-
        add     dstend, dstin, count
 
        cmp     count, 96
index a249fda21c1063a21e4f39dd4463727d0ab72229..b26549bd3159fd179566f2ae4f1e545fc5b8f671 100644 (file)
@@ -28,7 +28,6 @@ ENTRY (_start)
 
        /* Load and relocate all library dependencies.  */
        mov     x0, sp
-       PTR_ARG (0)
        bl      _dl_start
        /* Returns user entry point in x0.  */
        mov     PTR_REG (21), PTR_REG (0)
index 6045b2e0a97fb70f5d253db5671fd892b777ac64..76048950c0f2dade927e58562320508f3e89f962 100644 (file)
@@ -75,7 +75,6 @@
        .align 2
 _dl_tlsdesc_return:
        BTI_C
-       PTR_ARG (0)
        ldr     PTR_REG (0), [x0, #PTR_SIZE]
        RET
        cfi_endproc
@@ -99,7 +98,6 @@ _dl_tlsdesc_undefweak:
        BTI_C
        str     x1, [sp, #-16]!
        cfi_adjust_cfa_offset (16)
-       PTR_ARG (0)
        ldr     PTR_REG (0), [x0, #PTR_SIZE]
        mrs     x1, tpidr_el0
        sub     PTR_REG (0), PTR_REG (0), PTR_REG (1)
@@ -145,7 +143,6 @@ _dl_tlsdesc_undefweak:
        .align 2
 _dl_tlsdesc_dynamic:
        BTI_C
-       PTR_ARG (0)
 
        /* Save just enough registers to support fast path, if we fall
           into slow path we will save additional registers.  */
index e67c3591c2dd8922a520cdea661363ec0f7768c2..76ed5f4549497f357cf08980d0b91671a3d148bd 100644 (file)
@@ -57,8 +57,6 @@
    exactly which byte matched.  */
 
 ENTRY (MEMCHR)
-       PTR_ARG (0)
-       SIZE_ARG (2)
        bic     src, srcin, 15
        cbz     cntin, L(nomatch)
        ld1     {vdata.16b}, [src]
index 471dc823da4c5623a76a1c1f2ebab878e34cacb1..a7482f60df5d5dd8acdae445d5f357f30046bb5f 100644 (file)
 
 
 ENTRY (memcmp)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        cmp     limit, 16
        b.lo    L(less16)
        ldp     data1, data3, [src1]
index 725705c8df926b667b73aa9545d12795b13b6cd0..d41e617bf08f1a59a7a8a8837de972f6004fefad 100644 (file)
    from the end.  */
 
 ENTRY (MEMCPY)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        add     srcend, src, count
        add     dstend, dstin, count
        cmp     count, 128
@@ -187,10 +183,6 @@ libc_hidden_builtin_def (MEMCPY)
 
 
 ENTRY (MEMMOVE)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        add     srcend, src, count
        add     dstend, dstin, count
        cmp     count, 128
index 229a8a089c8d6d8e3e1d31cd215c90a1b7c8026c..2586c4502d4f1e7d48137b88e07a483e57d15d88 100644 (file)
@@ -55,8 +55,6 @@
    exactly which byte matched.  */
 
 ENTRY (__memrchr)
-       PTR_ARG (0)
-       SIZE_ARG (2)
        add     end, srcin, cntin
        sub     endm1, end, 1
        bic     src, endm1, 15
index 9a5a89ebc5f5645e4340daaa55e6f7fc66ddb45a..5bd1bc7fda8525f7707cebde2597872ad467430a 100644 (file)
@@ -39,9 +39,6 @@
 #define dstend2        x5
 
 ENTRY (MEMSET)
-       PTR_ARG (0)
-       SIZE_ARG (2)
-
        dup     v0.16B, valw
        cmp     count, 16
        b.lo    L(set_small)
index 03e2852eb969d6a3042e0ad09cbcd48ca73d4562..86892b2276285d46ea1a0bd4d5dc39ee8b7285f0 100644 (file)
@@ -60,9 +60,6 @@
 
 ENTRY (__memchr_nosimd)
 
-       PTR_ARG (0)
-       SIZE_ARG (2)
-
        /* Do not dereference srcin if no bytes to compare. */
        cbz     cntin, L(none_chr)
 
index 0be269cf8bb106fcf4d135ea6e0a9585880a641a..ed18682700c245c06389162ceebcdcfdadb8b06f 100644 (file)
 
 ENTRY (__memcpy_a64fx)
 
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        cntb    vlen
        cmp     n, vlen, lsl 1
        b.hi    L(copy_small)
@@ -236,10 +232,6 @@ END (__memcpy_a64fx)
 
 ENTRY_ALIGN (__memmove_a64fx, 4)
 
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        /* Fast case for up to 2 vectors.  */
        cntb    vlen
        cmp     n, vlen, lsl 1
index 85a06332c75d3c06c5f922b581b0a560e95f4919..664f7b4a28d8908fd509f16336442d1182e5feaa 100644 (file)
  */
 
 ENTRY (__memcpy_mops)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        mov     x3, x0
        .inst   0x19010443      /* cpyfp   [x3]!, [x1]!, x2!  */
        .inst   0x19410443      /* cpyfm   [x3]!, [x1]!, x2!  */
index bda5ed013916efecc70ce9025fcb942bfa9be7b3..e86d8b04f53f05c358eb406c58bd74d91234c715 100644 (file)
 
 ENTRY (__memmove_oryon1)
 
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        sub     tmp1, dstin, src
        cmp     count, 96
        ccmp    tmp1, count, 2, hi
@@ -77,10 +73,6 @@ END (__memmove_oryon1)
 
 ENTRY (__memcpy_oryon1)
 
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        add     srcend, src, count
        add     dstend, dstin, count
        cmp     count, 16
index f36248c7d99a612f63afce154c78c13d647a4b31..26d4890d2cd31f060e072050051545a3371e9b6e 100644 (file)
        .arch armv8.2-a+sve
 
 ENTRY (__memcpy_sve)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        cmp     count, 128
        b.hi    L(copy_long)
        cntb    vlen
@@ -144,10 +140,6 @@ END (__memcpy_sve)
 
 
 ENTRY (__memmove_sve)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        cmp     count, 128
        b.hi    L(move_long)
        cntb    vlen
index 2768096e08330b7923358287f079cabee2ad089f..ec650a54cbe2685c69710f96edc4df39071043db 100644 (file)
  */
 
 ENTRY (__memmove_mops)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       SIZE_ARG (2)
-
        mov     x3, x0
        .inst   0x1d010443      /* cpyp    [x3]!, [x1]!, x2!  */
        .inst   0x1d410443      /* cpym    [x3]!, [x1]!, x2!  */
index 7f369977a75949a9da60e6505e2be85af64d78df..ea60b78e695a3135f21644e7f69cce630579886c 100644 (file)
@@ -55,8 +55,6 @@
 #define BTI_C
 
 ENTRY (__memset_a64fx)
-       PTR_ARG (0)
-       SIZE_ARG (2)
 
        cntb    vector_length
        dup     z0.b, valw
index d1d9be621183773df103c3244c96656ac5f8f812..ef7146404eeb5b0d706585ada5039863e87e51b9 100644 (file)
@@ -34,9 +34,6 @@
 
 ENTRY (__memset_emag)
 
-       PTR_ARG (0)
-       SIZE_ARG (2)
-
        bfi     valw, valw, 8, 8
        bfi     valw, valw, 16, 16
        bfi     val, val, 32, 32
index fb3202b1e4f095aa6b3506cefe414eb25ca91d48..837b8f10c558b17efa2c1e5f81366fad3aa02c3b 100644 (file)
@@ -33,9 +33,6 @@
 
 ENTRY (__memset_kunpeng)
 
-       PTR_ARG (0)
-       SIZE_ARG (2)
-
        dup     v0.16B, valw
        add     dstend, dstin, count
 
index 83cf3784a0e67a9bf98c2f29033845341bc3b84e..283fd4996c8feb2fe1534615dea10410a7c31261 100644 (file)
@@ -26,9 +26,6 @@
  */
 
 ENTRY (__memset_mops)
-       PTR_ARG (0)
-       SIZE_ARG (2)
-
        mov     x3, x0
        .inst   0x19c10443      /* setp    [x3]!, x2!, x1  */
        .inst   0x19c14443      /* setm    [x3]!, x2!, x1  */
index 8e032f131c7c5f6b081e954a222f7008b41efde6..0f9b718f25d04f031f2d292189c2ea0e13ff4b84 100644 (file)
@@ -33,9 +33,6 @@
 
 ENTRY (__memset_oryon1)
 
-       PTR_ARG (0)
-       SIZE_ARG (2)
-
        bfi     valw, valw, 8, 8
        bfi     valw, valw, 16, 16
        bfi     val, val, 32, 32
index 4eb91c988500a1b379397bb4588b2c67f015daa6..457e7216f3695ee186c8d3e9a3d977d9565ae2ef 100644 (file)
@@ -87,7 +87,6 @@
    character, return the length, if not, continue in the main loop.  */
 
 ENTRY (__strlen_asimd)
-       PTR_ARG (0)
        and     tmp1, srcin, MIN_PAGE_SIZE - 1
        cmp     tmp1, MIN_PAGE_SIZE - 32
        b.hi    L(page_cross)
index b630ca099a8f37e61178a9186f97a483c04e6099..73e204c349d83e8bbdd67cc1df926cca6efb7354 100644 (file)
@@ -34,8 +34,6 @@ END (_setjmp)
 libc_hidden_def (_setjmp)
 
 ENTRY (__sigsetjmp)
-       PTR_ARG (0)
-
 1:
        stp     x19, x20, [x0, #JB_X19<<3]
        stp     x21, x22, [x0, #JB_X21<<3]
index 8fb7c33223f6c33050c61d52918bd166d303aedd..878bd97f199e8f568ebde2c7ed2a85dfdab78ad9 100644 (file)
@@ -52,7 +52,6 @@
    If it is not a multiple of 4, there was no match.  */
 
 ENTRY (strchr)
-       PTR_ARG (0)
        bic     src, srcin, 15
        dup     vrepchr.16b, chrin
        ld1     {vdata.16b}, [src]
index 7862cdfd700e798d90788540c7bec971d0804c3e..39c9909d068ca3b0503111205e588d9aed26c2ad 100644 (file)
@@ -51,7 +51,6 @@
    exactly which byte matched.  */
 
 ENTRY (__strchrnul)
-       PTR_ARG (0)
        bic     src, srcin, 15
        dup     vrepchr.16b, chrin
        ld1     {vdata.16b}, [src]
index d724586d39d53b80a28247f77de7bbd98582ec5f..d07ab2e6efcf38983995a8eb8158f9d5d8ed97d6 100644 (file)
@@ -62,8 +62,6 @@
    NUL too in big-endian, byte-reverse the data before the NUL check.  */
 
 ENTRY(strcmp)
-       PTR_ARG (0)
-       PTR_ARG (1)
        sub     off2, src2, src1
        mov     zeroones, REP8_01
        and     tmp, src1, 7
index 5477597f71508c3966f546ec055328578037ec36..ce4c3e8b5e86e05f4565ee11244680fac91053e6 100644 (file)
@@ -69,8 +69,6 @@
    exactly which byte matched.  */
 
 ENTRY (STRCPY)
-       PTR_ARG (0)
-       PTR_ARG (1)
        bic     src, srcin, 15
        ld1     {vdata.16b}, [src]
        cmeq    vhas_nul.16b, vdata.16b, 0
index a7df05676caca52ebe76f6d47a3ab39378571b35..1874a55d91238fd05c40304b5777607730d5ce65 100644 (file)
@@ -49,7 +49,6 @@
    identifies the first zero byte.  */
 
 ENTRY (STRLEN)
-       PTR_ARG (0)
        bic     src, srcin, 15
        ld1     {vdata.16b}, [src]
        cmeq    vhas_nul.16b, vdata.16b, 0
index 9c406395bc888ef567f72efa17a30e87bfd7e389..e60dbe0e25ac03fe71047acdc9641797bc432f01 100644 (file)
@@ -49,8 +49,6 @@
    identifies the first zero byte.  */
 
 ENTRY (__strnlen)
-       PTR_ARG (0)
-       SIZE_ARG (1)
        bic     src, srcin, 15
        cbz     cntin, L(nomatch)
        ld1     {vdata.16b}, [src]
index 869b1cd790933165cff3fbef3d814f1511594f15..8f4e7ee4f63eed1a3c587346c186e708755b8d99 100644 (file)
@@ -55,7 +55,6 @@
    if the relevant byte matched the NUL end of string.  */
 
 ENTRY (strrchr)
-       PTR_ARG (0)
        bic     src, srcin, 15
        dup     vrepchr.16b, chrin
        movi    vrepmask.16b, 0x33
index 97e1afa57f180cd8459f04b785678a3f1ee47c02..40015c6933110b522c616ed8801ffc47cc1599e0 100644 (file)
  */
         .text
 ENTRY(__clone)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       PTR_ARG (3)
-       PTR_ARG (4)
-       PTR_ARG (5)
-       PTR_ARG (6)
        /* Save args for the child.  */
        mov     x10, x0
        mov     x11, x2
index 443e117bf946f57ed4d348398fd1a5522c1553a2..c9ca845ef29ded2d5e9a428bbca1ef8899d9dd13 100644 (file)
 
         .text
 ENTRY(__clone3)
-       PTR_ARG (0)
-       PTR_ARG (1)
-       PTR_ARG (3)
-       PTR_ARG (4)
        /* Save args for the child.  */
        mov     x10, x0         /* cl_args  */
        mov     x11, x2         /* func  */
index d9dd066051e707a307054a125f64b5725339eaa2..6e7fc241f5c7e7e646bf10e750293f8525721c42 100644 (file)
@@ -30,7 +30,6 @@
        .text
 
 ENTRY(__getcontext)
-       PTR_ARG (0)
        /* The saved context will return to the getcontext() call point
           with a return value of 0 */
        str     xzr,      [x0, oX0 +  0 * SZREG]
index 695fc5b9b58fe2fc55697ce58e697f7115aa0892..022a263c475dd6fc7dfea69024a37ad38aae8cad 100644 (file)
@@ -34,7 +34,6 @@
        .text
 
 ENTRY (__setcontext)
-       PTR_ARG (0)
        /* Save a copy of UCP.  */
        mov     x9, x0
 
index 893a9028664179fac2e56b12865d28dcdc54eb98..cc41253a132bf24c75e766b5aed12a63ee446824 100644 (file)
@@ -27,7 +27,6 @@
 
        .text
 ENTRY(__swapcontext)
-       PTR_ARG (0)
        /* Set the value returned when swapcontext() returns in this context.
           And set up x1 to become the return address of the caller, so we
           can return there with a normal RET instead of an indirect jump.  */