]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.dg/analyzer/data-model-1.c: Inverse xfail for cris-*-*, PR99212
authorHans-Peter Nilsson <hp@axis.com>
Tue, 13 Apr 2021 02:08:08 +0000 (04:08 +0200)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 13 Apr 2021 02:21:01 +0000 (04:21 +0200)
See PR99212.  Now, cris-elf isn't the only target for which this line
shows a failure; pru-unknown-elf and m68k-unknown-linux-gnu are two
others.  I'll leave adjustments to the respective maintainers, but
trivially appending more triplets should work: no extra bracketing needed.
A specific effective_target specifier would as always be perferable, but I
couldn't without accountable effort find out what was the common factor.

Besides cris-elf, sanity-checked for native x86_64-*-linux*.

gcc/testsuite:
PR analyzer/99212
* gcc.dg/analyzer/data-model-1.c (test_45): Inverse xfail at
line 971 for cris-*-*.

gcc/testsuite/gcc.dg/analyzer/data-model-1.c

index afd155694600477bd883e5473fe12603d46bef8f..c0f54637693cf9bc251ac49223e01415f20b3900 100644 (file)
@@ -968,8 +968,8 @@ void test_45 (void)
 {
   struct ubits bits;
   bits.b0 = 1;
-  __analyzer_eval (bits.b0 == 1); /* { dg-warning "TRUE" "desired" { xfail *-*-* } } */
-  /* { dg-warning "UNKNOWN" "status quo" { target *-*-* } .-1 } */
+  __analyzer_eval (bits.b0 == 1); /* { dg-warning "TRUE" "desired, PR99212" { xfail { ! { cris-*-* } } } } */
+  /* { dg-warning "UNKNOWN" "status quo, PR99212" { target { *-*-* } xfail { cris-*-* } } .-1 } */
   // TODO(xfail): ^^^^
 
   bits.b456 = 5;