/* Register the Solaris-specific #pragma directives. */
#define REGISTER_TARGET_PRAGMAS() solaris_register_pragmas ()
-#if HAVE_AS_TLS && !HAVE_GNU_AS
-#undef TARGET_SUN_TLS
-#define TARGET_SUN_TLS 1
-#endif
-
#undef LOCAL_LABEL_PREFIX
#define LOCAL_LABEL_PREFIX "."
#define TARGET_STACK_PROTECT_GUARD hook_tree_void_null
#endif
-#if !TARGET_SUN_TLS
+#if HAVE_GNU_AS
#undef TARGET_ASM_OUTPUT_DWARF_DTPREL
#define TARGET_ASM_OUTPUT_DWARF_DTPREL sparc_output_dwarf_dtprel
#endif
/* In non-PIC mode, Sun as (unlike GNU as) emits PC-relative relocations for
the GOT symbol with the 32-bit ABI, so we reload the GOT register. */
- if (TARGET_SUN_TLS && TARGET_ARCH32)
+ if (!HAVE_GNU_AS && TARGET_ARCH32)
{
load_got_register ();
return got_register_rtx;
emit_insn (gen_tie_ld32 (temp3, got, temp2, addr));
else
emit_insn (gen_tie_ld64 (temp3, got, temp2, addr));
- if (TARGET_SUN_TLS)
+ if (!HAVE_GNU_AS)
{
ret = gen_reg_rtx (Pmode);
emit_insn (gen_tie_add (Pmode, ret, gen_rtx_REG (Pmode, 7),
/* TLS support defaults to GNU extensions. The original Sun flavor must be
activated in separate configuration files. */
#define TARGET_TLS HAVE_AS_TLS
-#define TARGET_SUN_TLS 0
#ifdef HAVE_AS_FMAF_HPC_VIS3
#define AS_NIAGARA3_FLAG "d"
;; Attributes for branch scheduling
(define_attr "tls_delay_slot" "false,true"
- (symbol_ref "((!TARGET_SUN_TLS && HAVE_GNU_LD) != 0
+ (symbol_ref "((HAVE_GNU_AS && HAVE_GNU_LD) != 0
? TLS_DELAY_SLOT_TRUE : TLS_DELAY_SLOT_FALSE)"))
(define_attr "in_sibcall_delay" "false,true"
(unspec:P [(match_operand:P 2 "register_operand" "r")
(match_operand 3 "tie_symbolic_operand" "")]
UNSPEC_TLSIE)))]
- "TARGET_SUN_TLS"
+ "!HAVE_GNU_AS"
"add\\t%1, %2, %0, %%tie_add(%a3)")
(define_insn "@tle_hix22<P:mode>"