Commit 0ea6f6a0 by Kazu Hirata Committed by Kazu Hirata

* config/h8300/h8300.c (hand_list): Move inside function_arg.

From-SVN: r49454
parent cbf1b2da
2002-02-02 Kazu Hirata <kazu@hxi.com> 2002-02-02 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (hand_list): Move inside function_arg.
2002-02-02 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (h8_push_ops): Move inside * config/h8300/h8300.c (h8_push_ops): Move inside
h8300_init_once. h8300_init_once.
(h8_pop_ops): Likewise. (h8_pop_ops): Likewise.
......
...@@ -794,8 +794,19 @@ h8300_pr_saveall (pfile) ...@@ -794,8 +794,19 @@ h8300_pr_saveall (pfile)
pragma_saveall = 1; pragma_saveall = 1;
} }
static const char *const hand_list[] = /* If the next function argument with MODE and TYPE is to be passed in
a register, return a reg RTX for the hard register in which to pass
the argument. CUM represents the state after the last argument.
If the argument is to be pushed, NULL_RTX is returned. */
rtx
function_arg (cum, mode, type, named)
CUMULATIVE_ARGS *cum;
enum machine_mode mode;
tree type;
int named;
{ {
static const char *const hand_list[] = {
"__main", "__main",
"__cmpsi2", "__cmpsi2",
"__divhi3", "__divhi3",
...@@ -812,20 +823,8 @@ static const char *const hand_list[] = ...@@ -812,20 +823,8 @@ static const char *const hand_list[] =
"__reg_memset", "__reg_memset",
"__ucmpsi2", "__ucmpsi2",
0, 0,
}; };
/* If the next function argument with MODE and TYPE is to be passed in
a register, return a reg RTX for the hard register in which to pass
the argument. CUM represents the state after the last argument.
If the argument is to be pushed, NULL_RTX is returned. */
rtx
function_arg (cum, mode, type, named)
CUMULATIVE_ARGS *cum;
enum machine_mode mode;
tree type;
int named;
{
rtx result = NULL_RTX; rtx result = NULL_RTX;
const char *fname; const char *fname;
int regpass = 0; int regpass = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment