aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1999-05-19 17:06:13 -0600
committerJeff Law <law@gcc.gnu.org>1999-05-19 17:06:13 -0600
commit13b6b42c3fd83cb075bff719afdbc0a13ac87126 (patch)
tree227bca5037c7ba16abc32f9389ac2771167e0e61
parent1945961b39517006ad22f7043a1b9f3a157e5235 (diff)
downloadgcc-13b6b42c3fd83cb075bff719afdbc0a13ac87126.zip
gcc-13b6b42c3fd83cb075bff719afdbc0a13ac87126.tar.gz
gcc-13b6b42c3fd83cb075bff719afdbc0a13ac87126.tar.bz2
mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specific sections other than...
x * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specific sections other than .sbss and .sdata. From-SVN: r27038
-rw-r--r--gcc/config/mips/mips.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 46f1165..7360e1b 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -3224,7 +3224,11 @@ do \
SYMBOL_REF_FLAG (XEXP (DECL_RTL (DECL), 0)) = 1; \
} \
\
- else if (TARGET_GP_OPT && TREE_CODE (DECL) == VAR_DECL) \
+ /* We can not perform GP optimizations on variables which are in \
+ 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) \
{ \
int size = int_size_in_bytes (TREE_TYPE (DECL)); \
\