OSDN Git Service

* gcc.dg/vect/vect-105.c: Prevent compiler from hoisting abort
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tls / opt-10.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-options "-O3 -fpic" } */
4 /* { dg-require-effective-target tls } */
5
6 /* The web pass was creating unrecognisable pic_load_dot_plus_four insns
7    on ARM.  */
8
9 __thread int a_thread_local;
10 void *
11 spin (int n)
12 {
13   int i;
14   for (i = 0; i <= n; i++)
15     {
16       a_thread_local += i;
17     }
18 }