This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: [PATCH] Re: Option -fprofile-arcs fails for target avr and fr30


> There is code to set the JUMP_LABEL properly in the code to emit insn on
> the edges: 
> 	      insert_insn_on_edge (edge_profile, e);
> 	      rebuild_jump_labels (e->insns);
> rebuild_jump_labels is supposed to update JUMP_LABEL accordingly.
> In case the profiling code somewhere does not update labels correctly it
> is the bug on place where code is emit.  I will try to figure out what
> happens tomorrow. At the time the basic blocks are split, all
> JUMP_LABELs are supposed to be up-to-date.

When I originally tracked this down, the problem was that profiling is
added after the last time rebuild_jump_labels is called, so any new
jumps won't have jump_labels.


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