OSDN Git Service

2007-07-14 Sandra Loosemore <sandra@codesourcery.com>
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jul 2007 16:56:31 +0000 (16:56 +0000)
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jul 2007 16:56:31 +0000 (16:56 +0000)
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126643 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.c

index 55ad6e9..bfbaae6 100644 (file)
@@ -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
index 319a871..d94dfa9 100644 (file)
@@ -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;
     }