The first patch in this series selects picolibc as the default C library when the target is *-picolibc-*. This configures the default compiler specs for picolibc usage, including the addition of three picolic-specific options.
The section patch in this series allows the default C library to be selected separately from the target name. This allows toolchains for targets like Zephyr to use picolibc without needing to include 'picolibc' in the target name. Since January, this series has been tested with 11 different targets as a part of the Zephyr 0.18 SDK development work. This uncovered issues with the generated specs which were fixed by adding libc-specific spec fragment defines. The C library selection mechanism has been simplified to only select between newlib and picolibc to avoid any potential impact on other toolchains. Keith Packard (2): Support picolibc targets Allow default libc (either newlib or picolibc) to be specified to configure gcc/config.gcc | 51 +++++++++++++++++++++++++++----- gcc/config/picolibc-spec.h | 57 ++++++++++++++++++++++++++++++++++++ gcc/config/picolibc.opt | 47 +++++++++++++++++++++++++++++ gcc/config/picolibc.opt.urls | 2 ++ gcc/configure.ac | 4 +++ gcc/gcc.cc | 17 +++++++++-- 6 files changed, 168 insertions(+), 10 deletions(-) create mode 100644 gcc/config/picolibc-spec.h create mode 100644 gcc/config/picolibc.opt create mode 100644 gcc/config/picolibc.opt.urls -- 2.49.0