Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr121208-2a.c

raw
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fPIC -mtls-dialect=gnu" } */
3
4 typedef unsigned int uword_t __attribute__ ((mode (__word__)));
5 extern __thread int bar;
6 extern void func (void);
7
8 __attribute__((target("general-regs-only")))
9 __attribute__((interrupt))
10 void
11 foo (void *frame, uword_t error)
12 {
13 bar = 1; /* { dg-error -mtls-dialect=gnu2 } */
14 if (error == 0)
15 func ();
16 bar = 0;
17 }