Commit 13957435 by Grigoriy Kraynov Committed by Kirill Yukhin

avx2-vpop-check.h: volatility is casted away in memcmp().

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

From-SVN: r198055
parent 08940f33
2013-04-18 Grigoriy Kraynov <grigoriy.kraynov@intel.com>
* gcc.target/i386/avx2-vpop-check.h: volatility is casted away in
memcmp().
2013-04-18 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/56984
......
......@@ -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();
}
}
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