aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2018-09-18 13:32:12 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2018-09-18 13:32:12 +0000
commit0dce552628246d6ce0372772f3ddfa11444ad09d (patch)
tree1e90a16db4646092e59fbe154565978e085d5208
parent92cb1fbc2774035b9ce7eaa9ff8c9a3dadbd8827 (diff)
downloadgcc-0dce552628246d6ce0372772f3ddfa11444ad09d.zip
gcc-0dce552628246d6ce0372772f3ddfa11444ad09d.tar.gz
gcc-0dce552628246d6ce0372772f3ddfa11444ad09d.tar.bz2
[AArch64][committed] Fix gcc.target/aarch64/spellcheck_1.c and spellcheck_4.c
These two tests started failing after commit r264335 that adjusted the cutoff point at which the diagnostic suggestions machinery decides a suggestion is meaningful. For these tests it means we no longer suggest anything as an alternative to "armv8-a-typo" as an "arch=" pargma value. We do still list the valid options, we just don't prefer one particular value over the others. When I first wrote this test it wasn't with a particular architecture suggestion in mind, but rather to test that the suggestion machinery is being sanely invoked. So this patch changes the dg-message check to treat the "did you mean...?" hunk as optional (in case the heuristics in the suggestions machinery change again). With this patch the two tests PASS again on aarch64. * gcc.target/aarch64/spellcheck_1.c: Make architecture suggestion optional. * gcc.target/aarch64/spellcheck_4.c: Likewise. From-SVN: r264390
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.target/aarch64/spellcheck_1.c2
-rw-r--r--gcc/testsuite/gcc.target/aarch64/spellcheck_4.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6794fb6..6b41c68 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,12 @@
2018-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+ * gcc.target/aarch64/spellcheck_1.c:
+ Make architecture suggestion optional.
+ * gcc.target/aarch64/spellcheck_4.c:
+ Likewise.
+
+2018-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
* gcc.target/aarch64/combine_bfxil.c: Avoid passing pointers to
functions.
diff --git a/gcc/testsuite/gcc.target/aarch64/spellcheck_1.c b/gcc/testsuite/gcc.target/aarch64/spellcheck_1.c
index f57e0c5..a0795c1c 100644
--- a/gcc/testsuite/gcc.target/aarch64/spellcheck_1.c
+++ b/gcc/testsuite/gcc.target/aarch64/spellcheck_1.c
@@ -3,7 +3,7 @@
__attribute__((target ("arch=armv8-a-typo"))) void
foo ()
{
- /* { dg-message "valid arguments are: \[^\n\r]*; did you mean 'armv8-a'?" "" { target *-*-* } .-1 } */
+ /* { dg-message "valid arguments are: \[^\n\r]*(; did you mean 'armv*'?)?" "" { target *-*-* } .-1 } */
/* { dg-error "invalid name \\(\"armv8-a-typo\"\\) in 'target\\(\"arch=\"\\)' pragma or attribute" "" { target *-*-* } .-2 } */
/* { dg-error "pragma or attribute 'target\\(\"arch=armv8-a-typo\"\\)' is not valid" "" { target *-*-* } .-3 } */
}
diff --git a/gcc/testsuite/gcc.target/aarch64/spellcheck_4.c b/gcc/testsuite/gcc.target/aarch64/spellcheck_4.c
index 6f66fdc..37c9d3c 100644
--- a/gcc/testsuite/gcc.target/aarch64/spellcheck_4.c
+++ b/gcc/testsuite/gcc.target/aarch64/spellcheck_4.c
@@ -8,4 +8,4 @@ foo ()
}
/* { dg-error "unknown value 'armv8-a-typo' for -march" "" { target *-*-* } 0 } */
-/* { dg-message "valid arguments are: \[^\n\r]*; did you mean 'armv8-a'?" "" { target *-*-* } 0 } */
+/* { dg-message "valid arguments are: \[^\n\r]*(; did you mean 'armv*'?)?" "" { target *-*-* } 0 } */