]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [riscv] uninit-pred-9_b bogus warning
authorAlexandre Oliva <oliva@adacore.com>
Sat, 3 Dec 2022 00:55:24 +0000 (21:55 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sat, 3 Dec 2022 00:55:24 +0000 (21:55 -0300)
Like other platforms, riscv hits the uninitialized warning because the
optimizations don't eliminate the nonviable path that would enable it
to be omitted.

for  gcc/testsuite/ChangeLog

* gcc.dg/uninit-pred-9_b.c: Add riscv*-*-* to the xfail list
for the bogus warning.

gcc/testsuite/gcc.dg/uninit-pred-9_b.c

index 53c4a5399eaa326f1d66e7ca5d8d1a0a1e02fc02..c8f427b12c0abd6f3d187d9be1bde7a9abf3d3a1 100644 (file)
@@ -17,7 +17,7 @@ int foo (int n, int l, int m, int r)
 
   if (l > 100)
     if ( (n <= 9) &&  (m < 100)  && (r < 19) )
-      blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail powerpc64*-*-* cris-*-* } } */
+      blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail powerpc64*-*-* cris-*-* riscv*-*-* } } */
 
   if ( (n <= 8) &&  (m < 99)  && (r < 19) )
       blah(v); /* { dg-bogus "uninitialized" "pr101674" { xfail mmix-*-* } } */