diff options
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r-- | gcc/local-alloc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index ce7b4b9f405..ab7fc98f39d 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -59,8 +59,8 @@ Boston, MA 02111-1307, USA. */ register is used as a spill register. So we don't allocate such pseudos here if their preferred class is likely to be used by spills. */ -#include <stdio.h> #include "config.h" +#include <stdio.h> #include "rtl.h" #include "flags.h" #include "basic-block.h" @@ -695,6 +695,9 @@ memref_referenced_p (memref, x) return 1; return memref_referenced_p (memref, SET_SRC (x)); + + default: + break; } fmt = GET_RTX_FORMAT (code); @@ -758,13 +761,11 @@ optimize_reg_copy_1 (insn, dest, src) int sregno = REGNO (src); int dregno = REGNO (dest); + /* We don't want to mess with hard regs if register classes are small. */ if (sregno == dregno -#ifdef SMALL_REGISTER_CLASSES - /* We don't want to mess with hard regs if register classes are small. */ || (SMALL_REGISTER_CLASSES && (sregno < FIRST_PSEUDO_REGISTER || dregno < FIRST_PSEUDO_REGISTER)) -#endif /* We don't see all updates to SP if they are in an auto-inc memory reference, so we must disallow this optimization on them. */ || sregno == STACK_POINTER_REGNUM || dregno == STACK_POINTER_REGNUM) |