[PATCH][ada] build -> buildN

Richard Guenther rguenther@suse.de
Fri Dec 2 14:37:00 GMT 2005


And Ada, last frontend specific conversion.

Richard.


2005-12-02  Richard Guenther  <rguenther@suse.de>

	* trans.c (gnat_gimplify_expr): Use buildN instead of build.

Index: ada/trans.c
===================================================================
*** ada/trans.c	(revision 107890)
--- ada/trans.c	(working copy)
*************** gnat_gimplify_expr (tree *expr_p, tree *
*** 4632,4638 ****
  	       && TREE_CODE_CLASS (TREE_CODE (op)) != tcc_constant)
  	{
  	  tree new_var = create_tmp_var (TREE_TYPE (op), "A");
! 	  tree mod = build (MODIFY_EXPR, TREE_TYPE (op), new_var, op);
  
  	  TREE_ADDRESSABLE (new_var) = 1;
  
--- 4632,4638 ----
  	       && TREE_CODE_CLASS (TREE_CODE (op)) != tcc_constant)
  	{
  	  tree new_var = create_tmp_var (TREE_TYPE (op), "A");
! 	  tree mod = build2 (MODIFY_EXPR, TREE_TYPE (op), new_var, op);
  
  	  TREE_ADDRESSABLE (new_var) = 1;
  



More information about the Gcc-patches mailing list