Remove VxWorks-specific test directives in g++.dg/warn/miss-format-1.C

Alexandre Oliva oliva@adacore.com
Tue Dec 22 21:42:32 GMT 2020


These are no longer applicable.

Regstrapped on x86_64-linux-gnu, and tested with -x-arm-wrs-vxworks7r2.
Ok to install?


from Jerome Lambourg <lambourg@adacore.com>
for  gcc/testsuite/ChangeLog

	* g++.dg/warn/miss-format-1.C: Remove vxworks-specific test
	directives.
---
 gcc/testsuite/g++.dg/warn/miss-format-1.C |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/testsuite/g++.dg/warn/miss-format-1.C b/gcc/testsuite/g++.dg/warn/miss-format-1.C
index 65a34282ad784..444afb64fcd1b 100644
--- a/gcc/testsuite/g++.dg/warn/miss-format-1.C
+++ b/gcc/testsuite/g++.dg/warn/miss-format-1.C
@@ -21,9 +21,7 @@ bar (const char *fmt, ...)
 {
   va_list ap;
   va_start (ap, fmt);
-  vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-vxworks* } } */
-  /* VxWorks does not provide vscanf, either in kernel or RTP mode.  */
-  /* { dg-error "not declared" "" { target *-*-vxworks* } .-2 } */
+  vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" } */
   va_end (ap);
 }
 

-- 
Alexandre Oliva, happy hacker  https://FSFLA.org/blogs/lxo/
   Free Software Activist         GNU Toolchain Engineer
        Vim, Vi, Voltei pro Emacs -- GNUlius Caesar


More information about the Gcc-patches mailing list