aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2008-09-05 16:39:40 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2008-09-05 16:39:40 +0100
commit7314c7dd6297c6e7ebb823c1e3589c246f9349b5 (patch)
treeb8f10beff854b1400e8d8d2b400046c99ccc7a67 /gcc/function.c
parentebac6d9cb9f255b379fffcff4ba871d5b74d39d7 (diff)
downloadgcc-7314c7dd6297c6e7ebb823c1e3589c246f9349b5.zip
gcc-7314c7dd6297c6e7ebb823c1e3589c246f9349b5.tar.gz
gcc-7314c7dd6297c6e7ebb823c1e3589c246f9349b5.tar.bz2
mips.h (enum reg_class): Add FRAME_REGS.
* config/mips/mips.h (enum reg_class): Add FRAME_REGS. (REG_CLASS_NAMES): Update. (REG_CLASS_CONTENTS): Update. * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead of ALL_REGS for regs 77 and 78. * function.c (instantiate_virtual_regs_in_insn): Assert that return value of simplify_gen_subreg is not NULL. testsuite: * gcc.c-torture/compile/20080903-1.c: New test. From-SVN: r140035
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index da26dc7..8f614b6 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -1515,6 +1515,7 @@ instantiate_virtual_regs_in_insn (rtx insn)
}
x = simplify_gen_subreg (recog_data.operand_mode[i], new_rtx,
GET_MODE (new_rtx), SUBREG_BYTE (x));
+ gcc_assert (x);
break;
default: