* alpha.c (alpha_ra_ever_killed): Inspect the topmost sequence,
not whatever we're generating now.
From-SVN: r22272
+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.
static int
alpha_ra_ever_killed ()
{
+ rtx top;
+
#ifdef ASM_OUTPUT_MI_THUNK
if (current_function_is_thunk)
return 0;
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);
}
\f