Skip to content

Commit

Permalink
avx2-vpop-check.h: volatility is casted away in memcmp().
Browse files Browse the repository at this point in the history
	* gcc.target/i386/avx2-vpop-check.h: volatility is casted away in
       	memcmp().

From-SVN: r198055
  • Loading branch information
Grigoriy Kraynov authored and Kirill Yukhin committed Apr 18, 2013
1 parent 08940f3 commit 1395743
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-04-18 Grigoriy Kraynov <[email protected]>

* gcc.target/i386/avx2-vpop-check.h: volatility is casted away in
memcmp().

2013-04-18 Jakub Jelinek <[email protected]>

PR tree-optimization/56984
Expand Down
4 changes: 3 additions & 1 deletion gcc/testsuite/gcc.target/i386/avx2-vpop-check.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ avx2_test (void)
gen_pop ();
check_pop ();

if (memcmp (c, c_ref, SIZE * sizeof (TYPE)))
/* We need to cast away volatility from c_ref here in order to eliminate
warning if libc version of memcpy is used here. */
if (memcmp (c, (void *) c_ref, SIZE * sizeof (TYPE)))
abort();
}
}

0 comments on commit 1395743

Please sign in to comment.