[PATCH, committed] SFmode arg padding and va_arg cleanup
Alan Modra
amodra@bigpond.net.au
Wed Jul 28 11:26:00 GMT 2004
Applied mainline after testing powerpc64-linux.
* config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
Index: gcc/config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.671
retrieving revision 1.672
diff -u -p -r1.671 -r1.672
--- gcc/config/rs6000/rs6000.c 23 Jul 2004 04:35:17 -0000 1.671
+++ gcc/config/rs6000/rs6000.c 28 Jul 2004 00:56:47 -0000 1.672
@@ -4594,9 +4594,9 @@ function_arg_padding (enum machine_mode
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);
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Gcc-patches
mailing list