This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix middle-end/25505
Ian Lance Taylor wrote:
> Josh Conner <jconner@apple.com> writes:
>
>> Here's what I ran:
>>
>> sparc-sun-solaris2.9 (c, c++)
>> powerpc-apple-darwin8.6.0 (all default languages)
>> i686-pc-linux-gnu (all default languages)
>> mips-none-elf (c, c++)
>
> Does "all default languages" include Ada?
I got the ada support running under linux, and I re-ran the patch for
i686-pc-linux-gnu (c, ada) with no regressions. OK for mainline?
- Josh
2006-09-14 Josh Conner <jconner@apple.com>
PR middle-end/25505
* calls.c (expand_call): Allow reuse of structure return stack
temp.
Index: gcc/calls.c
===================================================================
--- gcc/calls.c (revision 117877)
+++ gcc/calls.c (working copy)
@@ -1985,7 +1985,7 @@
/* 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);