This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Enable g++.dg/asan/asan_test.C test also on non-x86 targets
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 Jan 2017 09:31:43 +0100
- Subject: [committed] Enable g++.dg/asan/asan_test.C test also on non-x86 targets
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
The target requirement in the test was meant to prevent running the test
on x86 without sse2 support, but unfortunately disabled the test also on
non-x86. The following test fixes that, regtested on
{aarch64,x86_64,powerpc64,powerpc64le,i686,s390x}-linux, committed to trunk
as obvious.
The test only fails (on all arches, but on most targets just SimpleStackTest
with kSize + 31) when testing with
--target_board=unix/-fstack-protector-strong, without SSP it succeeds
everywhere (including s390x with the asan enablement I've posted).
2017-01-24 Jakub Jelinek <jakub@redhat.com>
* g++.dg/asan/asan_test.C: Enable on all *-*-linux* targets that
support asan, only on i?86/x86_64 require sse2_runtime.
--- gcc/testsuite/g++.dg/asan/asan_test.C.jj 2016-11-10 18:03:28.000000000 +0100
+++ gcc/testsuite/g++.dg/asan/asan_test.C 2017-01-23 21:47:04.941131367 +0100
@@ -1,4 +1,4 @@
-// { dg-do run { target { { i?86-*-linux* x86_64-*-linux* } && sse2_runtime } } }
+// { dg-do run { target { { *-*-linux* } && { { ! { i?86-*-linux* x86_64-*-linux* } } || sse2_runtime } } } }
// { dg-skip-if "" { *-*-* } { "*" } { "-O2" } }
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
// { dg-additional-sources "asan_globals_test-wrapper.cc" }
Jakub