This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 14776
- From: Michael Matz <matz at suse dot de>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, rth at redhat dot com, mark at codesourcery dot com
- Date: Wed, 31 Mar 2004 15:01:51 +0200 (CEST)
- Subject: Re: PR 14776
- References: <20040331100803.GP2539@kam.mff.cuni.cz>
Hi,
On Wed, 31 Mar 2004, Jan Hubicka wrote:
> + /* Preserve EQUIV/EQUAL notes in trivial cases. */
> + case REG_EQUIV:
> + case REG_EQUAL:
> + {
> + rtx set = single_set (insn_last);
> + rtx set2 = single_set (trial);
> + if (set && set2 && rtx_equal_p (SET_DEST (set), SET_DEST (set2)))
> + REG_NOTES (insn_last)
> + = gen_rtx_EXPR_LIST (REG_NOTE_KIND (note),
> + XEXP (note, 0),
> + REG_NOTES (insn_last));
> + }
> default:
> break;
Although it works in this case, this depends on fallthrough. Please add
an explicit 'break;' in case anyone later adds more cases.
Ciao,
Michael.