diff options
Diffstat (limited to 'gcc/sel-sched.c')
-rw-r--r-- | gcc/sel-sched.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index cfecd6bc148..1052920be98 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -43,7 +43,6 @@ along with GCC; see the file COPYING3. If not see #include "vec.h" #include "langhooks.h" #include "rtlhooks-def.h" -#include "output.h" #include "emit-rtl.h" #ifdef INSN_SCHEDULING @@ -1140,7 +1139,7 @@ init_regs_for_mode (enum machine_mode mode) #ifdef LEAF_REGISTERS /* We can't use a non-leaf register if we're in a leaf function. */ - || (current_function_is_leaf + || (crtl->is_leaf && !LEAF_REGISTERS[cur_reg + i]) #endif ) |