https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82027

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Domani Hannes from comment #4)
> (In reply to Martin Liška from comment #3)
> > Note that original function does:
> > 
> >     void calcPercent( const char *name,int pos,int size )
> >     {
> >       int percent = 100*pos/size;
> >       if( percent!=m_percent )
> >         m_percent = percent;
> >     }
> > 
> > So arguments are shifted by one. Martin can you please take a look?
> 
> In div0.exe.ltrans0.000i.cgraph it looks like this:
> 
>     calcPercent.constprop (struct Combined * const this, int pos, int size)
> 
> Could this have anything to do with the argument shift?

Yes, it has. As I talked to Martin Jambor, he's aware of the bug and he'll
prepare fix for that. Please be patient.

Reply via email to