diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-09-09 09:23:54 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-09-09 09:23:54 +0000 |
commit | dcad1dd3a35d7df31ce81bed0f94bb5b6d5a3328 (patch) | |
tree | 97612498871291a392f8065b5148af0e0da5770e /gcc | |
parent | daf5c7705fe749beef4971a4cbaff770f784d4d6 (diff) | |
download | gcc-dcad1dd3a35d7df31ce81bed0f94bb5b6d5a3328.zip gcc-dcad1dd3a35d7df31ce81bed0f94bb5b6d5a3328.tar.gz gcc-dcad1dd3a35d7df31ce81bed0f94bb5b6d5a3328.tar.bz2 |
asan.c (asan_shadow_cst): Use gen_int_mode.
gcc/
* asan.c (asan_shadow_cst): Use gen_int_mode.
From-SVN: r202384
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/asan.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c0e334..ab2bdd9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-09-09 Richard Sandiford <rdsandiford@googlemail.com> + + * asan.c (asan_shadow_cst): Use gen_int_mode. + 2013-09-08 Jan Hubicka <jh@suse.cz> * ipa-profile.c: Add toplevel comment. @@ -869,7 +869,7 @@ asan_shadow_cst (unsigned char shadow_bytes[4]) 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 |