summaryrefslogtreecommitdiff
path: root/gcc/global.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-01-19 23:24:27 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-01-19 23:24:27 +0000
commite65e050b62dae54b202452f5af7867f6e27c194e (patch)
tree602aef1fa2aefedc1ad48f0b398316529f9da629 /gcc/global.c
parent002902af4b15b1d270a2297c20be6976242e2171 (diff)
downloadgcc-e65e050b62dae54b202452f5af7867f6e27c194e.tar.gz
(find_reg): Add comment about nonlocal labels.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/global.c')
-rw-r--r--gcc/global.c6
1 files changed, 5 insertions, 1 deletions
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