[Bug middle-end/25505] [4.0/4.1/4.2 Regression] gcc uses way too much stack space for this code

jconner at apple dot com gcc-bugzilla@gcc.gnu.org
Mon Aug 21 23:43:00 GMT 2006

------- Comment #17 from jconner at apple dot com  2006-08-21 23:43 -------
I can reduce the stack size in this example to ~13k by not invoking
mark_temp_addr_taken from expand_call (calls.c).  This allows
compiler-generated temps used to store return values to share stack slots, even
when the function calls are in the same scope.  The validity of this change is
supported by testing against i386-Linux and ppc-Darwin on 4.1 and mainline with
no regressions, but the original importer of this code has some concerns that
this might introduce subtle problems.  See discussion here:


jconner at apple dot com changed:

           What    |Removed                     |Added
                 CC|                            |jconner at apple dot com


More information about the Gcc-bugs mailing list