This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Avoid code-generation differences on virtual addresses
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 7 Jan 2010 15:16:02 +0100 (CET)
- Subject: [PATCH] Avoid code-generation differences on virtual addresses
This fixes the testcase in PR42641 though maybe more issues remain
within graphite.
Will commit after bootstrapping and regtesting.
Richard.
2010-01-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/42641
* sese.c (rename_map_elt_info): Use the SSA name version, do
not hash pointers.
Index: gcc/sese.c
===================================================================
--- gcc/sese.c (revision 155690)
+++ gcc/sese.c (working copy)
@@ -78,7 +78,7 @@ debug_rename_map (htab_t map)
hashval_t
rename_map_elt_info (const void *elt)
{
- return htab_hash_pointer (((const struct rename_map_elt_s *) elt)->old_name);
+ return SSA_NAME_VERSION (((const struct rename_map_elt_s *) elt)->old_name);
}
/* Compares database elements E1 and E2. */