Add Picolibc support #1886
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 218 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1886"
general
weight: 0.35
cmuellner
Add Picolibc as an additional
bare-metal C library alongside newlib. Picolibc support is upstream in GCC
since GCC 16, so no toolchain patches are needed.
This supersedes #1119, which required an out-of-tree GCC patch and stalled
waiting for upstream GCC. With that support now in GCC 16, this is a clean
reimplementation that needs no patches.
Built on top of #1885: the
--enable-picolibcselection and the multilib/LLVMguards reuse the default-libc-selection infrastructure added there.
Commits
1. Add Picolibc submodule
Tracked like the other C library submodules, cloned over https,
shallow.2. Add Picolibc build support
--enable-picolibcmakes it the default make target; it can also always bebuilt with
make picolibc.- Built with Meson and Ninja. The Meson cross file is small and fully
derived from the target tuple, so it is generated inline in the build rule
rather than tracked or emitted by a separate script.
- The code model and other target flags are inherited from
CFLAGS_FOR_TARGET(--with-cmodeland friends), so picolibc matches therest of the toolchain instead of hardcoding its own.
- Picolibc shares the
riscv*-unknown-elftuple with newlib, so its binutilsand GDB are reused rather than rebuilt.
- Single arch/ABI variant for now (no multilib);
--enable-multiliband--enable-llvmare rejected for picolibc via the prep guards.- Meson is added to the dependency lists.
3. CI: build Picolibc toolchains
Add picolibc to the default build matrix (
elf-picolibcartifact name),with the LLVM compiler excluded (no Clang/picolibc integration yet).