This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Combine looses libcall notes
- From: Ian Lance Taylor <ian at airs dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 07 Apr 2005 14:52:16 -0400
- Subject: Re: [patch] Combine looses libcall notes
- References: <200504070035.50031.paul@codesourcery.com>
Paul Brook <paul@codesourcery.com> writes:
> Index: gcc/combine.c
> ===================================================================
> RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/combine.c,v
> retrieving revision 1.485
> diff -u -p -r1.485 combine.c
> --- gcc/combine.c 5 Apr 2005 14:50:28 -0000 1.485
> +++ gcc/combine.c 6 Apr 2005 14:51:49 -0000
> @@ -12062,7 +12062,7 @@ distribute_notes (rtx notes, rtx from_in
> /* If the insn previously containing this note still exists,
> put it back where it was. Otherwise move it to the previous
> insn. Adjust the corresponding REG_LIBCALL note. */
> - if (!NOTE_P (from_insn))
> + if (!NOTE_P (from_insn) && PATTERN (from_insn) != pc_rtx)
> place = from_insn;
> else
> {
If you do wind up checking in this patch, how would you feel about
defining some macros so we don't have really cryptic stuff stuff like
PATTERN (tem) = pc_rtx;
and
PATTERN (from_insn) != pc_rtx
?
Ian