diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-01-19 18:24:27 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-01-19 18:24:27 -0500 |
commit | cfcf04a6ba2d59801200aee8a17e9c6c881fe804 (patch) | |
tree | 602aef1fa2aefedc1ad48f0b398316529f9da629 /gcc | |
parent | e19f519283e51a3fa1ef8b29008c7b4ad297e99b (diff) | |
download | gcc-cfcf04a6ba2d59801200aee8a17e9c6c881fe804.zip gcc-cfcf04a6ba2d59801200aee8a17e9c6c881fe804.tar.gz gcc-cfcf04a6ba2d59801200aee8a17e9c6c881fe804.tar.bz2 |
(find_reg): Add comment about nonlocal labels.
From-SVN: r3284
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/global.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/global.c b/gcc/global.c index a96d3ef..967526e 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 |