summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-04 19:44:17 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-04 19:44:17 +0000
commitf0aa697e291d7fdf8272ddd77fe129818225e8ee (patch)
tree3427286e5232543b7832ed559ed98f99bcf7ceb1 /gcc
parentcd6ebd54060bd8d07afb27ecfcadfc1b7028f749 (diff)
downloadgcc-f0aa697e291d7fdf8272ddd77fe129818225e8ee.tar.gz
* expmed.c (expand_mult_add): Remove.
* expr.h: Remove the prototype for expand_mult_add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111712 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/expmed.c25
-rw-r--r--gcc/expr.h1
3 files changed, 5 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c3c2ae30b62..87cb7051c8c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-04 Kazu Hirata <kazu@codesourcery.com>
+
+ * expmed.c (expand_mult_add): Remove.
+ * expr.h: Remove the prototype for expand_mult_add.
+
2006-03-04 Jakub Jelinek <jakub@redhat.com>
* unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 7d77587e6e6..a4396c214e2 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -5025,31 +5025,6 @@ make_tree (tree type, rtx x)
return t;
}
}
-
-/* Return an rtx representing the value of X * MULT + ADD.
- TARGET is a suggestion for where to store the result (an rtx).
- MODE is the machine mode for the computation.
- X and MULT must have mode MODE. ADD may have a different mode.
- So can X (defaults to same as MODE).
- UNSIGNEDP is nonzero to do unsigned multiplication.
- This may emit insns. */
-
-rtx
-expand_mult_add (rtx x, rtx target, rtx mult, rtx add, enum machine_mode mode,
- int unsignedp)
-{
- tree type = lang_hooks.types.type_for_mode (mode, unsignedp);
- tree add_type = (GET_MODE (add) == VOIDmode
- ? type: lang_hooks.types.type_for_mode (GET_MODE (add),
- unsignedp));
- tree result = fold_build2 (PLUS_EXPR, type,
- fold_build2 (MULT_EXPR, type,
- make_tree (type, x),
- make_tree (type, mult)),
- make_tree (add_type, add));
-
- return expand_expr (result, target, VOIDmode, 0);
-}
/* Compute the logical-and of OP0 and OP1, storing it in TARGET
and returning TARGET.
diff --git a/gcc/expr.h b/gcc/expr.h
index 3188e947461..c3e0b92e082 100644
--- a/gcc/expr.h
+++ b/gcc/expr.h
@@ -731,7 +731,6 @@ extern rtx extract_bit_field (rtx, unsigned HOST_WIDE_INT,
unsigned HOST_WIDE_INT, int, rtx,
enum machine_mode, enum machine_mode);
extern rtx expand_mult (enum machine_mode, rtx, rtx, rtx, int);
-extern rtx expand_mult_add (rtx, rtx, rtx, rtx,enum machine_mode, int);
extern rtx expand_mult_highpart_adjust (enum machine_mode, rtx, rtx, rtx, rtx, int);
extern rtx assemble_static_space (unsigned HOST_WIDE_INT);