Commit fc4f3261 by Nick Clifton Committed by Nick Clifton

re PR target/31110 (Problem while compiling gcc for mn10300-elf)

PR target/31110
   * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
        Return GENERAL_REGS for stack adjustment reloads.

From-SVN: r133675
parent 501fb355
2008-03-28 Nick Clifton <nickc@redhat.com>
* config/mn10300/mn10300.c (mn10300_secondary_reload_class):
Return GENERAL_REGS for stack adjustment reloads.
2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com> 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR target/31334 PR target/31334
......
/* Subroutines for insn-output.c for Matsushita MN10300 series /* Subroutines for insn-output.c for Matsushita MN10300 series
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007 Free Software Foundation, Inc. 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Contributed by Jeff Law (law@cygnus.com). Contributed by Jeff Law (law@cygnus.com).
This file is part of GCC. This file is part of GCC.
...@@ -1361,11 +1361,7 @@ mn10300_secondary_reload_class (enum reg_class class, enum machine_mode mode, ...@@ -1361,11 +1361,7 @@ mn10300_secondary_reload_class (enum reg_class class, enum machine_mode mode,
if (GET_CODE (in) == PLUS if (GET_CODE (in) == PLUS
&& (XEXP (in, 0) == stack_pointer_rtx && (XEXP (in, 0) == stack_pointer_rtx
|| XEXP (in, 1) == stack_pointer_rtx)) || XEXP (in, 1) == stack_pointer_rtx))
{ return GENERAL_REGS;
if (TARGET_AM33)
return DATA_OR_EXTENDED_REGS;
return DATA_REGS;
}
if (TARGET_AM33_2 && class == FP_REGS if (TARGET_AM33_2 && class == FP_REGS
&& GET_CODE (in) == MEM && GET_CODE (in) == MEM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment