diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-09-09 13:07:10 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-09-09 13:07:10 +0000 |
commit | 69db2d57a36cf785d652970a3d96f12c47eb0b80 (patch) | |
tree | fdde063e9a6ea15cd08c000aff12369fe5e168b4 /gcc/asan.c | |
parent | 69a59f0fa9b65198e4c1f87265105d396a598ea5 (diff) | |
download | gcc-69db2d57a36cf785d652970a3d96f12c47eb0b80.tar.gz |
asan.c (asan_emit_stack_protection): Use gen_int_mode instead of GEN_INT.
gcc/
* asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
GEN_INT.
* builtins.c (expand_errno_check): Likewise.
* dwarf2cfi.c (init_return_column_size): Likewise.
* except.c (sjlj_mark_call_sites): Likewise.
* expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
* lra-constraints.c (emit_inc): Likewise.
* ree.c (combine_set_extension): Likewise.
* regmove.c (fixup_match_2): Likewise.
* reload1.c (inc_for_reload): Likewise.
From-SVN: r202394
Diffstat (limited to 'gcc/asan.c')
-rw-r--r-- | gcc/asan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/asan.c b/gcc/asan.c index 844d53e598b..afe52602232 100644 --- a/gcc/asan.c +++ b/gcc/asan.c @@ -970,7 +970,7 @@ asan_emit_stack_protection (rtx base, HOST_WIDE_INT *offsets, tree *decls, gen_int_mode (base_offset, Pmode), NULL_RTX, 1, OPTAB_DIRECT); mem = gen_rtx_MEM (ptr_mode, base); - emit_move_insn (mem, GEN_INT (ASAN_STACK_FRAME_MAGIC)); + emit_move_insn (mem, gen_int_mode (ASAN_STACK_FRAME_MAGIC, ptr_mode)); mem = adjust_address (mem, VOIDmode, GET_MODE_SIZE (ptr_mode)); emit_move_insn (mem, expand_normal (str_cst)); shadow_base = expand_binop (Pmode, lshr_optab, base, |