aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2007-10-18 17:20:19 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-10-18 17:20:19 +0000
commit4ec4ca36f8b0265728e15504294c8c31d1b75ac4 (patch)
tree6080d14a4f0ac9bd185dee0d1403aebdc12bb722
parentd33289b2f487cf8a42450f6614eae4dece295844 (diff)
downloadgcc-4ec4ca36f8b0265728e15504294c8c31d1b75ac4.zip
gcc-4ec4ca36f8b0265728e15504294c8c31d1b75ac4.tar.gz
gcc-4ec4ca36f8b0265728e15504294c8c31d1b75ac4.tar.bz2
mips.c (TARGET_MIN_ANCHOR_OFFSET): Delete.
gcc/ * config/mips/mips.c (TARGET_MIN_ANCHOR_OFFSET): Delete. (TARGET_MAX_ANCHOR_OFFSET): Delete. (mips_cannot_force_const_mem): Don't check TARGET_HAVE_TLS. (mips_set_mips16_mode): Initialize min_anchor_offset and max_anchor_offset directly to constants. From-SVN: r129451
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/mips/mips.c10
2 files changed, 11 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6caddf8..39901e4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
+ * config/mips/mips.c (TARGET_MIN_ANCHOR_OFFSET): Delete.
+ (TARGET_MAX_ANCHOR_OFFSET): Delete.
+ (mips_cannot_force_const_mem): Don't check TARGET_HAVE_TLS.
+ (mips_set_mips16_mode): Initialize min_anchor_offset and
+ max_anchor_offset directly to constants.
+
+2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
+
* config/mips/mips.c: Delete trailing whitespace.
2007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 2477c17..c460cca 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -1370,10 +1370,6 @@ static const unsigned char mips16e_save_restore_regs[] = {
#undef TARGET_EXTRA_LIVE_ON_ENTRY
#define TARGET_EXTRA_LIVE_ON_ENTRY mips_extra_live_on_entry
-#undef TARGET_MIN_ANCHOR_OFFSET
-#define TARGET_MIN_ANCHOR_OFFSET -32768
-#undef TARGET_MAX_ANCHOR_OFFSET
-#define TARGET_MAX_ANCHOR_OFFSET 32767
#undef TARGET_USE_BLOCKS_FOR_CONSTANT_P
#define TARGET_USE_BLOCKS_FOR_CONSTANT_P mips_use_blocks_for_constant_p
#undef TARGET_USE_ANCHORS_FOR_SYMBOL_P
@@ -1865,7 +1861,7 @@ mips_cannot_force_const_mem (rtx x)
return true;
}
- if (TARGET_HAVE_TLS && for_each_rtx (&x, &mips_tls_symbol_ref_1, 0))
+ if (for_each_rtx (&x, &mips_tls_symbol_ref_1, 0))
return true;
return false;
@@ -5715,8 +5711,8 @@ mips_set_mips16_mode (int mips16_p)
align_functions = 8;
}
- targetm.min_anchor_offset = TARGET_MIN_ANCHOR_OFFSET;
- targetm.max_anchor_offset = TARGET_MAX_ANCHOR_OFFSET;
+ targetm.min_anchor_offset = -32768;
+ targetm.max_anchor_offset = 32767;
}
/* (Re)initialize mips target internals for new ISA. */