This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch Testsuite obvious] gcc.target/arm/pr65647.c should not unconditionally add -mfloat-abi=soft
- From: James Greenhalgh <james dot greenhalgh at arm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: ramrad01 at arm dot com, rearnsha at arm dot com, kyrtka01 at arm dot com
- Date: Tue, 16 Jun 2015 11:39:07 +0100
- Subject: [Patch Testsuite obvious] gcc.target/arm/pr65647.c should not unconditionally add -mfloat-abi=soft
- Authentication-results: sourceware.org; auth=none
Hi,
This is another instance in the ARM testsuite of a test unconditionally
adding a -mfloat-abi=soft directive, which can conflict with multi-lib.
Fixed in the same way as the other recent testsuite patches.
This test also wants limiting to run on armv6-m, so check that we are
safe to do that.
Applied as obvious as r224512.
Thanks,
James
---
2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.target/arm/pr65647.c: Do not override -mfloat-abi directives
passed by the testsuite driver.
diff --git a/gcc/testsuite/gcc.target/arm/pr65647.c b/gcc/testsuite/gcc.target/arm/pr65647.c
index d3b44b2..26b4e39 100644
--- a/gcc/testsuite/gcc.target/arm/pr65647.c
+++ b/gcc/testsuite/gcc.target/arm/pr65647.c
@@ -1,4 +1,6 @@
/* { dg-do compile } */
+/* { dg-require-effective-target arm_arch_v6m_ok } */
+/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } {"-mfloat-abi=soft" } } */
/* { dg-options "-march=armv6-m -mthumb -O3 -w -mfloat-abi=soft" } */
a, b, c, e, g = &e, h, i = 7, l = 1, m, n, o, q = &m, r, s = &r, u, w = 9, x,