This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix rs6000_arg_partial_bytes comments.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Mar 2005 16:34:25 +0930
- Subject: Fix rs6000_arg_partial_bytes comments.
- References: <20050330064039.GU14407@bubble.modra.org>
On Wed, Mar 30, 2005 at 04:10:39PM +0930, Alan Modra wrote:
> Applying as obvious to make comments match rth's 2004-12-29 change
> from FUNCTION_ARG_PARTIAL_NREGS to TARGET_ARG_PARTIAL_BYTES.
Ditto for rs6000.c
* config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
Index: gcc/config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.798
diff -u -p -r1.798 rs6000.c
--- gcc/config/rs6000/rs6000.c 29 Mar 2005 16:10:06 -0000 1.798
+++ gcc/config/rs6000/rs6000.c 30 Mar 2005 07:03:11 -0000
@@ -4957,10 +4957,10 @@ function_arg (CUMULATIVE_ARGS *cum, enum
}
/* For an arg passed partly in registers and partly in memory, this is
- the number of registers used. For args passed entirely in registers
- or entirely in memory, zero. When an arg is described by a PARALLEL,
- perhaps using more than one register type, this function returns the
- number of bytes of registers used by the PARALLEL. */
+ the number of bytes passed in registers. For args passed entirely in
+ registers or entirely in memory, zero. When an arg is described by a
+ PARALLEL, perhaps using more than one register type, this function
+ returns the number of bytes used by the first element of the PARALLEL. */
static int
rs6000_arg_partial_bytes (CUMULATIVE_ARGS *cum, enum machine_mode mode,
@@ -4985,9 +4985,10 @@ rs6000_arg_partial_bytes (CUMULATIVE_ARG
align_words = rs6000_parm_start (mode, type, cum->words);
if (USE_FP_FOR_ARG_P (cum, mode, type)
- /* If we are passing this arg in gprs as well, then this function
- should return the number of gprs (or memory) partially passed,
- *not* the number of fprs. */
+ /* If we are passing this arg in the fixed parameter save area
+ (gprs or memory) as well as fprs, then this function should
+ return the number of bytes passed in the parameter save area
+ rather than bytes passed in fprs. */
&& !(type
&& (cum->nargs_prototype <= 0
|| (DEFAULT_ABI == ABI_AIX
--
Alan Modra
IBM OzLabs - Linux Technology Centre