OSDN Git Service

* config/alpha/alpha.c (alpha_sa_size): Force procedure type to
[pf3gnuchains/gcc-fork.git] / gcc / caller-save.c
index 303da88..e610329 100644 (file)
@@ -1,6 +1,7 @@
 /* Save and restore call-clobbered registers which are live across a call.
    Copyright (C) 1989, 1992, 1994, 1995, 1997, 1998, 1999, 2000,
-   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+   Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -188,7 +189,7 @@ reg_restore_code (int reg, enum machine_mode mode)
 /* Initialize for caller-save.
 
    Look at all the hard registers that are used by a call and for which
-   regclass.c has not already excluded from being used across a call.
+   reginfo.c has not already excluded from being used across a call.
 
    Ensure that we can find a mode to save the register and that there is a
    simple insn to save and restore the register.  This latter check avoids
@@ -470,7 +471,7 @@ setup_save_areas (void)
        {
          insn = chain->insn;
          next = chain->next;
-         if (GET_CODE (insn) != CALL_INSN
+         if (!CALL_P (insn)
              || find_reg_note (insn, REG_NORETURN, NULL))
            continue;
          freq = REG_FREQ_FROM_BB (BLOCK_FOR_INSN (insn));
@@ -530,7 +531,7 @@ setup_save_areas (void)
          call_saved_regs_num = 0;
          insn = chain->insn;
          next = chain->next;
-         if (GET_CODE (insn) != CALL_INSN
+         if (!CALL_P (insn)
              || find_reg_note (insn, REG_NORETURN, NULL))
            continue;
          REG_SET_TO_HARD_REG_SET (hard_regs_to_save,