Commit 42b04d70 by Jakub Jelinek Committed by Jakub Jelinek

asan.c (instrument_builtin_call): Fix up dest assignment.

	* asan.c (instrument_builtin_call) <case BUILT_IN_BCOPY>: Fix up
	dest assignment.

From-SVN: r193469
parent d2860e72
2012-11-12 Jakub Jelinek <jakub@redhat.com>
* asan.c (instrument_builtin_call) <case BUILT_IN_BCOPY>: Fix up
dest assignment.
2012-11-13 Hans-Peter Nilsson <hp@axis.com> 2012-11-13 Hans-Peter Nilsson <hp@axis.com>
PR target/55257 PR target/55257
...@@ -1045,16 +1045,16 @@ instrument_builtin_call (gimple_stmt_iterator *iter) ...@@ -1045,16 +1045,16 @@ instrument_builtin_call (gimple_stmt_iterator *iter)
/* (s, s, n) style memops. */ /* (s, s, n) style memops. */
case BUILT_IN_BCMP: case BUILT_IN_BCMP:
case BUILT_IN_MEMCMP: case BUILT_IN_MEMCMP:
len = gimple_call_arg (call, 2);
source0 = gimple_call_arg (call, 0); source0 = gimple_call_arg (call, 0);
source1 = gimple_call_arg (call, 1); source1 = gimple_call_arg (call, 1);
len = gimple_call_arg (call, 2);
break; break;
/* (src, dest, n) style memops. */ /* (src, dest, n) style memops. */
case BUILT_IN_BCOPY: case BUILT_IN_BCOPY:
len = gimple_call_arg (call, 2);
source0 = gimple_call_arg (call, 0); source0 = gimple_call_arg (call, 0);
dest = gimple_call_arg (call, 2); dest = gimple_call_arg (call, 1);
len = gimple_call_arg (call, 2);
break; break;
/* (dest, src, n) style memops. */ /* (dest, src, n) style memops. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment