This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Compile g++.dg/opt/pr52727.C with -march=i686 for ia32
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Feb 2014 08:44:05 -0800
- Subject: PATCH: Compile g++.dg/opt/pr52727.C with -march=i686 for ia32
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
Revision 206943 caused a regression on g++.dg/opt/pr52727.C, which wasn't
caught by my automated tester since SSE2 and SSE math are enabled by
default. This patch adds -march=i686 for ia32 when compiling
g++.dg/opt/pr52727.C, which is required to reproduce the bug. OK to
install?
Thanks.
H.J.
---
2014-02-04 H.J. Lu <hongjiu.lu@intel.com>
* g++.dg/opt/pr52727.C: Compile with -march=i686 for ia32.
diff --git a/gcc/testsuite/g++.dg/opt/pr52727.C b/gcc/testsuite/g++.dg/opt/pr52727.C
index 4dd3853..ed8b973 100644
--- a/gcc/testsuite/g++.dg/opt/pr52727.C
+++ b/gcc/testsuite/g++.dg/opt/pr52727.C
@@ -1,5 +1,6 @@
// { dg-do compile }
// { dg-options "-g -Os" }
+// { dg-additional-options "-march=i686" { target ia32 } }
int grow (int);
void fn (int);