[PATCH v1] libstdc++: Disable libbacktrace by default for arm*-*-eabi* [PR128487]

Richard Earnshaw via Sourceware Forge forge-bot+rearnsha@forge-stage.sourceware.org
Thu Dec 3 13:03:53 GMT 2026


Richard Earnshaw (rearnsha) <rearnsha@arm.com>) commented on the code:


> +++ libstdc++-v3/acinclude.m4
> @@ -5435,6 +5435,7 @@ BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize"
>    if test "$enable_libstdcxx_backtrace" = "auto"; then
>      case "$host" in
>        avr-*-*) enable_libstdcxx_backtrace=no ;;
> +      arm*-*-eabi*) enable_libstdcxx_backtrace=no ;;
If I look through config.gcc, I see patterns like
```
        arm*-*-netbsdelf-*eabi*)
```
Which would also match your wild-card pattern.  So I think this would incorrectly disable backtrace on some hosted platforms.

This one
```
arm*-*-uclinux*eabi*)           # ARM ucLinux
```
might, or might not, also be an issue.

You can normally work around this by putting a more explicit match before your new one, but it can be a bit fragile.  I do wonder if this is really worthwhile for a testsuite issue.


--
https://forge.sourceware.org/gcc/gcc/pulls/270#issuecomment-8543


More information about the Libstdc++ mailing list