Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/tls_dso Revert, init-exec in combination with...



details:   https://anonhg.NetBSD.org/src/rev/f33eee3ba815
branches:  trunk
changeset: 790805:f33eee3ba815
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Oct 21 19:11:17 2013 +0000

description:
Revert, init-exec in combination with initalised TLS variables is not
supported.

diffstat:

 tests/lib/libc/tls_dso/h_tls_dynamic.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r a38d113d2f53 -r f33eee3ba815 tests/lib/libc/tls_dso/h_tls_dynamic.c
--- a/tests/lib/libc/tls_dso/h_tls_dynamic.c    Mon Oct 21 17:47:28 2013 +0000
+++ b/tests/lib/libc/tls_dso/h_tls_dynamic.c    Mon Oct 21 19:11:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_tls_dynamic.c,v 1.4 2013/10/20 13:30:50 joerg Exp $  */
+/*     $NetBSD: h_tls_dynamic.c,v 1.5 2013/10/21 19:11:17 joerg Exp $  */
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: h_tls_dynamic.c,v 1.4 2013/10/20 13:30:50 joerg Exp $");
+__RCSID("$NetBSD: h_tls_dynamic.c,v 1.5 2013/10/21 19:11:17 joerg Exp $");
 
 #include <unistd.h>
 #include <sys/tls.h>
@@ -43,7 +43,6 @@
 
 __thread int var1 = 1;
 __thread int var2;
-__attribute__((__tls_model__("initial-exec"))) __thread int var3;
 
 __thread pid_t (*dso_var1)(void) = getpid;
 
@@ -54,5 +53,4 @@
 {
        var1 = x;
        var2 = y;
-       var3 = x;
 }



Home | Main Index | Thread Index | Old Index