This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/43884] [4.4/4.5/4.6 Regression] Performance degradation for simple fibonacci numbers calculation due to extra stack alignment
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Apr 2010 13:44:37 -0000
- Subject: [Bug target/43884] [4.4/4.5/4.6 Regression] Performance degradation for simple fibonacci numbers calculation due to extra stack alignment
- References: <bug-43884-6649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from hjl dot tools at gmail dot com 2010-04-26 13:44 -------
(In reply to comment #9)
> In the leaf_function_p sense it is non-leaf. For the stack alignment it of
> course would be possible to change the stack alignment requirements of the
> function if it calls itself, doesn't call other functions (nor tail call them)
> and it is changed not to assume the standard alignment in the whole function.
>
That is true. For tail call, we only need to align outgoing stack to
minimum of maximum local stack alignment and incoming stack alignment.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43884