aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/tls-disable-literal-pool.c
blob: fe14a6b132c8d247a372474ad7a81d586a65ef38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-require-effective-target tls } */
/* { dg-require-effective-target arm_cortex_m } */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-options "-mslow-flash-data" } */

__thread int x = 0;

int
bar ()
{
  return x;
}

/* { dg-error "accessing thread-local storage is not currently supported with -mpure-code or -mslow-flash-data" "" { target *-*-* } 12 } */