From: Jeffrey A Law Date: Tue, 18 Aug 1998 17:13:12 +0000 (+0000) Subject: regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p on notes. X-Git-Tag: prereleases/egcs-1.1-prerelease~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cdd969f5ea5eed7411c93cfadedd7e1562b95ec;p=thirdparty%2Fgcc.git regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p on notes. * regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p on notes. Fixes testsuite regression on the H8. From-SVN: r21829 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ce186be34d2..628d82648949 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -4,6 +4,9 @@ Tue Aug 18 13:05:59 BST 1998 Richard Earnshaw (rearnsha@arm.com) Tue Aug 18 10:32:11 1998 Jeffrey A Law (law@cygnus.com) + * regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p + on notes. + * regmove.c (optimize_reg_copy_1): Update REG_N_CALLS_CROSSED and REG_LIVE_LENGTH as successful substitutions are made. diff --git a/gcc/regmove.c b/gcc/regmove.c index 878655322482..ba78411bea8a 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -823,6 +823,8 @@ fixup_match_2 (insn, dst, src, offset, regmove_dump_file) && (NOTE_LINE_NUMBER (p) == NOTE_INSN_LOOP_BEG || NOTE_LINE_NUMBER (p) == NOTE_INSN_LOOP_END))) break; + if (GET_RTX_CLASS (GET_CODE (p)) != 'i') + continue; if (reg_overlap_mentioned_p (dst, PATTERN (p))) { if (try_auto_increment (p, insn, 0, dst, newconst, 0))