Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / tls / opt-10.c
blob15dc6861042fb0690b6d84a84b888fd3aeb814bc
1 /* { dg-do compile } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-options "-O3 -fpic" } */
4 /* { dg-require-effective-target tls } */
6 /* The web pass was creating unrecognisable pic_load_dot_plus_four insns
7 on ARM. */
9 __thread int a_thread_local;
10 void *
11 spin (int n)
13 int i;
14 for (i = 0; i <= n; i++)
16 a_thread_local += i;