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 Force use of static TLS space.
details: https://anonhg.NetBSD.org/src/rev/57d4c291bad3
branches: trunk
changeset: 790759:57d4c291bad3
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Oct 20 13:30:50 2013 +0000
description:
Force use of static TLS space.
diffstat:
tests/lib/libc/tls_dso/h_tls_dynamic.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r b0769f0ece6a -r 57d4c291bad3 tests/lib/libc/tls_dso/h_tls_dynamic.c
--- a/tests/lib/libc/tls_dso/h_tls_dynamic.c Sun Oct 20 11:37:53 2013 +0000
+++ b/tests/lib/libc/tls_dso/h_tls_dynamic.c Sun Oct 20 13:30:50 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_tls_dynamic.c,v 1.3 2012/01/17 20:34:57 joerg Exp $ */
+/* $NetBSD: h_tls_dynamic.c,v 1.4 2013/10/20 13:30:50 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.3 2012/01/17 20:34:57 joerg Exp $");
+__RCSID("$NetBSD: h_tls_dynamic.c,v 1.4 2013/10/20 13:30:50 joerg Exp $");
#include <unistd.h>
#include <sys/tls.h>
@@ -43,6 +43,7 @@
__thread int var1 = 1;
__thread int var2;
+__attribute__((__tls_model__("initial-exec"))) __thread int var3;
__thread pid_t (*dso_var1)(void) = getpid;
@@ -53,4 +54,5 @@
{
var1 = x;
var2 = y;
+ var3 = x;
}
Home |
Main Index |
Thread Index |
Old Index