This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR 20606 and PR 24069
- From: Richard Henderson <rth at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 4 Oct 2005 07:02:40 -0700
- Subject: Re: [PATCH] Fix PR 20606 and PR 24069
- References: <8bed4271e3405ab0ae9ef030dfbe22df@physics.uc.edu>
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~