This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Names of heap vars in alias analyzer


Hi,
This is a small fix for the alias analyzer, to use alias_get_name() to set the name field when creating the varinfo for heap variables. This lets constraints be printed with full variable names in the dump file. (e.g. HEAP.12 instead of just 'HEAP')


C.L.

2009-11-19 Chung-Lin Tang <cltang@pllab.cs.nthu.edu.tw>

	* tree-ssa-structalias.c (make_constraint_from_heapvar): Use
	alias_get_name() to set varinfo name field.


Index: tree-ssa-structalias.c
===================================================================
--- tree-ssa-structalias.c	(revision 154291)
+++ tree-ssa-structalias.c	(working copy)
@@ -3407,7 +3407,7 @@
   if (gimple_referenced_vars (cfun))
     add_referenced_var (heapvar);
 
-  vi = new_var_info (heapvar, name);
+  vi = new_var_info (heapvar, alias_get_name (heapvar));
   vi->is_artificial_var = true;
   vi->is_heap_var = true;
   vi->is_unknown_size_var = true;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]