diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-18 19:15:24 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-18 19:15:24 +0000 |
commit | 8b1f17c6c8344de05eaf56ff38da2bcd2155bf78 (patch) | |
tree | 41c66b45a005f0291ed741d1d6d4fd45eed8dea2 /gcc/config/mips/mips.h | |
parent | d04e6ab6bbe8334828862f25af5cfd209f4911eb (diff) | |
download | gcc-8b1f17c6c8344de05eaf56ff38da2bcd2155bf78.tar.gz |
* config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
use %gprel for symbols that are going to be placed in linkonce
sections.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50986 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/mips.h')
-rw-r--r-- | gcc/config/mips/mips.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index bc09632e73f..536ef51461d 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -3407,7 +3407,11 @@ do \ specific sections, except for .sdata and .sbss which are \ handled above. */ \ else if (TARGET_GP_OPT && TREE_CODE (DECL) == VAR_DECL \ - && DECL_SECTION_NAME (DECL) == NULL_TREE) \ + && DECL_SECTION_NAME (DECL) == NULL_TREE \ + && ! (TARGET_MIPS16 && TREE_PUBLIC (DECL) \ + && (DECL_COMMON (DECL) \ + || DECL_ONE_ONLY (DECL) \ + || DECL_WEAK (DECL)))) \ { \ int size = int_size_in_bytes (TREE_TYPE (DECL)); \ \ |