From b91accd685798cd0cb4f775bfcdcc40c18efbdb6 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 28 Jul 2004 00:56:47 +0000 Subject: [PATCH] * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards. From-SVN: r85242 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/rs6000.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f760a2b16f..e76b32b1670 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-07-28 Alan Modra + + * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards. + 2004-07-27 Richard Henderson * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 02f3092704f..32b9c08cab4 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4594,9 +4594,9 @@ function_arg_padding (enum machine_mode mode, tree type) return upward; } - /* SFmode parameters are not padded. */ - if (TARGET_64BIT && mode == SFmode) - return none; + /* SFmode parameters are padded upwards. */ + if (mode == SFmode) + return upward; /* Fall back to the default. */ return DEFAULT_FUNCTION_ARG_PADDING (mode, type); -- 2.30.2