This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix handling of constant doubles in expand_mult


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]