PERFORCE change 50248 for review

Doug Rabson dfr at FreeBSD.org
Sat Apr 3 01:46:20 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=50248

Change 50248 by dfr at 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());
 }


More information about the p4-projects mailing list