From: Andrew MacLeod Date: Wed, 29 Aug 2001 21:43:41 +0000 (+0000) Subject: gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL note should not... X-Git-Tag: prereleases/libstdc++-3.0.95~2355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c63b1ae8a150c05ecee144cfb63b004af487df55;p=thirdparty%2Fgcc.git gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL note should not be considered outside the... 2001-08-29 Andrew MacLeod * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL note should not be considered outside the libcall block. From-SVN: r45276 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c1b07cba4da..cbf514b28602 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-29 Andrew MacLeod + + * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL + note should not be considered outside the libcall block. + 2001-08-29 Kaveh R. Ghazi * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE. diff --git a/gcc/gcse.c b/gcc/gcse.c index 2a33a1555ec6..029c5b6cf24c 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -2545,10 +2545,12 @@ compute_hash_table (set_p) if (INSN_P (insn)) { if (find_reg_note (insn, REG_LIBCALL, NULL_RTX)) - in_libcall_block = 1; - else if (find_reg_note (insn, REG_RETVAL, NULL_RTX)) - in_libcall_block = 0; - hash_scan_insn (insn, set_p, in_libcall_block); + in_libcall_block = 1; + else if (set_p && find_reg_note (insn, REG_RETVAL, NULL_RTX)) + in_libcall_block = 0; + hash_scan_insn (insn, set_p, in_libcall_block); + if (!set_p && find_reg_note (insn, REG_RETVAL, NULL_RTX)) + in_libcall_block = 0; } }