This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite]: Fix g++.dg/mv[1,6].C failure with non-default architecture
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Nov 2012 12:48:04 +0100
- Subject: [PATCH, testsuite]: Fix g++.dg/mv[1,6].C failure with non-default architecture
Hello!
2012-11-16 Uros Bizjak <ubizjak@gmail.com>
* 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 <assert.h>
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
{