Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Apr 2004 01:46:18 -0800 (PST)
From:      Doug Rabson <dfr@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 50248 for review
Message-ID:  <200404030946.i339kIHd097274@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=50248

Change 50248 by dfr@dfr_home on 2004/04/03 01:45:26

	Add reference to external array to make check the use of
	relocs with offsets. Add reference to local TLS to check
	local exec tls model.

Affected files ...

.. //depot/projects/kse/tools/regression/tls/libxx/xx.c#2 edit
.. //depot/projects/kse/tools/regression/tls/ttls1/ttls1.c#2 edit

Differences ...

==== //depot/projects/kse/tools/regression/tls/libxx/xx.c#2 (text+ko) ====

@@ -1,6 +1,7 @@
 extern int __thread yy1;
 int __thread xx1 = 1;
 int __thread xx2 = 2;
+int __thread xxa[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
 
 int
 xxyy()

==== //depot/projects/kse/tools/regression/tls/ttls1/ttls1.c#2 (text+ko) ====

@@ -2,9 +2,12 @@
 
 extern int __thread xx1;
 extern int __thread xx2;
+extern int __thread xxa[];
+int __thread a[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
 extern int xxyy();
 
 int main(int argc, char** argv)
 {
-	printf("xx1=%d, xx2=%d, xxyy()=%d\n", xx1, xx2, xxyy());
+	printf("xx1=%d, xx2=%d, xxa[5]=%d, a[5]=%d, xxyy()=%d\n",
+	    xx1, xx2, xxa[5], a[5], xxyy());
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404030946.i339kIHd097274>