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][alias-improvements] Fix Ada bootstrap


The following fixes Ada bootstrap - we forget to create constraints for
the static chain incoming parameter for un-nested functions.  Oops.

Boostrapped on x86_64-unknown-linux-gnu for Ada/C.  I'm completely
testing it now and, as it is latent on the trunk also test and apply
it there.

Richard.

2008-11-26  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-structalias.c (intra_create_variable_infos): Make
	a constraint for the static chain parameter.

Index: gcc/tree-ssa-structalias.c
===================================================================
*** gcc/tree-ssa-structalias.c	(revision 142223)
--- gcc/tree-ssa-structalias.c	(working copy)
*************** intra_create_variable_infos (void)
*** 4556,4561 ****
--- 4556,4570 ----
  	    make_constraint_from (p, nonlocal_id);
  	}
      }
+ 
+   /* Add a constraint for the incoming static chain parameter.  */
+   if (cfun->static_chain_decl != NULL_TREE)
+     {
+       varinfo_t p, chain_vi = get_vi_for_tree (cfun->static_chain_decl);
+ 
+       for (p = chain_vi; p; p = p->next)
+ 	make_constraint_from (p, nonlocal_id);
+     }
  }
  
  /* Structure used to put solution bitmaps in a hashtable so they can


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