Commit 1186ec8c by Josh Conner Committed by Josh Conner

re PR middle-end/25505 (gcc uses way too much stack space for this code)

2006-09-20  Josh Conner  <jconner@apple.com>

	PR middle-end/25505
	* calls.c (expand_call): Allow reuse of structure return stack
	temp.

From-SVN: r117091
parent f8031312
2006-09-20 Josh Conner <jconner@apple.com>
PR middle-end/25505
* calls.c (expand_call): Allow reuse of structure return stack
temp.
2006-09-20 Paul Brook <paul@codesourcery.com> 2006-09-20 Paul Brook <paul@codesourcery.com>
* config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
......
...@@ -1985,7 +1985,7 @@ expand_call (tree exp, rtx target, int ignore) ...@@ -1985,7 +1985,7 @@ expand_call (tree exp, rtx target, int ignore)
/* For variable-sized objects, we must be called with a target /* For variable-sized objects, we must be called with a target
specified. If we were to allocate space on the stack here, specified. If we were to allocate space on the stack here,
we would have no way of knowing when to free it. */ we would have no way of knowing when to free it. */
rtx d = assign_temp (TREE_TYPE (exp), 1, 1, 1); rtx d = assign_temp (TREE_TYPE (exp), 0, 1, 1);
mark_temp_addr_taken (d); mark_temp_addr_taken (d);
structure_value_addr = XEXP (d, 0); structure_value_addr = XEXP (d, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment