IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / tls / opt-3.c
blobdd37dbc828a954d0da57b7e57dabf53342607506
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fpic" } */
3 /* { dg-options "-O2 -fpic -mregparm=3" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
4 /* { dg-require-effective-target tls } */
5 /* { dg-require-effective-target fpic } */
7 extern __thread int i, j, k;
8 extern void bar(int *, int *, int *);
9 void foo(void)
11 bar(&i, &j, &k);