From fc4f326169612ab9f7f8b7e90d80fd0c15bab080 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 28 Mar 2008 08:42:36 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/mn10300/mn10300.c | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5cebe93f94..b28407742fb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-03-28 Nick Clifton + + * config/mn10300/mn10300.c (mn10300_secondary_reload_class): + Return GENERAL_REGS for stack adjustment reloads. + 2008-03-28 Andrew Pinski PR target/31334 diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index 9fde69986e7..0d2ae38beca 100644 --- a/gcc/config/mn10300/mn10300.c +++ b/gcc/config/mn10300/mn10300.c @@ -1,6 +1,6 @@ /* Subroutines for insn-output.c for Matsushita MN10300 series 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). This file is part of GCC. @@ -1361,11 +1361,7 @@ mn10300_secondary_reload_class (enum reg_class class, enum machine_mode mode, if (GET_CODE (in) == PLUS && (XEXP (in, 0) == stack_pointer_rtx || XEXP (in, 1) == stack_pointer_rtx)) - { - if (TARGET_AM33) - return DATA_OR_EXTENDED_REGS; - return DATA_REGS; - } + return GENERAL_REGS; if (TARGET_AM33_2 && class == FP_REGS && GET_CODE (in) == MEM -- 2.30.2