[2/3] picolibc: Add newlib and picolibc as default C library choices

Message ID 20220824180426.820576-3-keithp@keithp.com
State New, archived
Headers
Series picolibc: Add picolibc linking help |

Commit Message

Keith Packard Aug. 24, 2022, 6:04 p.m. UTC
  Signed-off-by: Keith Packard <keithp@keithp.com>
---
 gcc/config.gcc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gcc/config.gcc b/gcc/config.gcc
index f8b6da4f4e7..0aa4bd6c3dd 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -639,7 +639,7 @@  case ${target} in
 esac
 
 # Common C libraries.
-tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4"
+tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4 LIBC_NEWLIB=5 LIBC_PICOLIBC=6"
 
 default_libc=""
 
@@ -5878,6 +5878,12 @@  bionic)
 musl)
     default_libc=LIBC_MUSL
     ;;
+newlib)
+    default_libc=LIBC_NEWLIB
+    ;;
+picolibc)
+    default_libc=LIBC_PICOLIBC
+    ;;
 esac
 
 case "$default_libc" in