Skip to content

[libc] printf, putchar and vprintf in bareemetal entrypoints #95436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

petrhosek
Copy link
Member

We now have baremetal implementations of these entrypoints.

We now have baremetal implementations of these entrypoints.
@llvmbot
Copy link
Member

llvmbot commented Jun 13, 2024

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

Changes

We now have baremetal implementations of these entrypoints.


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

2 Files Affected:

  • (modified) libc/config/baremetal/arm/entrypoints.txt (+3)
  • (modified) libc/config/baremetal/riscv/entrypoints.txt (+3)
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
 

@petrhosek petrhosek merged commit b1de42a into llvm:main Jun 14, 2024
8 checks passed
zeroomega added a commit that referenced this pull request Jun 14, 2024
…95436)"

This reverts commit b1de42a, which
breaks libc build for baremetal targets.
zeroomega added a commit to zeroomega/llvm-project that referenced this pull request Jun 14, 2024
…llvm#95436)"

This reverts commit eca988a.
The underlying libc issue was fixed by PR#95576.
zeroomega added a commit that referenced this pull request Jun 14, 2024
#95619)

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

The original PR is #95436 , which adds printf, putchar and vprintf in
bareemetal entrypoints
@petrhosek petrhosek deleted the libc-baremetal-stdio branch July 12, 2024 08:27
EthanLuisMcDonough pushed a commit to EthanLuisMcDonough/llvm-project that referenced this pull request Aug 13, 2024
)

We now have baremetal implementations of these entrypoints.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants