]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tls/opt-10.c
Makefile.in (libgcc-support, [...]): Add emutls.c.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tls / opt-10.c
CommitLineData
b233cb87 1/* { dg-do compile } */
6137ba90
PB
2/* { dg-options "-O3 -fpic" } */
3
4/* The web pass was creating unrecognisable pic_load_dot_plus_four insns
5 on ARM. */
6
7__thread int a_thread_local;
8void *
9spin (int n)
10{
11 int i;
12 for (i = 0; i <= n; i++)
13 {
14 a_thread_local += i;
15 }
16}