Patchwork [committed] Use gen_int_mode instead of GEN_INT+trunc_int_for_mode

login
register
mail settings
Submitter Richard Sandiford
Date Sept. 9, 2013, 9:24 a.m.
Message ID <87r4cygxft.fsf@talisman.default>
Download mbox | patch
Permalink /patch/273534/
State New
Headers show

Comments

Richard Sandiford - Sept. 9, 2013, 9:24 a.m.
Bootstrapped & regression-tested on x86_64-linxu-gnu.  Applied as obvious.

Thanks,
Richard


gcc/
	* asan.c (asan_shadow_cst): Use gen_int_mode.

Patch

Index: gcc/asan.c
===================================================================
--- gcc/asan.c	2013-09-08 16:54:50.485108772 +0100
+++ gcc/asan.c	2013-09-08 16:59:51.380477968 +0100
@@ -869,7 +869,7 @@  asan_shadow_cst (unsigned char shadow_by
   for (i = 0; i < 4; i++)
     val |= (unsigned HOST_WIDE_INT) shadow_bytes[BYTES_BIG_ENDIAN ? 3 - i : i]
 	   << (BITS_PER_UNIT * i);
-  return GEN_INT (trunc_int_for_mode (val, SImode));
+  return gen_int_mode (val, SImode);
 }
 
 /* Clear shadow memory at SHADOW_MEM, LEN bytes.  Can't call a library call here