public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Always assume NetBSD provides __cxa_atexit
@ 2017-07-24  1:59 Krister Walfridsson
  0 siblings, 0 replies; only message in thread
From: Krister Walfridsson @ 2017-07-24  1:59 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: TEXT/PLAIN, Size: 387 bytes --]

I have committed the attached patch to remove checks for obsolete NetBSD 
releases from the 1990s that do not provide __cxa_atexit.

Bootstrapped and tested on i386-unknown-netbsdelf6.1 and
x86_64-unknown-netbsd6.1.

    /Krister


2017-07-23  Krister Walfridsson  <krister.walfridsson@gmail.com>

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

[-- Attachment #2: Type: TEXT/PLAIN, Size: 611 bytes --]

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 250465)
+++ gcc/config.gcc	(revision 250466)
@@ -798,14 +798,7 @@
   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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-24  1:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-24  1:59 [committed] Always assume NetBSD provides __cxa_atexit Krister Walfridsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).