This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix a couple of comments in calls.c
- 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:10:39 +0930
- Subject: Fix a couple of comments in calls.c
Applying as obvious to make comments match rth's 2004-12-29 change
from FUNCTION_ARG_PARTIAL_NREGS to TARGET_ARG_PARTIAL_BYTES.
* calls.c (struct arg_data): Update "partial" comment.
(load_register_parameters): Update "nregs" comment.
diff -urp -xCVS -x'*~' -x'.#*' gcc-virgin/gcc/calls.c gcc-current/gcc/calls.c
--- gcc-virgin/gcc/calls.c 2005-03-21 09:38:38.000000000 +1030
+++ gcc-current/gcc/calls.c 2005-03-22 17:04:12.000000000 +1030
@@ -71,8 +71,8 @@ struct arg_data
/* If REG was promoted from the actual mode of the argument expression,
indicates whether the promotion is sign- or zero-extended. */
int unsignedp;
- /* Number of registers to use. 0 means put the whole arg in registers.
- Also 0 if not passed in registers. */
+ /* Number of bytes to put in registers. 0 means put the whole arg
+ in registers. Also 0 if not passed in registers. */
int partial;
/* Nonzero if argument must be passed on stack.
Note that some arguments may be passed on the stack
@@ -1473,10 +1473,10 @@ load_register_parameters (struct arg_dat
int nregs;
int size = 0;
rtx before_arg = get_last_insn ();
- /* Set to non-negative if must move a word at a time, even if just
- one word (e.g, partial == 1 && mode == DFmode). Set to -1 if
- we just use a normal move insn. This value can be zero if the
- argument is a zero size structure with no fields. */
+ /* Set non-negative if we must move a word at a time, even if
+ just one word (e.g, partial == 4 && mode == DFmode). Set
+ to -1 if we just use a normal move insn. This value can be
+ zero if the argument is a zero size structure. */
nregs = -1;
if (GET_CODE (reg) == PARALLEL)
;
--
Alan Modra
IBM OzLabs - Linux Technology Centre