[committed,PR45101] Fix obvious mistake in gcse.c

Submitted by Maxim Kuvyrkov on July 28, 2010, 10:13 a.m.

Details

Message ID 4C5002D4.7010706@codesourcery.com
State New
Headers show

Commit Message

Maxim Kuvyrkov July 28, 2010, 10:13 a.m.
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,

Patch hide | download patch | download mbox

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);
              }
       }
 }