aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2004-01-31 09:21:18 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2004-01-31 09:21:18 +0000
commit4de249d909c233761e01226009329a31197a8174 (patch)
tree4bdf7a42eabbdc21c283f25530f1e0938a9feae2 /gcc/emit-rtl.c
parentf84d109fc49f0e6f269c1e8a0c1bf48fb25c24b8 (diff)
downloadgcc-4de249d909c233761e01226009329a31197a8174.zip
gcc-4de249d909c233761e01226009329a31197a8174.tar.gz
gcc-4de249d909c233761e01226009329a31197a8174.tar.bz2
combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine and restore it to...
2004-01-31 Paolo Bonzini <bonzini@gnu.org> * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine and restore it to gen_lowpart_general on exit. (gen_lowpart_for_combine): Adjust all callers to go through gen_lowpart. * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible and restore it to gen_lowpart_general on exit. (gen_lowpart_if_possible): Adjust all callers to go through gen_lowpart. * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart. (gen_lowpart): Declare as pointer to function, initialized to gen_lowpart_general. * rtl.h (gen_lowpart): Declare as pointer to function. From-SVN: r77026
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index c720b65..df2a236 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -99,6 +99,8 @@ rtx global_rtl[GR_MAX];
at the beginning of each function. */
static GTY(()) rtx static_regno_reg_rtx[FIRST_PSEUDO_REGISTER];
+rtx (*gen_lowpart) (enum machine_mode mode, rtx x) = gen_lowpart_general;
+
/* We record floating-point CONST_DOUBLEs in each floating-point mode for
the values of 0, 1, and 2. For the integer entries and VOIDmode, we
record a copy of const[012]_rtx. */
@@ -1207,7 +1209,7 @@ subreg_realpart_p (rtx x)
If X is a MEM whose address is a QUEUED, the value may be so also. */
rtx
-gen_lowpart (enum machine_mode mode, rtx x)
+gen_lowpart_general (enum machine_mode mode, rtx x)
{
rtx result = gen_lowpart_common (mode, x);