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?

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