diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ab9c92e2df3..26433bb6bac3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-10-19 Richard Sandiford + + * config/mips/mips.c (mips16e_build_save_restore): Fix *OFFSET_PTR + calculation. + 2007-10-19 Richard Sandiford * config/mips/mips.c (mips_call_tls_get_addr): Don't claim that diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index ad54d77afbea..781388a2d7a6 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -7488,7 +7488,7 @@ mips16e_build_save_restore (bool restore_p, unsigned int *mask_ptr, } /* Tell the caller what offset it should use for the remaining registers. */ - *offset_ptr = size + (offset - top_offset) + size; + *offset_ptr = size + (offset - top_offset); gcc_assert (n == XVECLEN (pattern, 0));