diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-03-30 07:06:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2005-03-30 16:36:05 +0930 |
commit | fb63c7292d3bd128707de10a0ad1522528e35ba9 (patch) | |
tree | b6e12562b5b7ddea8c248092aff572e71519504c | |
parent | f0078f86897b4756478cd95ea9b963ddfa4390bc (diff) | |
download | gcc-fb63c7292d3bd128707de10a0ad1522528e35ba9.tar.gz |
* config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
From-SVN: r97242
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 15 |
2 files changed, 10 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69af4806e8f..0a63204cbee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2005-03-30 Alan Modra <amodra@bigpond.net.au> + * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments. + * calls.c (struct arg_data): Update "partial" comment. (load_register_parameters): Update "nregs" comment. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 3ac7c833c78..831b8c259f4 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4957,10 +4957,10 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, } /* 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_ARGS *cum, enum machine_mode mode, 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 |