Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib Drop TLS variant checks, emutls is enough fo...



details:   https://anonhg.NetBSD.org/src/rev/5d14321d0a0b
branches:  trunk
changeset: 825445:5d14321d0a0b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Jul 14 19:24:52 2017 +0000

description:
Drop TLS variant checks, emutls is enough for VAX and Sun2.

diffstat:

 lib/libc/stdlib/exit.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r d65cdd9beaf3 -r 5d14321d0a0b lib/libc/stdlib/exit.c
--- a/lib/libc/stdlib/exit.c    Fri Jul 14 19:24:12 2017 +0000
+++ b/lib/libc/stdlib/exit.c    Fri Jul 14 19:24:52 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exit.c,v 1.16 2017/07/11 15:21:35 joerg Exp $  */
+/*     $NetBSD: exit.c,v 1.17 2017/07/14 19:24:52 joerg Exp $  */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -34,11 +34,10 @@
 #if 0
 static char sccsid[] = "@(#)exit.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: exit.c,v 1.16 2017/07/11 15:21:35 joerg Exp $");
+__RCSID("$NetBSD: exit.c,v 1.17 2017/07/14 19:24:52 joerg Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
-#include <sys/tls.h>
 #include <stdlib.h>
 #include <unistd.h>
 #ifdef _LIBC
@@ -56,10 +55,8 @@
 {
 
 #ifdef _LIBC
-#  if defined(__HAVE_TLS_VARIANT_I) || defined(__HAVE_TLS_VARIANT_II)
        if (__cxa_thread_atexit_used)
                __cxa_thread_run_atexit();
-#  endif
        __cxa_finalize(NULL);
 #endif
        if (__cleanup)



Home | Main Index | Thread Index | Old Index