diff options
| author | Joseph Myers <josmyers@redhat.com> | 2025-10-28 12:15:02 +0000 |
|---|---|---|
| committer | Joseph Myers <josmyers@redhat.com> | 2025-10-28 12:15:02 +0000 |
| commit | 096fcdc0a5ca1d3c772a9d10a9bdcc92e6b806ad (patch) | |
| tree | 53a8b552ae649bed24c74147a6a4aef3c51989e9 /stdlib/ullabs.c | |
| parent | 013f5167b9c091dc78779841c3ca1c6c2f218ff2 (diff) | |
Rename uimaxabs to umaxabs (bug 33325)
The C2y function uimaxabs has been renamed to umaxabs. Implement this
change in glibc, keeping a compat symbol under the old name, copying
the test to test the new name and changing the old test to test the
compat symbol. Jakub has done the corresponding change to the
built-in function in GCC.
Tested for x86_64 and x86.
Diffstat (limited to 'stdlib/ullabs.c')
| -rw-r--r-- | stdlib/ullabs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stdlib/ullabs.c b/stdlib/ullabs.c index 11268c29f4..c8d6d23b25 100644 --- a/stdlib/ullabs.c +++ b/stdlib/ullabs.c @@ -17,6 +17,7 @@ #include <limits.h> #include <stdlib.h> +#include <shlib-compat.h> #undef ullabs @@ -29,5 +30,8 @@ ullabs (long long int i) } #if ULONG_MAX == UINT_MAX -weak_alias (ullabs, uimaxabs) +weak_alias (ullabs, umaxabs) +# if SHLIB_COMPAT (libc, GLIBC_2_42, GLIBC_2_43) +compat_symbol (libc, ullabs, uimaxabs, GLIBC_2_42); +# endif #endif |
