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] Use gen_int_mode instead of GEN_INT+trunc_int_for_mode


Bootstrapped & regression-tested on x86_64-linxu-gnu.  Applied as obvious.

Thanks,
Richard


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

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


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