aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Koch <gavin@cygnus.com>1998-01-27 17:22:43 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-01-27 09:22:43 -0800
commitc3499f009df3741f02d8328c9ea9ad95b6bb2e39 (patch)
treedd33e073f8490143970ae270c8aca6c61a93b4b2
parent56841f01ec38e019698d4b1d54367e79d313916a (diff)
downloadgcc-c3499f009df3741f02d8328c9ea9ad95b6bb2e39.zip
gcc-c3499f009df3741f02d8328c9ea9ad95b6bb2e39.tar.gz
gcc-c3499f009df3741f02d8328c9ea9ad95b6bb2e39.tar.bz2
Patch from Gavin to fix mips16 prologue/epilogue bugs.
* mips/mips.c (mips_expand_prologue,mips_expand_epilogue): Change mode of registers used to add/sub from hard_frame_pointer_rtx from word_mode to Pmode. From-SVN: r17511
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/mips/mips.c4
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 50b90e2..41e4418 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Tue Jan 27 17:21:09 1998 Gavin Koch (gavin@cygnus.com)
+
+ * mips/mips.c (mips_expand_prologue,mips_expand_epilogue):
+ Change mode of registers used to add/sub from
+ hard_frame_pointer_rtx from word_mode to Pmode.
+
Tue Jan 27 11:02:04 1998 Nick Clifton <nickc@cygnus.com>
* v850.h (ASM_OUTPUT_ALIGNED_BSS): Use
@@ -174,7 +180,7 @@ Fri Jan 23 00:27:23 1998 John Carr <jfc@mit.edu>
* toplev.c (get_run_time): Call sysconf(_SC_CLK_TCK), when available,
to get clock rate.
-Fri Jan 23 00:19:36 1998 Gavin Kock (gavin@cygnus.com)
+Fri Jan 23 00:19:36 1998 Gavin Koch (gavin@cygnus.com)
* mips.md (muldi3_internal2): Reverse test for TARGET_MIPS16.
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 2463564..53beb41 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -6502,7 +6502,7 @@ mips_expand_prologue ()
if (!frame_pointer_needed)
abort ();
- reg_rtx = gen_rtx (REG, word_mode, 3);
+ reg_rtx = gen_rtx (REG, Pmode, 3);
emit_move_insn (hard_frame_pointer_rtx, stack_pointer_rtx);
emit_move_insn (reg_rtx, tsize_rtx);
if (TARGET_64BIT)
@@ -6722,7 +6722,7 @@ mips_expand_epilogue ()
add a register to $sp. */
if (orig_tsize > 32767)
{
- rtx g6_rtx = gen_rtx (REG, word_mode, GP_REG_FIRST + 6);
+ rtx g6_rtx = gen_rtx (REG, Pmode, GP_REG_FIRST + 6);
emit_move_insn (g6_rtx, GEN_INT (tsize));
if (TARGET_LONG64)