From 046b40694fb1872067a5dad6b937633e4f06ba87 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 25 Aug 2002 22:34:57 +0000 Subject: Update. 2002-08-25 Ulrich Drepper * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is not moved ahead of the fputs call. * elf/tst-tlsmod2.c (in_dso): Likewise. * elf/tst-tlsmod3.c (in_dso2): Likewise. * elf/tst-tlsmod4.c (in_dso): Likewise. --- elf/tst-tlsmod1.c | 1 + 1 file changed, 1 insertion(+) (limited to 'elf/tst-tlsmod1.c') diff --git a/elf/tst-tlsmod1.c b/elf/tst-tlsmod1.c index 946aa375cc..c74a617b77 100644 --- a/elf/tst-tlsmod1.c +++ b/elf/tst-tlsmod1.c @@ -23,6 +23,7 @@ in_dso (void) /* Get variables using initial exec model. */ fputs ("get sum of foo and bar (IE)", stdout); + asm ("" ::: "memory"); ap = TLS_IE (foo); bp = TLS_IE (bar); printf (" = %d\n", *ap + *bp); -- cgit v1.2.3