From dee3c9ddae3ad52ea17f2624c95159bc1728d3bc Mon Sep 17 00:00:00 2001 From: jconner <jconner@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed, 20 Sep 2006 18:57:46 +0000 Subject: [PATCH] 2006-09-20 Josh Conner <jconner@apple.com> PR middle-end/25505 * calls.c (expand_call): Allow reuse of structure return stack temp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117091 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/calls.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad2001ec1aac..3e9a2d0d1e1f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for diff --git a/gcc/calls.c b/gcc/calls.c index 7c71eed0502a..b6f57df78c1a 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1985,7 +1985,7 @@ expand_call (tree exp, rtx target, int ignore) /* For variable-sized objects, we must be called with a target specified. If we were to allocate space on the stack here, 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); structure_value_addr = XEXP (d, 0); -- GitLab