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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ChangeLog | Loading commit data... | |
acinclude.m4 | Loading commit data... | |
acx.m4 | Loading commit data... | |
codeset.m4 | Loading commit data... | |
confsubdir.m4 | Loading commit data... | |
depstand.m4 | Loading commit data... | |
enable.m4 | Loading commit data... | |
gettext-sister.m4 | Loading commit data... | |
gettext.m4 | Loading commit data... | |
glibc21.m4 | Loading commit data... | |
gxx-include-dir.m4 | Loading commit data... | |
iconv.m4 | Loading commit data... | |
intdiv0.m4 | Loading commit data... | |
inttypes-pri.m4 | Loading commit data... | |
inttypes.m4 | Loading commit data... | |
inttypes_h.m4 | Loading commit data... | |
lcmessage.m4 | Loading commit data... | |
ld-symbolic.m4 | Loading commit data... | |
lead-dot.m4 | Loading commit data... | |
lib-ld.m4 | Loading commit data... | |
lib-link.m4 | Loading commit data... | |
lib-prefix.m4 | Loading commit data... | |
mh-armpic | Loading commit data... | |
mh-cxux | Loading commit data... | |
mh-cygwin | Loading commit data... | |
mh-decstation | Loading commit data... | |
mh-dgux386 | Loading commit data... | |
mh-djgpp | Loading commit data... | |
mh-elfalphapic | Loading commit data... | |
mh-i370pic | Loading commit data... | |
mh-ia64pic | Loading commit data... | |
mh-interix | Loading commit data... | |
mh-lynxrs6k | Loading commit data... | |
mh-m68kpic | Loading commit data... | |
mh-mingw | Loading commit data... | |
mh-ncr3000 | Loading commit data... | |
mh-necv4 | Loading commit data... | |
mh-papic | Loading commit data... | |
mh-ppc-aix | Loading commit data... | |
mh-ppc-darwin | Loading commit data... | |
mh-ppcpic | Loading commit data... | |
mh-s390pic | Loading commit data... | |
mh-sco | Loading commit data... | |
mh-solaris | Loading commit data... | |
mh-sparcpic | Loading commit data... | |
mh-sysv4 | Loading commit data... | |
mh-sysv5 | Loading commit data... | |
mh-x86omitfp | Loading commit data... | |
mh-x86pic | Loading commit data... | |
mt-alphaieee | Loading commit data... | |
mt-d30v | Loading commit data... | |
mt-gnu | Loading commit data... | |
mt-mep | Loading commit data... | |
mt-netware | Loading commit data... | |
mt-ospace | Loading commit data... | |
mt-sde | Loading commit data... | |
mt-spu | Loading commit data... | |
mt-v810 | Loading commit data... | |
mt-wince | Loading commit data... | |
multi.m4 | Loading commit data... | |
nls.m4 | Loading commit data... | |
no-executables.m4 | Loading commit data... | |
po.m4 | Loading commit data... | |
progtest.m4 | Loading commit data... | |
stdint.m4 | Loading commit data... | |
stdint_h.m4 | Loading commit data... | |
tls.m4 | Loading commit data... | |
uintmax_t.m4 | Loading commit data... | |
ulonglong.m4 | Loading commit data... | |
unwind_ipinfo.m4 | Loading commit data... | |
warnings.m4 | Loading commit data... |