alpha.c (alpha_ra_ever_killed): Inspect the topmost sequence, not whatever we're generating now.

* alpha.c (alpha_ra_ever_killed): Inspect the topmost sequence,
        not whatever we're generating now.

From-SVN: r22272
This commit is contained in:
Richard Henderson
1998-09-05 14:32:20 -07:00
committed by Richard Henderson
parent 91b7921789
commit 26c24ab4aa
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
Sat Sep 5 21:46:47 1998 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_ra_ever_killed): Inspect the topmost sequence,
not whatever we're generating now.
Sat Sep 5 14:23:31 1998 Torbjorn Granlund <tege@matematik.su.se>
* m68k.md (zero_extendsidi2): Fix typo.

View File

@@ -2468,6 +2468,8 @@ alpha_return_addr (count, frame)
static int
alpha_ra_ever_killed ()
{
rtx top;
#ifdef ASM_OUTPUT_MI_THUNK
if (current_function_is_thunk)
return 0;
@@ -2475,8 +2477,11 @@ alpha_ra_ever_killed ()
if (!alpha_return_addr_rtx)
return regs_ever_live[REG_RA];
return reg_set_between_p (gen_rtx_REG (Pmode, REG_RA),
get_insns(), NULL_RTX);
push_topmost_sequence ();
top = get_insns();
pop_topmost_sequence ();
return reg_set_between_p (gen_rtx_REG (Pmode, REG_RA), top, NULL_RTX);
}