Patchwork [committed] Fix handling of constant doubles in expand_mult

login
register
mail settings
Submitter John David Anglin
Date July 30, 2012, 3:50 p.m.
Message ID <20120730155047.GA28611@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/174033/
State New
Headers show

Comments

John David Anglin - July 30, 2012, 3:50 p.m.
Committed as obvious.

Tested on hppa2.0w-hp-hpux11.11 and hppa-unknown-linux-gnu.

Dave

Patch

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;