[compiler-rt] [compiler-rt][test] `__aeabi_uread*` now take a const pointer (PR #225564)

Trevor Gross via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 18:07:49 PDT 2026


https://github.com/tgross35 created https://github.com/llvm/llvm-project/pull/225564

Discussion inspired by [1] promped a change to rtabi making these take const pointers [2]. Update the test to match.

This is a pretty insignificant change but cleans up a few warnings.

[1]: https://github.com/llvm/llvm-project/pull/167913#discussion_r2527018785
[2]: https://github.com/ARM-software/abi-aa/commit/84e54a7045ff8f37949d2ab193dc07c45717eb41

>From 1a78659c2fa3996ac58abf984c9f721ba42e59c7 Mon Sep 17 00:00:00 2001
From: Trevor Gross <tg at trevorgross.com>
Date: Wed, 23 Sep 2026 01:03:32 +0000
Subject: [PATCH] [compiler-rt][test] `__aeabi_uread*` now take a const pointer

Discussion inspired by [1] promped a change to rtabi making these take
const pointers [2]. Update the test to match.

This is a pretty insignificant change but cleans up a few warnings.

[1]: https://github.com/llvm/llvm-project/pull/167913#discussion_r2527018785
[2]: https://github.com/ARM-software/abi-aa/commit/84e54a7045ff8f37949d2ab193dc07c45717eb41
---
 .../test/builtins/Unit/arm/aeabi_unaligned_access_test.c      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/test/builtins/Unit/arm/aeabi_unaligned_access_test.c b/compiler-rt/test/builtins/Unit/arm/aeabi_unaligned_access_test.c
index a947e097b9c037..2b2b05cd6bb685 100644
--- a/compiler-rt/test/builtins/Unit/arm/aeabi_unaligned_access_test.c
+++ b/compiler-rt/test/builtins/Unit/arm/aeabi_unaligned_access_test.c
@@ -5,9 +5,9 @@
 #include <stdio.h>
 #include <string.h>
 
-extern int __aeabi_uread4(void *);
+extern int __aeabi_uread4(const void *);
 extern int __aeabi_uwrite4(int, void *);
-extern long long __aeabi_uread8(void *);
+extern long long __aeabi_uread8(const void *);
 extern long long __aeabi_uwrite8(long long, void *);
 
 int test_unaligned(void) {



More information about the llvm-commits mailing list