This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Use gen_int_mode instead of GEN_INT+trunc_int_for_mode
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 09 Sep 2013 10:24:06 +0100
- Subject: [committed] Use gen_int_mode instead of GEN_INT+trunc_int_for_mode
- Authentication-results: sourceware.org; auth=none
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