From cfcf04a6ba2d59801200aee8a17e9c6c881fe804 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 19 Jan 1993 18:24:27 -0500 Subject: [PATCH] (find_reg): Add comment about nonlocal labels. From-SVN: r3284 --- gcc/global.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/global.c b/gcc/global.c index a96d3efd593..967526e3c30 100644 --- a/gcc/global.c +++ b/gcc/global.c @@ -1040,7 +1040,11 @@ find_reg (allocno, losers, alt_regs_p, accept_call_clobbered, retrying) } no_prefs: - /* If we haven't succeeded yet, try with caller-saves. */ + /* If we haven't succeeded yet, try with caller-saves. + 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 (flag_caller_saves && best_reg < 0) { /* Did not find a register. If it would be profitable to -- 2.30.2