summaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-23 17:31:12 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-23 17:31:12 +0000
commit54d759e3cf399ed1950b751ceb0bd2ed81177f7b (patch)
tree82b2f6f39414af2b6ce011a0393ef291a7b05e3f /gcc/calls.c
parentb07c9e91f8d970d187e344445f77fce90ede0001 (diff)
downloadgcc-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.c8
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;