diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-01-14 21:59:30 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-01-14 21:59:30 +0000 |
commit | 3a1797641a5b8e06d3d7b48ea16240264aba3e9d (patch) | |
tree | d4da852b5e18eec4d64813a228f88334dbb80a8b | |
parent | 0046e3428a76b0a99d37a250fcc116f632eb4c75 (diff) | |
download | gcc-3a1797641a5b8e06d3d7b48ea16240264aba3e9d.zip gcc-3a1797641a5b8e06d3d7b48ea16240264aba3e9d.tar.gz gcc-3a1797641a5b8e06d3d7b48ea16240264aba3e9d.tar.bz2 |
calls.c: Replace STRICT_ARGUMENT_NAMING in comments with...
* calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
targetm.calls.strict_argument_naming().
* target.h: Likewise.
From-SVN: r75886
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/calls.c | 13 | ||||
-rw-r--r-- | gcc/target.h | 2 |
3 files changed, 14 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5da9220a..d661fd5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-01-14 Kazu Hirata <kazu@cs.umass.edu> + + * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with + targetm.calls.strict_argument_naming(). + * target.h: Likewise. + 2004-01-14 Richard Henderson <rth@redhat.com> PR debug/13231 diff --git a/gcc/calls.c b/gcc/calls.c index d9a62e7..1be581c 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2405,16 +2405,17 @@ expand_call (tree exp, rtx target, int ignore) /* Compute number of named args. Normally, don't include the last named arg if anonymous args follow. - We do include the last named arg if STRICT_ARGUMENT_NAMING is nonzero. + We do include the last named arg if + targetm.calls.strict_argument_naming() returns nonzero. (If no anonymous args follow, the result of list_length is actually one too large. This is harmless.) If targetm.calls.pretend_outgoing_varargs_named() returns - nonzero, and STRICT_ARGUMENT_NAMING is zero, this machine will be - able to place unnamed args that were passed in registers into the - stack. So treat all args as named. This allows the insns - emitting for a specific argument list to be independent of the - function declaration. + nonzero, and targetm.calls.strict_argument_naming() returns zero, + this machine will be able to place unnamed args that were passed + in registers into the stack. So treat all args as named. This + allows the insns emitting for a specific argument list to be + independent of the function declaration. If targetm.calls.pretend_outgoing_varargs_named() returns zero, we do not have any reliable way to pass unnamed args in diff --git a/gcc/target.h b/gcc/target.h index 9393537..f63b078 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -433,7 +433,7 @@ struct gcc_target tree type, int *pretend_arg_size, int second_time); bool (*strict_argument_naming) (CUMULATIVE_ARGS *ca); /* Returns true if we should use SETUP_INCOMING_VARARGS and/or - STRICT_ARGUMENT_NAMING. */ + targetm.calls.strict_argument_naming(). */ bool (*pretend_outgoing_varargs_named) (CUMULATIVE_ARGS *ca); } calls; }; |