This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix handling of constant doubles in expand_mult
- From: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Jul 2012 11:50:48 -0400
- Subject: [committed] Fix handling of constant doubles in expand_mult
- Reply-to: John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>
Committed as obvious.
Tested on hppa2.0w-hp-hpux11.11 and hppa-unknown-linux-gnu.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/53823
* expmed.c (expand_mult): Skip synth_mult for constant double op1 except
for special cases. Don't initialize coeff and is_neg.
Index: expmed.c
===================================================================
--- expmed.c (revision 189920)
+++ expmed.c (working copy)
@@ -3176,8 +3176,8 @@
if (INTEGRAL_MODE_P (mode))
{
rtx fake_reg;
- HOST_WIDE_INT coeff = 0;
- bool is_neg = false;
+ HOST_WIDE_INT coeff;
+ bool is_neg;
int mode_bitsize;
if (op1 == CONST0_RTX (mode))
@@ -3230,6 +3230,8 @@
}
goto skip_synth;
}
+ else
+ goto skip_synth;
}
else
goto skip_synth;