]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hpux.h (TARGET_HAVE_TLS): Define it to false.
authorMark Mitchell <mark@codesourcery.com>
Thu, 4 Dec 2003 04:47:17 +0000 (04:47 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 4 Dec 2003 04:47:17 +0000 (04:47 +0000)
* config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
* config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
HAVE_AS_TLS is true.
* config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.

From-SVN: r74268

gcc/ChangeLog
gcc/config/ia64/hpux.h
gcc/config/ia64/ia64.c
gcc/config/ia64/ia64.h

index 871348e91d98d863e5619c59c289324bd7e26709..40639766f6a33b58ab0b3be5b28621b551a902cb 100644 (file)
@@ -1,3 +1,10 @@
+2003-12-03  Mark Mitchell  <mark@codesourcery.com>
+
+       * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
+       * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
+       HAVE_AS_TLS is true.
+       * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
+
 2003-12-03  James E Wilson  <wilson@specifixinc.com>
 
        2003-11-29  James E Wilson  <wilson@specifixinc.com>
index 90303eace1fc7e51ce65ce8e12e426effa945c58..548ed01856789516ddc8d1c8cea6da23a4346338 100644 (file)
@@ -188,3 +188,7 @@ do {                                                                \
 #define TARGET_ASM_SELECT_RTX_SECTION  ia64_rwreloc_select_rtx_section
 #undef  TARGET_SECTION_TYPE_FLAGS
 #define TARGET_SECTION_TYPE_FLAGS  ia64_rwreloc_section_type_flags
+
+/* HP-UX does not support thread-local storage.  */
+#undef TARGET_HAVE_TLS
+#define TARGET_HAVE_TLS false
index 0b1ff2aed88396e6dfe583f3e5a0eef51644c152..9242afbab8d542b4267425df97c3b83ecae58f0b 100644 (file)
@@ -280,11 +280,6 @@ static const struct attribute_spec ia64_attribute_table[] =
 #undef TARGET_SCHED_REORDER2
 #define TARGET_SCHED_REORDER2 ia64_sched_reorder2
 
-#ifdef HAVE_AS_TLS
-#undef TARGET_HAVE_TLS
-#define TARGET_HAVE_TLS true
-#endif
-
 #undef TARGET_ASM_OUTPUT_MI_THUNK
 #define TARGET_ASM_OUTPUT_MI_THUNK ia64_output_mi_thunk
 #undef TARGET_ASM_CAN_OUTPUT_MI_THUNK
index 60d014363c1ef25d8dff3d3b77637fbbb740f5ed..1d37dfa41a4fcb03434a63ceb3bc8a362f7fc241 100644 (file)
@@ -133,6 +133,15 @@ extern int target_flags;
 
 #define TARGET_DWARF2_ASM      (target_flags & MASK_DWARF2_ASM)
 
+/* If the assembler supports thread-local storage, assume that the
+   system does as well.  If a particular target system has an
+   assembler that supports TLS -- but the rest of the system does not
+   support TLS -- that system should explicit define TARGET_HAVE_TLS
+   to false in its own configuration file.  */
+#if !defined(TARGET_HAVE_TLS) && defined(HAVE_AS_TLS)
+#define TARGET_HAVE_TLS true
+#endif
+
 extern int ia64_tls_size;
 #define TARGET_TLS14           (ia64_tls_size == 14)
 #define TARGET_TLS22           (ia64_tls_size == 22)