/* Macros to support TLS testing in times of missing compiler support. */ #define COMMON_INT_DEF(x) \ __asm__ (".tls_common " #x ",4,4") /* XXX Until we get compiler support we don't need declarations. */ #define COMMON_INT_DECL(x) /* XXX This definition will probably be machine specific, too. */ #define VAR_INT_DEF(x) \ __asm__ (".section .tdata\n\t" \ ".globl " #x "\n" \ ".balign 4\n" \ #x ":\t.long 0\n\t" \ ".size " #x ",4\n\t" \ ".previous") /* XXX Until we get compiler support we don't need declarations. */ #define VAR_INT_DECL(x) #ifdef __aarch64__ #include #endif #ifdef __alpha__ #include #endif #if defined(__arc__) || defined(__ARC64_ARCH32__) #include #endif #ifdef __arm__ #ifdef __thumb__ #include #else #include #endif #endif #ifdef __csky__ #include #endif #ifdef __i386__ #include #endif #ifdef __ia64__ #include #endif #ifdef __m68k__ #include #endif #ifdef __metag__ #include #endif #ifdef __microblaze__ #include #endif #ifdef __mips__ #include #endif #ifdef __nios2__ #include #endif #if defined(__powerpc__) && !defined(__powerpc64__) #include #endif #if defined(__powerpc__) && defined(__powerpc64__) #include #endif #ifdef __riscv #include #endif #ifdef __sh__ #include #endif #ifdef __sparc__ #include #endif #ifdef __x86_64__ #include #endif #ifdef __xtensa__ #include #endif #ifdef __or1k__ #include #endif #if !defined TLS_LE || !defined TLS_IE \ || !defined TLS_LD || !defined TLS_GD # error "No support for this architecture so far." #endif