diff options
| author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-31 14:04:41 +0000 |
|---|---|---|
| committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-31 14:04:41 +0000 |
| commit | d3ef58ecfde2fa6bea9d9e559a030b7da00fc513 (patch) | |
| tree | f315acb9a1c61b052fbec46db3f21b6e6f27a5cf | |
| parent | 9f426305e70970f6bcbe5b03a89f84fac23813dc (diff) | |
| download | ppe42-gcc-d3ef58ecfde2fa6bea9d9e559a030b7da00fc513.tar.gz ppe42-gcc-d3ef58ecfde2fa6bea9d9e559a030b7da00fc513.zip | |
* calls.c (combine_pending_stack_adjustment_and_call): Only use
preferred_unit_stack_boundary when it is > 1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35381 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/calls.c | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2a385c735e..42ea12c88f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl> + + * calls.c (combine_pending_stack_adjustment_and_call): Only use + preferred_unit_stack_boundary when it is > 1. + 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk> * c-common.c (init_function_format_info): Add C99 format functions diff --git a/gcc/calls.c b/gcc/calls.c index 8c5b9bcd29c..f3ce50d4735 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1913,10 +1913,13 @@ combine_pending_stack_adjustment_and_call (unadjusted_args_size, adjustment = pending_stack_adjust; /* Push enough additional bytes that the stack will be aligned after the arguments are pushed. */ - if (unadjusted_alignment >= 0) - adjustment -= preferred_unit_stack_boundary - unadjusted_alignment; - else - adjustment += unadjusted_alignment; + if (preferred_unit_stack_boundary > 1) + { + if (unadjusted_alignment >= 0) + adjustment -= preferred_unit_stack_boundary - unadjusted_alignment; + else + adjustment += unadjusted_alignment; + } /* Now, sets ARGS_SIZE->CONSTANT so that we pop the right number of bytes after the call. The right number is the entire |

