aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/local-alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c
index 3b892c6..1ba5b1b 100644
--- a/gcc/local-alloc.c
+++ b/gcc/local-alloc.c
@@ -1997,6 +1997,10 @@ find_free_reg (class, mode, qty, accept_call_clobbered, just_try_suggested,
born_index, dead_index);
}
+ /* We need not check to see if the current function has nonlocal
+ labels because we don't put any pseudos that are live over calls in
+ registers in that case. */
+
if (! accept_call_clobbered
&& flag_caller_saves
&& ! just_try_suggested