This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: MIPS constant pool addresses w/-membedded-data


I've verified that this patch fixes about a gazillion test suite failures with -membedded-data. OK to apply?

-Sandra

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.
Index: gcc/config/mips/mips.c
===================================================================
*** gcc/config/mips/mips.c	(revision 126428)
--- gcc/config/mips/mips.c	(working copy)
*************** mips_classify_symbol (rtx x)
*** 1447,1453 ****
        if (TARGET_MIPS16)
  	return SYMBOL_CONSTANT_POOL;
  
!       if (GET_MODE_SIZE (get_pool_mode (x)) <= mips_section_threshold)
  	return SYMBOL_SMALL_DATA;
      }
  
--- 1447,1454 ----
        if (TARGET_MIPS16)
  	return SYMBOL_CONSTANT_POOL;
  
!       if (!TARGET_EMBEDDED_DATA
! 	  && GET_MODE_SIZE (get_pool_mode (x)) <= mips_section_threshold)
  	return SYMBOL_SMALL_DATA;
      }
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]