aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGrigoriy Kraynov <grigoriy.kraynov@intel.com>2013-04-18 13:54:57 +0000
committerKirill Yukhin <kyukhin@gcc.gnu.org>2013-04-18 13:54:57 +0000
commit13957435839e1dc1d3bad23510640a1d09a84772 (patch)
tree37538ad09f6f4a4c335dcf5a42d8b9a2f37b0ad8 /gcc
parent08940f33eb4bb87f8944e771189ba48d8c7ca176 (diff)
downloadgcc-13957435839e1dc1d3bad23510640a1d09a84772.zip
gcc-13957435839e1dc1d3bad23510640a1d09a84772.tar.gz
gcc-13957435839e1dc1d3bad23510640a1d09a84772.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/avx2-vpop-check.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 64ffe8f..7efc3f1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/gcc/testsuite/gcc.target/i386/avx2-vpop-check.h b/gcc/testsuite/gcc.target/i386/avx2-vpop-check.h
index 143b54da..204b11c 100644
--- a/gcc/testsuite/gcc.target/i386/avx2-vpop-check.h
+++ b/gcc/testsuite/gcc.target/i386/avx2-vpop-check.h
@@ -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();
}
}