]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Disable <stacktrace> support by default for avr
authorJonathan Wakely <jwakely@redhat.com>
Tue, 5 Sep 2023 10:14:02 +0000 (11:14 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 7 Sep 2023 16:03:34 +0000 (17:03 +0100)
libstdc++-v3/ChangeLog:

* acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
for avr.
* configure: Regenerate.

libstdc++-v3/acinclude.m4
libstdc++-v3/configure

index b7210e09d898a86eef6acd9ca0b609e40ba5c5fc..15b3d74ffb738c233d7a851588d4e43941e8e3af 100644 (file)
@@ -5481,7 +5481,10 @@ BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize"
 
   AC_MSG_CHECKING([whether to build libbacktrace support])
   if test "$enable_libstdcxx_backtrace" = "auto"; then
-    enable_libstdcxx_backtrace="$is_hosted"
+    case "$host" in
+      avr-*-*) enable_libstdcxx_backtrace=no ;;
+      *) enable_libstdcxx_backtrace="$is_hosted" ;;
+    esac
   fi
   AC_MSG_RESULT($enable_libstdcxx_backtrace)
   if test "$enable_libstdcxx_backtrace" = "yes"; then
index dcb9fd6158c93bde8c10399eba210941268871b7..22cb5b02d74b8ed1e5dc624743cdde2500ca1868 100755 (executable)
@@ -73156,7 +73156,10 @@ BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libbacktrace support" >&5
 $as_echo_n "checking whether to build libbacktrace support... " >&6; }
   if test "$enable_libstdcxx_backtrace" = "auto"; then
-    enable_libstdcxx_backtrace="$is_hosted"
+    case "$host" in
+      avr-*-*) enable_libstdcxx_backtrace=no ;;
+      *) enable_libstdcxx_backtrace="$is_hosted" ;;
+    esac
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_backtrace" >&5
 $as_echo "$enable_libstdcxx_backtrace" >&6; }