config.gcc (*-*-netbsd*): Remove check for NetBSD versions not having __cxa_atexit.
authorKrister Walfridsson <krister.walfridsson@gmail.com>
Sun, 23 Jul 2017 23:43:08 +0000 (23:43 +0000)
committerKrister Walfridsson <kristerw@gcc.gnu.org>
Sun, 23 Jul 2017 23:43:08 +0000 (23:43 +0000)
2017-07-23  Krister Walfridsson  <krister.walfridsson@gmail.com>

* config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
having __cxa_atexit.

From-SVN: r250466

gcc/ChangeLog
gcc/config.gcc

index 8887cef..4740edb 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-23  Krister Walfridsson  <krister.walfridsson@gmail.com>
+
+       * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
+       having __cxa_atexit.
+
 2017-07-23  Michael Collison  <michael.collison@arm.com>
 
        * config/arm/arm.c (arm_option_override): Deprecate
index b8b9969..2ae0218 100644 (file)
@@ -798,14 +798,7 @@ case ${target} in
   case ${enable_threads} in
     "" | yes | posix) thread_file='posix' ;;
   esac
-
-  # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
-  # default (unless overridden by --disable-__cxa_atexit).
-  case ${target} in
-    *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
-      default_use_cxa_atexit=yes
-      ;;
-  esac
+  default_use_cxa_atexit=yes
   ;;
 *-*-openbsd*)
   tmake_file="t-openbsd"