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

login
register
mail settings
Submitter Maxim Kuvyrkov
Date July 28, 2010, 10:13 a.m.
Message ID <4C5002D4.7010706@codesourcery.com>
Download mbox | patch
Permalink /patch/60131/
State New
Headers show

Comments

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

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