mips-protos.h (mips16_gp_pseudo_reg): Remove.
authorRichard Sandiford <rsandifo@redhat.com>
Sun, 28 Sep 2003 07:38:14 +0000 (07:38 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 28 Sep 2003 07:38:14 +0000 (07:38 +0000)
commitd34053edb70f0c7c64b3b5ce3aee717b2f11cea5
tree6e943b90088c949f0ca439b0be600d27823216ab
parentc67e6e1492b2e8cedf8a95731ee788dc919984be
mips-protos.h (mips16_gp_pseudo_reg): Remove.

* config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
* config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
* config/mips/mips.c (mips_reloc_offset_ok_p): New function.
(mips_classify_constant): Use it.
(mips_splittable_symbol_p): Add an offset argument.
(mips_classify_address): Adjust call accordingly.
(mips_legitimize_symbol): Handle sdata references with LO_SUM rather
than a relocation unspec.  Update call to mips_splittable_symbol_p.
Generalize the code that copes with symbols + invalid offsets.
(print_operand): Allow '%R' to be applied to small data addresses.
(mips_reloc_string): Remove RELOC_GPREL16.
(mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
relocation operators.
* config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
constants accordingly.

From-SVN: r71876
gcc/ChangeLog
gcc/config/mips/mips-protos.h
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20030928-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/mips-sdata-1.c