[PATCH v1] libstdc++: Disable libbacktrace by default for arm*-*-eabi* [PR128487]
Jonathan Wakely
jwakely@redhat.com
Mon Nov 9 09:17:07 GMT 2026
On Mon, 9 Nov 2026 at 06:37, Torbjörn Svensson via Sourceware Forge
<forge-bot+azoff@forge-stage.sourceware.org> wrote:
>
> From: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
>
> Do not enable libbacktrace automatically for arm*-*-eabi* targets.
>
> libstdc++-v3/ChangeLog:
>
> PR libstdc++/128487
> * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable libbacktrace
> by default for arm*-*-eabi* targets.
> * configure: Regenerate.
>
> Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
> ---
> This patch disables automatic building of libbacktrace for arm*-*-eabi* targets. It can still be enabled explicitly with --enable-libstdcxx-backtrace.
>
> With libbacktrace disabled, the stacktrace tests are reported as unsupported. This avoids the following runtime failures on all tested arm-none-eabi configurations:
>
> - FAIL: 19_diagnostics/stacktrace/entry.cc -std=gnu++23 execution test
> - FAIL: 19_diagnostics/stacktrace/entry.cc -std=gnu++29 execution test
> - FAIL: 19_diagnostics/stacktrace/output.cc -std=gnu++23 execution test
> - FAIL: 19_diagnostics/stacktrace/output.cc -std=gnu++29 execution test
> - FAIL: 19_diagnostics/stacktrace/stacktrace.cc -std=gnu++23 execution test
> - FAIL: 19_diagnostics/stacktrace/stacktrace.cc -std=gnu++29 execution test
>
> Regtested on arm-none-eabi, using r17-5743-ge33129b871c302 as baseline.
>
> Ok for trunk and releases/gcc-16?
No objection from me if the target maintainers think std::stacktrace
is not useful on the target. But if it's just missing support in
libbacktrace or that we need some target-specific adjustment in the
libstdc++ code, we should do that instead.
More information about the Libstdc++
mailing list