Permalink
Browse files

2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>

	    Yury Gribov  <y.gribov@samsung.com>

	PR sanitizer/58543
	* asan.c (asan_clear_shadow): Allocate a new vreg for temporary
	shadow pointer to avoid clobbering the main one.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204251 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information...
ygribov
ygribov committed Oct 31, 2013
1 parent 85b33ea commit a15fa55a4a13bde63a86422bba672b3af8232a31
Showing with 8 additions and 1 deletion.
  1. +7 −0 gcc/ChangeLog
  2. +1 −1 gcc/asan.c
@@ -1,3 +1,10 @@
2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
Yury Gribov <y.gribov@samsung.com>

PR sanitizer/58543
* asan.c (asan_clear_shadow): Allocate a new vreg for temporary
shadow pointer to avoid clobbering the main one.

2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>

* lower-subreg.c (resolve_simple_move): Copy REG_INC note.
@@ -898,7 +898,7 @@ asan_clear_shadow (rtx shadow_mem, HOST_WIDE_INT len)

gcc_assert ((len & 3) == 0);
top_label = gen_label_rtx ();
addr = force_reg (Pmode, XEXP (shadow_mem, 0));
addr = copy_to_mode_reg (Pmode, XEXP (shadow_mem, 0));
shadow_mem = adjust_automodify_address (shadow_mem, SImode, addr, 0);
end = force_reg (Pmode, plus_constant (Pmode, addr, len));
emit_label (top_label);

0 comments on commit a15fa55

Please sign in to comment.