From: Richard Henderson Date: Sat, 5 Sep 1998 21:32:20 +0000 (-0700) Subject: alpha.c (alpha_ra_ever_killed): Inspect the topmost sequence, not whatever we're... X-Git-Tag: prereleases/egcs-1.1.1-pre~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26c24ab4aa9eaba027e98906c561c5b4f25311ca;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a1891636afe..43426eb05e5d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat Sep 5 21:46:47 1998 Richard Henderson + + * 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 * m68k.md (zero_extendsidi2): Fix typo. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index efbb5282ce96..0b72289e15aa 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -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); }