diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-13 07:21:15 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-13 07:21:15 +0000 |
commit | 6336f7380bcbfbf60b6aeb13a982e63f584a8a73 (patch) | |
tree | df486480ab72edcf0864a043e636599d60c8eebe /gcc | |
parent | acb1a4c3cb98e48f8233558b92181de15b54469d (diff) | |
download | gcc-6336f7380bcbfbf60b6aeb13a982e63f584a8a73.tar.gz |
* asan.c (instrument_builtin_call) <case BUILT_IN_BCOPY>: Fix up
dest assignment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193469 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/asan.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31fbe7fe6d7..dd2d1a37535 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> PR target/55257 diff --git a/gcc/asan.c b/gcc/asan.c index 1bd4cfd5cad..5fce4075088 100644 --- a/gcc/asan.c +++ b/gcc/asan.c @@ -1045,16 +1045,16 @@ instrument_builtin_call (gimple_stmt_iterator *iter) /* (s, s, n) style memops. */ case BUILT_IN_BCMP: case BUILT_IN_MEMCMP: - len = gimple_call_arg (call, 2); source0 = gimple_call_arg (call, 0); source1 = gimple_call_arg (call, 1); + len = gimple_call_arg (call, 2); break; /* (src, dest, n) style memops. */ case BUILT_IN_BCOPY: - len = gimple_call_arg (call, 2); 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; /* (dest, src, n) style memops. */ |