aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2002-05-17 11:47:46 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2002-05-17 11:47:46 +0000
commit5cd983a6736ce3d381a7399917af35eee9137062 (patch)
tree02a3d6b322fb26db2640ae7a6023ddf6986a2731
parentce0f3925aaf0e1a358e54298d692ee14db89cad7 (diff)
downloadgcc-5cd983a6736ce3d381a7399917af35eee9137062.zip
gcc-5cd983a6736ce3d381a7399917af35eee9137062.tar.gz
gcc-5cd983a6736ce3d381a7399917af35eee9137062.tar.bz2
sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P when encoding visibility into SYMBOL_REF_FLAG.
* config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P when encoding visibility into SYMBOL_REF_FLAG. From-SVN: r53558
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 87e1bac..f628ff8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index 18c3b48..28ea02b 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -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) \