gcc/config
Richard Sandiford a318179e4e mt-sde (CFLAGS_FOR_TARGET): Add -mno-gpopt.
config/
	* mt-sde (CFLAGS_FOR_TARGET): Add -mno-gpopt.
	(CXXFLAGS_FOR_TARGET): Likewise.

gcc/
	* doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
	and -mgpopt options.  Adjust the -G documentation to match.
	* config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
	* config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
	function, split out from mips_classify_symbol.  Return false for
	!TARGET_LOCAL_SDATA.
	(mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
	Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
	(override_options): Check whether the -mgpopt setting is consistent
	with the other flags.
	(symbolic_expression_p): Delete.
	(mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
	and default_elf_select_rtx_section.
	(mips_in_small_data_p): Honor section attributes for MIPS16 too.
	Return false for local data unless TARGET_LOCAL_SDATA.  Likewise
	external data and TARGET_EXTERN_SDATA.

gcc/testsuite/
	* gcc.dg/attr-alias-3.c: Use real asm for MIPS.
	* gcc.target/mips/mips.exp (setup_mips_tests): Set mips_forced_gp
	and mips_forced_no_er.
	(dg-mips-options): Add -mno-abicalls when a small-data option is
	specified.  Skip tests with small-data options if mips_forced_gp.
	Skip tests with -mexplicit-relocs if mips_forced_no_er.
	* gcc.target/mips/sdata-1.c: New test.
	* gcc.target/mips/sdata-2.c: Likewise.
	* gcc.target/mips/sdata-3.c: Likewise.
	* gcc.target/mips/sdata-4.c: Likewise.

From-SVN: r128230
2007-09-07 07:37:38 +00:00
..
acinclude.m4
acx.m4 acx.m4 (ACX_CHECK_INSTALLED_TARGET_TOOL): Fixup logic for cross builds. 2007-06-27 19:53:03 +00:00
ChangeLog mt-sde (CFLAGS_FOR_TARGET): Add -mno-gpopt. 2007-09-07 07:37:38 +00:00
codeset.m4
confsubdir.m4 confsubdir.m4: Move here from newlib. 2007-05-28 06:34:21 +00:00
depstand.m4
enable.m4
gettext-sister.m4
gettext.m4
glibc21.m4
gxx-include-dir.m4
iconv.m4
intdiv0.m4
inttypes_h.m4
inttypes-pri.m4
inttypes.m4
lcmessage.m4
ld-symbolic.m4
lead-dot.m4
lib-ld.m4
lib-link.m4
lib-prefix.m4
mh-armpic
mh-cxux
mh-cygwin
mh-decstation
mh-dgux386
mh-djgpp
mh-elfalphapic
mh-i370pic
mh-ia64pic
mh-interix
mh-lynxrs6k
mh-m68kpic
mh-mingw re PR target/33281 (gfortran crt2.o not found under Vista) 2007-09-06 15:42:02 +00:00
mh-ncr3000
mh-necv4
mh-papic
mh-ppc-aix mh-ppc-aix: Add default ADAFLAGS to BOOT_ADAFLAGS. 2007-06-04 07:48:28 +00:00
mh-ppc-darwin re PR bootstrap/32009 (building gcc4-4.3/4.4.0-20070518 failed on OSX 10.3.9) 2007-05-23 14:26:31 +00:00
mh-ppcpic
mh-s390pic
mh-sco
mh-solaris
mh-sparcpic
mh-sysv4
mh-sysv5
mh-x86omitfp re PR target/32622 (BOOT_CFLAGS is not passed to stage2 and stage3 compile) 2007-07-05 20:26:10 +00:00
mh-x86pic
mt-alphaieee
mt-d30v
mt-gnu Makefile.tpl (DEBUG_PREFIX_CFLAGS_FOR_TARGET): New. 2007-08-18 16:15:39 +01:00
mt-mep
mt-netware
mt-ospace
mt-sde mt-sde (CFLAGS_FOR_TARGET): Add -mno-gpopt. 2007-09-07 07:37:38 +00:00
mt-spu
mt-v810
mt-wince
multi.m4
nls.m4
no-executables.m4
po.m4
progtest.m4
stdint_h.m4
stdint.m4 configure: Regenerate. 2007-04-12 13:06:43 +00:00
tls.m4 tls.m4 (GCC_CHECK_CC_TLS): New. 2007-07-06 07:00:46 -07:00
uintmax_t.m4
ulonglong.m4
unwind_ipinfo.m4
warnings.m4