sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P when encoding visibility into...
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Fri, 17 May 2002 11:47:46 +0000 (11:47 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 17 May 2002 11:47:46 +0000 (11:47 +0000)
* config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
when encoding visibility into SYMBOL_REF_FLAG.

From-SVN: r53558

gcc/ChangeLog
gcc/config/sh/sh.h

index 87e1bace65d5d69c67e840694dc6ca6760462e1a..f628ff87b5700fc295db28c6dcce5c8475153f3e 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
+       when encoding visibility into SYMBOL_REF_FLAG.
+
 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
 
        * expr.c (force_operand): Fix reversed move.
index 18c3b48d0f4cba98300363e5858274bb415f8085..28ea02b946dbabf784ec10a49403bfca2894d5da 100644 (file)
@@ -2685,6 +2685,7 @@ do                                                                \
                                                                \
        SYMBOL_REF_FLAG (XEXP (rtl, 0)) =                       \
          (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd'            \
+          || MODULE_LOCAL_P (DECL)                             \
           || ! TREE_PUBLIC (DECL));                            \
       }                                                                \
     if (TARGET_SH5)                                            \