Patchwork RFA (vax): Fix PR46740

login
register
mail settings
Submitter Joern Rennecke
Date Dec. 6, 2010, 5:21 p.m.
Message ID <20101206122100.yt4xf2wwocog4wco-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/74403/
State New
Headers show

Comments

Joern Rennecke - Dec. 6, 2010, 5:21 p.m.
Cross-built on x86_64-pc-linux-gnu .
2010-12-06  Joern Rennecke  <amylaar@spamcop.net>

	PR target/46740
	* config/vax/vax.c (vax_output_int_move) [HOST_BITS_PER_WIDE_INT != 32]:
	Use hval.
Richard Henderson - Dec. 6, 2010, 5:31 p.m.
On 12/06/2010 09:21 AM, Joern Rennecke wrote:
> +#else
> +	      gcc_assert (hval == 0);

Does it cause more problems to simply transform that #if
into a normal C if?  Nothing in that block looks as if it
would generate a warning on a 64-bit host...


r~

Patch

Index: config/vax/vax.c
===================================================================
--- config/vax/vax.c	(revision 167494)
+++ config/vax/vax.c	(working copy)
@@ -1140,6 +1140,8 @@  vax_output_int_move (rtx insn ATTRIBUTE_
 		  else
 		    lval |= hval << (32 - n);
 		}
+#else
+	      gcc_assert (hval == 0);
 #endif
 	      /*  If n is 0, then ashq is not the best way to emit this.  */
 	      if (n > 0)