From: Sudakshina Das Date: Mon, 22 Jan 2018 10:56:26 +0000 (+0000) Subject: [ARM] Fix test fail with conflicting -mfloat-abi X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e32449b70d847d800e2ef8a6b433e8efb850b03;p=gcc.git [ARM] Fix test fail with conflicting -mfloat-abi This patch fixes my earlier test case that fails for arm-none-eabi with explicit user option for -mfloat-abi which conflict with the test case options. I have added a guard to skip the test on those cases. ChangeLog entries: *** gcc/testsuite/ChangeLog *** 2018-01-22 Sudakshina Das * gcc.c-torture/compile/pr82096.c: Add dg-skip-if and dg-require-effective-target directives. From-SVN: r256941 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a63fa4a35fc..256ab140d4c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ + +2018-01-22 Sudakshina Das + + * gcc.c-torture/compile/pr82096.c: Add dg-skip-if and + dg-require-effective-target directives. + 2018-01-22 Kyrylo Tkachov * lib/target-supports.exp (check_effective_target_arm_softfloat): diff --git a/gcc/testsuite/gcc.c-torture/compile/pr82096.c b/gcc/testsuite/gcc.c-torture/compile/pr82096.c index 9fed28cd189..d144b70585f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr82096.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr82096.c @@ -1,3 +1,5 @@ +/* { dg-require-effective-target arm_arch_v5t_ok { target arm*-*-* } } */ +/* { dg-skip-if "Do not combine float-abi values" { arm*-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=soft" } } */ /* { dg-additional-options "-march=armv5t -mthumb -mfloat-abi=soft" { target arm*-*-* } } */ static long long AL[24];