diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-14 08:07:58 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-14 08:07:58 +0000 |
commit | a164e2a90723770b27777295c5ccad1315b18ef9 (patch) | |
tree | f49cd957dbffc4dbd9a2a9c2f2634a3646df9bc2 /gcc/config/rs6000 | |
parent | 0945bf621c272297001c8ea08222c2c03f8cc513 (diff) | |
download | gcc-a164e2a90723770b27777295c5ccad1315b18ef9.tar.gz |
* config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
targetm.binds_local_p to set SYMBOL_REF_FLAG.
(rs6000_xcoff_encode_section_info): Likewise.
* config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57135 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/xcoff.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index b4fc13df386..f7235401822 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -12424,8 +12424,7 @@ rs6000_elf_encode_section_info (decl, first) if (TREE_CODE (decl) == FUNCTION_DECL) { rtx sym_ref = XEXP (DECL_RTL (decl), 0); - if ((TREE_ASM_WRITTEN (decl) || ! TREE_PUBLIC (decl)) - && ! DECL_WEAK (decl)) + if ((*targetm.binds_local_p) (decl)) SYMBOL_REF_FLAG (sym_ref) = 1; if (DEFAULT_ABI == ABI_AIX) @@ -13121,8 +13120,7 @@ rs6000_xcoff_encode_section_info (decl, first) int first ATTRIBUTE_UNUSED; { if (TREE_CODE (decl) == FUNCTION_DECL - && (TREE_ASM_WRITTEN (decl) || ! TREE_PUBLIC (decl)) - && ! DECL_WEAK (decl)) + && (*targetm.binds_local_p) (decl)) SYMBOL_REF_FLAG (XEXP (DECL_RTL (decl), 0)) = 1; } diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h index b83f678b9f8..820e71b6f48 100644 --- a/gcc/config/rs6000/xcoff.h +++ b/gcc/config/rs6000/xcoff.h @@ -266,7 +266,7 @@ toc_section () \ #define ASM_DECLARE_FUNCTION_NAME(FILE,NAME,DECL) \ { rtx sym_ref = XEXP (DECL_RTL (DECL), 0); \ - if (!DECL_WEAK (DECL)) \ + if ((*targetm.binds_local_p) (DECL)) \ SYMBOL_REF_FLAG (sym_ref) = 1; \ if (TREE_PUBLIC (DECL)) \ { \ |