diff mbox

[Testsuite,obvious] gcc.target/arm/pr65647.c should not unconditionally add -mfloat-abi=soft

Message ID 1434451147-15264-1-git-send-email-james.greenhalgh@arm.com
State New
Headers show

Commit Message

James Greenhalgh June 16, 2015, 10:39 a.m. UTC
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 mbox

Patch

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,