diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-23 17:31:12 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-23 17:31:12 +0000 |
commit | 54d759e3cf399ed1950b751ceb0bd2ed81177f7b (patch) | |
tree | 82b2f6f39414af2b6ce011a0393ef291a7b05e3f /gcc/calls.c | |
parent | b07c9e91f8d970d187e344445f77fce90ede0001 (diff) | |
download | gcc-54d759e3cf399ed1950b751ceb0bd2ed81177f7b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137045 138bc75d-0d04-0410-961f-82ee72b054a4
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 e7799f0e2ad..92ff9050e3b 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; |