[libc-commits] [libc] [libc] Match stdlib.h entrypoints with types (PR #85030)

via libc-commits libc-commits at lists.llvm.org
Tue Mar 12 23:57:13 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

<details>
<summary>Changes</summary>

To match the entrypoints and types we need to include __qsortrcompare_t and omit __atexithandler_t.

---
Full diff: https://github.com/llvm/llvm-project/pull/85030.diff


1 Files Affected:

- (modified) libc/config/baremetal/api.td (+1-1) 


``````````diff
diff --git a/libc/config/baremetal/api.td b/libc/config/baremetal/api.td
index 80d0e0ba22ca51..c29b3b94bca878 100644
--- a/libc/config/baremetal/api.td
+++ b/libc/config/baremetal/api.td
@@ -60,7 +60,7 @@ def StdlibAPI : PublicAPI<"stdlib.h"> {
     "size_t",
     "__bsearchcompare_t",
     "__qsortcompare_t",
-    "__atexithandler_t",
+    "__qsortrcompare_t",
   ];
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/85030


More information about the libc-commits mailing list