From patchwork Fri Nov 16 11:48:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [testsuite] : Fix g++.dg/mv[1, 6].C failure with non-default architecture From: Uros Bizjak X-Patchwork-Id: 199550 Message-Id: To: gcc-patches@gcc.gnu.org Date: Fri, 16 Nov 2012 12:48:04 +0100 Hello! 2012-11-16 Uros Bizjak * g++.dg/mv1.C (dg-options): Add -march=x86-64. * g++.dg/mv6.C (dg-options): Ditto. Tested on x86_64-linux-gnu {,-m32} configured --with-arch=corei7-avx and committed to mainline SVN. Uros. Index: g++.dg/mv1.C =================================================================== --- g++.dg/mv1.C (revision 193549) +++ g++.dg/mv1.C (working copy) @@ -1,7 +1,7 @@ /* Test case to check if Multiversioning works. */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-ifunc "" } */ -/* { dg-options "-O2 -fPIC -mno-avx -mno-popcnt" } */ +/* { dg-options "-O2 -fPIC -march=x86-64 -mno-avx -mno-popcnt" } */ #include Index: g++.dg/mv6.C =================================================================== --- g++.dg/mv6.C (revision 193549) +++ g++.dg/mv6.C (working copy) @@ -2,6 +2,7 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-ifunc "" } */ +/* { dg-options "-march=x86-64" } */ class Foo {