rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
authorJanis Johnson <janis187@us.ibm.com>
Mon, 14 Apr 2003 22:35:45 +0000 (22:35 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Mon, 14 Apr 2003 22:35:45 +0000 (22:35 +0000)
2003-04-14  Janis Johnson  <janis287@us.ibm.com>

* rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.

From-SVN: r65602

gcc/ChangeLog
gcc/rtl.h

index 5b74c1a..db01c06 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-14  Janis Johnson  <janis287@us.ibm.com>
+
+       * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
+
 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
 
        * Makefile.in (c-opts.o): Use custom action.
index fa5ef84..f1b40a2 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1276,7 +1276,7 @@ do {                                              \
    SYMBOL_REF_TLS_MODEL to extract the field as an enum tls_model.  */
 #define SYMBOL_FLAG_TLS_SHIFT  3
 #define SYMBOL_REF_TLS_MODEL(RTX) \
-  ((enum tls_model) ((SYMBOL_REF_FLAGS (RTX) >> SYMBOL_FLAG_TLS_SHIFT) & 3))
+  ((enum tls_model) ((SYMBOL_REF_FLAGS (RTX) >> SYMBOL_FLAG_TLS_SHIFT) & 7))
 /* Set if this symbol is not defined in this translation unit.  */
 #define SYMBOL_FLAG_EXTERNAL   (1 << 6)
 #define SYMBOL_REF_EXTERNAL_P(RTX) \