aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2007-07-14 12:56:31 -0400
committerSandra Loosemore <sandra@gcc.gnu.org>2007-07-14 12:56:31 -0400
commit27e3a7bc8d8101c0f85ac2e057a8784cb8d24326 (patch)
tree92b3db1b1bfb8fe492de2220f17e3154d81e007d
parent1dd3fc430e0c6a280b9ecc5c11268592d0dddae6 (diff)
downloadgcc-27e3a7bc8d8101c0f85ac2e057a8784cb8d24326.zip
gcc-27e3a7bc8d8101c0f85ac2e057a8784cb8d24326.tar.gz
gcc-27e3a7bc8d8101c0f85ac2e057a8784cb8d24326.tar.bz2
mips.c (mips_classify_symbol): Don't return SYMBOL_SMALL_DATA for constant pool addresses if...
2007-07-14 Sandra Loosemore <sandra@codesourcery.com> Nigel Stephens <nigel@mips.com> gcc/ * config/mips/mips.c (mips_classify_symbol): Don't return SYMBOL_SMALL_DATA for constant pool addresses if TARGET_EMBEDDED_DATA is true. Co-Authored-By: Nigel Stephens <nigel@mips.com> From-SVN: r126643
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/mips/mips.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 55ad6e9..bfbaae6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-14 Sandra Loosemore <sandra@codesourcery.com>
+ Nigel Stephens <nigel@mips.com>
+
+ * config/mips/mips.c (mips_classify_symbol): Don't return
+ SYMBOL_SMALL_DATA for constant pool addresses if
+ TARGET_EMBEDDED_DATA is true.
+
2007-07-14 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 319a871..d94dfa9 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -1448,7 +1448,8 @@ mips_classify_symbol (rtx x)
if (TARGET_MIPS16)
return SYMBOL_CONSTANT_POOL;
- if (GET_MODE_SIZE (get_pool_mode (x)) <= mips_section_threshold)
+ if (!TARGET_EMBEDDED_DATA
+ && GET_MODE_SIZE (get_pool_mode (x)) <= mips_section_threshold)
return SYMBOL_SMALL_DATA;
}