This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: HPPA profiling redone


On Sun, 25 Mar 2001, Richard Henderson wrote:

> On Mon, Mar 26, 2001 at 02:22:39PM +1000, Alan Modra wrote:
> > +void hppa_profile_hook (label_no)
> 
> Formatting.

Oops.  Fixing another one of mine above that in hppa_init_pic_save.

> > +  call_insn =
> > +    emit_call_insn (gen_call_profiler (gen_rtx_SYMBOL_REF (Pmode, "_mcount"),
> 
> You'll want to put a REG_EH_REGION -1 note on this.

OK, adding this to patch:

  /* Indicate the _mcount call cannot throw, nor will it execute a
     non-local goto.  */
  REG_NOTES (call_insn)
    = gen_rtx_EXPR_LIST (REG_EH_REGION, constm1_rtx, REG_NOTES (call_insn));

Thanks for reviewing again.
Alan Modra
-- 
Linuxcare


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]