diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2008-06-23 19:31:12 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2008-06-23 19:31:12 +0200 |
commit | b5f772ce8d3169974b600e4c3f16b81f7c69ab0c (patch) | |
tree | 82b2f6f39414af2b6ce011a0393ef291a7b05e3f /gcc/calls.c | |
parent | f9f6caf50d6a3ea1d66ee4df6a28a00395789842 (diff) | |
download | gcc-b5f772ce8d3169974b600e4c3f16b81f7c69ab0c.zip gcc-b5f772ce8d3169974b600e4c3f16b81f7c69ab0c.tar.gz gcc-b5f772ce8d3169974b600e4c3f16b81f7c69ab0c.tar.bz2 |
PR middle-end/PR36584
PR middle-end/PR36584
* calls.c (expand_call): Increase alignment for recursive functions.
testsuite/ChangeLog:
PR middle-end/PR36584
* testsuite/gcc.dg/pr36584.c: New test.
* testsuite/gcc.target/i386/local2.c: Remove invalid test.
From-SVN: r137045
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index e7799f0..92ff905 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2298,11 +2298,9 @@ expand_call (tree exp, rtx target, int ignore) || !lang_hooks.decls.ok_for_sibcall (fndecl)) try_tail_call = 0; - /* Ensure current function's preferred stack boundary is at least - what we need. We don't have to increase alignment for recursive - functions. */ - if (crtl->preferred_stack_boundary < preferred_stack_boundary - && fndecl != current_function_decl) + /* Ensure current function's preferred stack + boundary is at least what we need. */ + if (crtl->preferred_stack_boundary < preferred_stack_boundary) crtl->preferred_stack_boundary = preferred_stack_boundary; preferred_unit_stack_boundary = preferred_stack_boundary / BITS_PER_UNIT; |