| 1 |
/* { dg-do compile { target { *-*-linux* && { ia32 && tls_get_addr_via_got } } } } */ |
| 2 |
/* { dg-options "-fpic -fno-plt" } */ |
| 3 |
|
| 4 |
static __thread int ld; |
| 5 |
|
| 6 |
int * |
| 7 |
get_ld (void) |
| 8 |
{ |
| 9 |
return &ld; |
| 10 |
} |
| 11 |
|
| 12 |
/* { dg-final { scan-assembler-not "call\[ \t\]\\*___tls_get_addr@GOT\\(%ebx\\)" } } */ |