From patchwork Wed Jul 28 10:13:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [committed,PR45101] Fix obvious mistake in gcse.c Date: Wed, 28 Jul 2010 00:13:40 -0000 From: Maxim Kuvyrkov X-Patchwork-Id: 60131 Message-Id: <4C5002D4.7010706@codesourcery.com> To: gcc-patches Cc: Richard Guenther I've checked in the following obvious patch to fix operand ordering of insert_expr_in_table() in hash_scan_set. Richard, Thanks for pointing out the PR. Regards, diff --git a/gcc/gcse.c b/gcc/gcse.c index a60310f..1124131 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -1503,8 +1503,8 @@ hash_scan_set (rtx pat, rtx insn, struct hash_table_d *table) && ! JUMP_P (insn); /* Record the memory expression (DEST) in the hash table. */ - insert_expr_in_table (dest, GET_MODE (dest), insn, 0, - antic_p, avail_p, table); + insert_expr_in_table (dest, GET_MODE (dest), insn, + antic_p, avail_p, 0, table); } } }