On Mon, Nov 22, 2010 at 4:43 PM, Basile Starynkevitch
<bas...@starynkevitch.net> wrote:
> Hello All,
>
> While debugging a MELT pass, I am sigsegv in debug_bb.
>
> The culprit is check_bb_profile which starts with
>  if (profile_status == PROFILE_ABSENT)
>    return;
> and we have in basic-block.h
> #define profile_status          (cfun->cfg->x_profile_status)
>
> and unfortunately, my pass is a SIMPLE IPA pass so don't have any cfun.
>
> Would a patch defining
>
> #define profile_status  (cfun?(cfun->cfg->x_profile_status):PROFILE_ABSENT)
>
> be acceptable?
Huh, no.  Just watch were you are calling debug_bb from (or
even better, rewrite it with python).

Richard.

> Cheers.
> --
> Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
> email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
> 8, rue de la Faiencerie, 92340 Bourg La Reine, France
> *** opinions {are only mines, sont seulement les miennes} ***
>

Reply via email to