2003-04-14 Janis Johnson <janis287@us.ibm.com>
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2003 22:35:45 +0000 (22:35 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2003 22:35:45 +0000 (22:35 +0000)
* rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65602 138bc75d-0d04-0410-961f-82ee72b054a4

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) \