From ab0b205be10a82df12d64713da366bafcd39781d Mon Sep 17 00:00:00 2001 From: Adrian Gielniewski Date: Thu, 27 Feb 2025 10:20:42 +0100 Subject: [PATCH] picolibc: Disable exceptions for picolibc libstdc++ Picolibc is targeted for smaller embedded systems. It brings improvement over newlib-nano in case of pure C applications. However when used with C++ applications all gains from smaller size of libc are wasted by exception handling support in libstdc++. This change disables exception support in picolibc libstdc++. It results in decreased flash usage - ~9.5kB for ARM target. Signed-off-by: Adrian Gielniewski --- .gitmodules | 2 +- crosstool-ng | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 664ce429..dedda16d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "crosstool-ng"] path = crosstool-ng - url = https://github.com/zephyrproject-rtos/crosstool-ng.git + url = https://github.com/adigie/crosstool-ng.git [submodule "binutils"] path = binutils url = https://github.com/zephyrproject-rtos/binutils-gdb.git diff --git a/crosstool-ng b/crosstool-ng index 53b5327d..dfe7c157 160000 --- a/crosstool-ng +++ b/crosstool-ng @@ -1 +1 @@ -Subproject commit 53b5327d821a6b6949fa455f14a9631146af897c +Subproject commit dfe7c1573608deb1fd9674e2c1cdf2e967d4d7a5