From: Jeffrey A Law Date: Fri, 24 Dec 1999 18:05:28 +0000 (+0000) Subject: [multiple changes] X-Git-Tag: prereleases/gcc-2.95.3-test1~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29869d522a2fd13606468c7164672f17265532f2;p=thirdparty%2Fgcc.git [multiple changes] 1999-12-23 Martin v. L�wis * fold-const.c (operand_equal_p): Use memcmp to compare string constants. Suggested by D. J. Bernstein Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com) * h8300.md (HImode preinc peephole): Fix typo. 1999-12-14 Bernd Schmidt * loop.c (check_dbra_loop): Can't reverse a biv that has maybe_multiple set. From-SVN: r31087 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6fa5342a5402..b6f3eb84a61d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +Thu Dec 23 11:59:56 1999 Jeffrey A Law (law@cygnus.com) + + 1999-12-23 Martin v. Löwis + * fold-const.c (operand_equal_p): Use memcmp to compare string + constants. + Suggested by D. J. Bernstein + + Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com) + * h8300.md (HImode preinc peephole): Fix typo. + + 1999-12-14 Bernd Schmidt + * loop.c (check_dbra_loop): Can't reverse a biv that has + maybe_multiple set. + 1999-12-07 Martin v. Löwis * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 7e49af5ef753..da6519300e98 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -2292,7 +2292,7 @@ (define_peephole [(set (match_operand:HI 1 "register_operand" "") - (plus:HI (match_dup 1) (const_int -1))) + (plus:HI (match_dup 1) (const_int -2))) (set (mem:HI (match_dup 1)) (match_operand:HI 0 "register_operand" ""))] "REGNO(operands[1]) != REGNO(operands[0])" diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 55dcf9bf1cf3..cbd004e40843 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2131,7 +2131,7 @@ operand_equal_p (arg0, arg1, only_const) case STRING_CST: return (TREE_STRING_LENGTH (arg0) == TREE_STRING_LENGTH (arg1) - && ! strncmp (TREE_STRING_POINTER (arg0), + && ! memcmp (TREE_STRING_POINTER (arg0), TREE_STRING_POINTER (arg1), TREE_STRING_LENGTH (arg0))); diff --git a/gcc/loop.c b/gcc/loop.c index 7ee92e143a69..730c0ec7f402 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -7696,6 +7696,7 @@ check_dbra_loop (loop_end, insn_count, loop_start, loop_info) for (bl = loop_iv_list; bl; bl = bl->next) { if (bl->biv_count == 1 + && ! bl->biv->maybe_multiple && bl->biv->dest_reg == XEXP (comparison, 0) && ! reg_used_between_p (regno_reg_rtx[bl->regno], bl->biv->insn, first_compare))