From 127203175ebbaa79c5eba4d6cb50a0c828c23516 Mon Sep 17 00:00:00 2001 From: Andy Hutchinson Date: Tue, 29 Jan 2008 01:39:11 +0300 Subject: [PATCH] re PR target/34412 (ICE in extract_insn, at recog.c:1990) PR target/34412 * config/avr/avr.c (expand_prologue): Use correct QI mode frame pointer for tiny stack. From-SVN: r131923 --- gcc/ChangeLog | 6 ++++++ gcc/config/avr/avr.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1f6253215bb..4166941fbfd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-01-28 Andy Hutchinson + + PR target/34412 + * config/avr/avr.c (expand_prologue): Use correct QI mode frame + pointer for tiny stack. + 2008-01-28 Bernhard Fischer * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording. diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 003f6a1488e..44ab3f390df 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -1,5 +1,5 @@ /* Subroutines for insn-output.c for ATMEL AVR micro controllers - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007 + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Contributed by Denis Chertykov (denisc@overta.ru) @@ -754,7 +754,7 @@ expand_prologue (void) insn = emit_move_insn (frame_pointer_rtx, stack_pointer_rtx); RTX_FRAME_RELATED_P (insn) = 1; insn = emit_move_insn (myfp, - gen_rtx_PLUS (GET_MODE(myfp), frame_pointer_rtx, + gen_rtx_PLUS (GET_MODE(myfp), myfp, gen_int_mode (-size, GET_MODE(myfp)))); RTX_FRAME_RELATED_P (insn) = 1; insn = emit_move_insn ( stack_pointer_rtx, frame_pointer_rtx); -- 2.30.2