aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2007-03-02 09:49:58 -0800
committerRichard Henderson <rth@gcc.gnu.org>2007-03-02 09:49:58 -0800
commit962f383322622d12393b4a5d1b4a5fade831d51d (patch)
tree837c31d1173819855617bf6c6639209cf7954025 /gcc/function.c
parent1769232d2607e9219b1932090c1036a6ed334152 (diff)
downloadgcc-962f383322622d12393b4a5d1b4a5fade831d51d.zip
gcc-962f383322622d12393b4a5d1b4a5fade831d51d.tar.gz
gcc-962f383322622d12393b4a5d1b4a5fade831d51d.tar.bz2
expr.h (promoted_input_arg): Remove decl.
* expr.h (promoted_input_arg): Remove decl. * function.c (promoted_input_arg): Merge into ... * combine.c (setup_incoming_promotions): ... only caller. Rearrange to avoid double loop. From-SVN: r122479
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 3c62227..1d48f5b 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3229,40 +3229,6 @@ gimplify_parameters (void)
return stmts;
}
-/* Indicate whether REGNO is an incoming argument to the current function
- that was promoted to a wider mode. If so, return the RTX for the
- register (to get its mode). PMODE and PUNSIGNEDP are set to the mode
- that REGNO is promoted from and whether the promotion was signed or
- unsigned. */
-
-rtx
-promoted_input_arg (unsigned int regno, enum machine_mode *pmode, int *punsignedp)
-{
- tree arg;
-
- for (arg = DECL_ARGUMENTS (current_function_decl); arg;
- arg = TREE_CHAIN (arg))
- if (REG_P (DECL_INCOMING_RTL (arg))
- && REGNO (DECL_INCOMING_RTL (arg)) == regno
- && TYPE_MODE (DECL_ARG_TYPE (arg)) == TYPE_MODE (TREE_TYPE (arg)))
- {
- enum machine_mode mode = TYPE_MODE (TREE_TYPE (arg));
- int unsignedp = TYPE_UNSIGNED (TREE_TYPE (arg));
-
- mode = promote_mode (TREE_TYPE (arg), mode, &unsignedp, 1);
- if (mode == GET_MODE (DECL_INCOMING_RTL (arg))
- && mode != DECL_MODE (arg))
- {
- *pmode = DECL_MODE (arg);
- *punsignedp = unsignedp;
- return DECL_INCOMING_RTL (arg);
- }
- }
-
- return 0;
-}
-
-
/* Compute the size and offset from the start of the stacked arguments for a
parm passed in mode PASSED_MODE and with type TYPE.