diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-30 20:19:53 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-30 20:19:53 +0000 |
commit | befa808cc0d0df8b93457541534f66e8de805e9b (patch) | |
tree | 8942e1dcdd508e630430c7db002c19722d3c4e6e /gcc/builtins.c | |
parent | cc31dd2ae14252a13eb889c80f5403ce42d22554 (diff) | |
download | gcc-befa808cc0d0df8b93457541534f66e8de805e9b.tar.gz |
2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
* builtins.c (std_gimplify_va_arg_expr): Replace
PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
* config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138340 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 9a9c6a33b51..ca551915c50 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -4798,11 +4798,11 @@ std_gimplify_va_arg_expr (tree valist, tree type, gimple_seq *pre_p, boundary = FUNCTION_ARG_BOUNDARY (TYPE_MODE (type), type); /* When we align parameter on stack for caller, if the parameter - alignment is beyond PREFERRED_STACK_BOUNDARY, it will be - aligned at PREFERRED_STACK_BOUNDARY. We will match callee + alignment is beyond MAX_SUPPORTED_STACK_ALIGNMENT, it will be + aligned at MAX_SUPPORTED_STACK_ALIGNMENT. We will match callee here with caller. */ - if (boundary > PREFERRED_STACK_BOUNDARY) - boundary = PREFERRED_STACK_BOUNDARY; + if (boundary > MAX_SUPPORTED_STACK_ALIGNMENT) + boundary = MAX_SUPPORTED_STACK_ALIGNMENT; boundary /= BITS_PER_UNIT; |