diff mbox

[committed] Fix PR tree-optimization/43959

Message ID 20101001005046.DAD254E7A@hiauly1.hia.nrc.ca
State New
Headers show

Commit Message

John David Anglin Oct. 2, 2010, 12:50 a.m. UTC
The attached change fixes PR tree-optimization/43959.  Tested on
hppa2.0w-hp-hpux11.11, hppa64-hp-hpux11.11 and hppa-unknown-linux-gnu.
Preaaproved by Richard Guenther.  Committed to trunk.

Dave
diff mbox

Patch

Index: function.c
===================================================================
--- function.c	(revision 164121)
+++ function.c	(working copy)
@@ -3578,7 +3578,7 @@ 
 		       && compare_tree_int (DECL_SIZE_UNIT (parm),
 					    STACK_CHECK_MAX_VAR_SIZE) > 0))
 		{
-		  local = create_tmp_var (type, get_name (parm));
+		  local = create_tmp_reg (type, get_name (parm));
 		  DECL_IGNORED_P (local) = 0;
 		  /* If PARM was addressable, move that flag over
 		     to the local copy, as its address will be taken,
@@ -3592,7 +3592,7 @@ 
 		  tree ptr_type, addr;
 
 		  ptr_type = build_pointer_type (type);
-		  addr = create_tmp_var (ptr_type, get_name (parm));
+		  addr = create_tmp_reg (ptr_type, get_name (parm));
 		  DECL_IGNORED_P (addr) = 0;
 		  local = build_fold_indirect_ref (addr);