]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 5b74c1a66bbf8affbd8987bb9d81ee75c941d5b9..db01c06a68a400e44b4cb91a5596a16d6cd9d50d 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 fa5ef84963c01829505892f138f9ffc816a196b2..f1b40a21c2505ce52a90ed886bbc57e057512491 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) \