Use ELF aliases for most of the strto*_l/wcsto*_l functions.
We don't need any of these no-op implementations that the compiler turns into a single branch instruction.
There is some __INTRODUCED_IN cleanup we can do here, but I'm going to do that separately as part of a broader "let's just __RENAME any of the functions that take [but ignore] a locale_t to the function that does the real work" header-only change, where we can do more.
Change-Id: I208768f95d5554455b755d21e8eb2c8a21000101
diff --git a/libc/bionic/wcstod.cpp b/libc/bionic/wcstod.cpp
index c82d788..00c8a08 100644
--- a/libc/bionic/wcstod.cpp
+++ b/libc/bionic/wcstod.cpp
@@ -94,11 +94,14 @@
float wcstof(const wchar_t* s, wchar_t** end) {
return wcstod<float>(s, end, strtof);
}
+__strong_alias(wcstof_l, wcstof);
double wcstod(const wchar_t* s, wchar_t** end) {
return wcstod<double>(s, end, strtod);
}
+__strong_alias(wcstod_l, wcstod);
long double wcstold(const wchar_t* s, wchar_t** end) {
return wcstod<long double>(s, end, strtold);
}
+__strong_alias(wcstold_l, wcstold);