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]
Other format: [Raw text]

Re: [PATCH] Fix PR 20606 and PR 24069


On Sun, Oct 02, 2005 at 02:37:14PM -0400, Andrew Pinski wrote:
> The problem here is that we have an indirect jump to a label.
> JUMP_LABEL (insn) will be NULL but we will have a reg note REG_LABEL
> for the label.  This patch fixes the problem by using that reg note.

If it's an indirect jump, JUMP_LABEL will never be set.  This
is correct.  Whether or not there's a REG_LABEL is irrelevant.

Why isn't this recognized as a computed_jump_p?

If this *used* to be an indirect_jump, and was converted to a 
direct jump by constant propagation or the like, then we should
have set JUMP_LABEL and again REG_LABEL is irrelevant.


r~


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