diff mbox

[committed] Enable g++.dg/asan/asan_test.C test also on non-x86 targets

Message ID 20170124083143.GZ1867@tucnak
State New
Headers show

Commit Message

Jakub Jelinek Jan. 24, 2017, 8:31 a.m. UTC
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.


	Jakub
diff mbox

Patch

--- 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" }