[libc-commits] [libc] Reapply "[libc] printf, putchar and vprintf in bareemetal entrypoints… (PR #95619)

via libc-commits libc-commits at lists.llvm.org
Fri Jun 14 15:53:49 PDT 2024


https://github.com/zeroomega created https://github.com/llvm/llvm-project/pull/95619

This reverts commit eca988aa4420f33810f9830c80ff9f149b7928ff. The underlying libc issue was fixed by PR#95576.

The original PR is #95436 , which adds printf, putchar and vprintf in bareemetal entrypoints

>From 6ad5b962b24baa141dd492fb575fd3fd4639c71f Mon Sep 17 00:00:00 2001
From: Haowei Wu <haowei at google.com>
Date: Fri, 14 Jun 2024 15:49:27 -0700
Subject: [PATCH] Reapply "[libc] printf, putchar and vprintf in bareemetal
 entrypoints (#95436)"

This reverts commit eca988aa4420f33810f9830c80ff9f149b7928ff.
The underlying libc issue was fixed by PR#95576.
---
 libc/config/baremetal/arm/entrypoints.txt   | 3 +++
 libc/config/baremetal/riscv/entrypoints.txt | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/libc/config/baremetal/arm/entrypoints.txt b/libc/config/baremetal/arm/entrypoints.txt
index 7fb82c60a1bb8..2930d718fdb21 100644
--- a/libc/config/baremetal/arm/entrypoints.txt
+++ b/libc/config/baremetal/arm/entrypoints.txt
@@ -80,8 +80,11 @@ set(TARGET_LIBC_ENTRYPOINTS
 
     # stdio.h entrypoints
     libc.src.stdio.remove
+    libc.src.stdio.printf
+    libc.src.stdio.putchar
     libc.src.stdio.sprintf
     libc.src.stdio.snprintf
+    libc.src.stdio.vprintf
     libc.src.stdio.vsprintf
     libc.src.stdio.vsnprintf
 
diff --git a/libc/config/baremetal/riscv/entrypoints.txt b/libc/config/baremetal/riscv/entrypoints.txt
index b769b43f03a2c..6d38676b1e8a8 100644
--- a/libc/config/baremetal/riscv/entrypoints.txt
+++ b/libc/config/baremetal/riscv/entrypoints.txt
@@ -80,8 +80,11 @@ set(TARGET_LIBC_ENTRYPOINTS
 
     # stdio.h entrypoints
     libc.src.stdio.remove
+    libc.src.stdio.printf
+    libc.src.stdio.putchar
     libc.src.stdio.sprintf
     libc.src.stdio.snprintf
+    libc.src.stdio.vprintf
     libc.src.stdio.vsprintf
     libc.src.stdio.vsnprintf
 



More information about the libc-commits mailing list