diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2003-10-07 06:34:46 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2003-10-07 06:34:46 +0000 |
commit | aaa2154200561722a98504ce6f4ddd71dc76295a (patch) | |
tree | b87e6198a94e88a7388d46eda8e3ee5f72056372 | |
parent | 46b9a73c1c2e2c5fdd5202218adfb06ff0ca2cae (diff) | |
download | gcc-aaa2154200561722a98504ce6f4ddd71dc76295a.zip gcc-aaa2154200561722a98504ce6f4ddd71dc76295a.tar.gz gcc-aaa2154200561722a98504ce6f4ddd71dc76295a.tar.bz2 |
mips.c (mips_expand_prologue): Remove unused traversal of function arguments.
* config/mips/mips.c (mips_expand_prologue): Remove unused
traversal of function arguments.
From-SVN: r72181
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 37 |
2 files changed, 5 insertions, 37 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 959d3d2..0728718 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2003-10-07 Richard Sandiford <rsandifo@redhat.com> + * config/mips/mips.c (mips_expand_prologue): Remove unused + traversal of function arguments. + +2003-10-07 Richard Sandiford <rsandifo@redhat.com> + * doc/invoke.texi: Remove documentation of -mentry. * config/mips/mips.c (mips_entry_string, mips_entry): Remove. (override_options, mips_save_reg_p): Remove handling. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index c9f3573..1eb9426 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -6650,47 +6650,10 @@ mips_expand_prologue (void) { HOST_WIDE_INT tsize; rtx tmp_rtx = 0; - tree fndecl = current_function_decl; - tree fntype = TREE_TYPE (fndecl); - tree fnargs = DECL_ARGUMENTS (fndecl); - tree cur_arg; - CUMULATIVE_ARGS args_so_far; if (cfun->machine->global_pointer > 0) REGNO (pic_offset_table_rtx) = cfun->machine->global_pointer; - /* If struct value address is treated as the first argument, make it so. */ - if (aggregate_value_p (DECL_RESULT (fndecl), fndecl) - && ! current_function_returns_pcc_struct - && targetm.calls.struct_value_rtx (fndecl, 0) == 0) - { - tree type = build_pointer_type (fntype); - tree function_result_decl = build_decl (PARM_DECL, NULL_TREE, type); - - DECL_ARG_TYPE (function_result_decl) = type; - TREE_CHAIN (function_result_decl) = fnargs; - fnargs = function_result_decl; - } - - /* Go through the function arguments, leaving args_so_far reflecting - the final state. */ - INIT_CUMULATIVE_ARGS (args_so_far, fntype, NULL_RTX, current_function_decl); - for (cur_arg = fnargs; cur_arg != 0; cur_arg = TREE_CHAIN (cur_arg)) - { - tree passed_type; - enum machine_mode passed_mode; - - passed_type = DECL_ARG_TYPE (cur_arg); - if (TREE_ADDRESSABLE (passed_type)) - { - passed_type = build_pointer_type (passed_type); - passed_mode = Pmode; - } - else - passed_mode = TYPE_MODE (passed_type); - FUNCTION_ARG_ADVANCE (args_so_far, passed_mode, passed_type, 1); - } - tsize = compute_frame_size (get_frame_size ()); if (tsize > 0) |