This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, committed] SFmode arg padding and va_arg cleanup


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]