From af655dee7958c1cbcc087ca18902ed2cd570cda8 Mon Sep 17 00:00:00 2001 From: Jerome Lambourg Date: Fri, 1 Jan 2021 01:55:00 -0300 Subject: [PATCH] skip testsuite/g++.dg/other/anon5.C on vxworks_kernel targets The vxworks kernel-mode linking is partial linking, so it cannot detect missing symbols. for gcc/testsuite/ChangeLog * g++.dg/other/anon5.C: Skip on vxworks kernel. --- gcc/testsuite/g++.dg/other/anon5.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/g++.dg/other/anon5.C b/gcc/testsuite/g++.dg/other/anon5.C index dadd92ef9e4..09853d4c651 100644 --- a/gcc/testsuite/g++.dg/other/anon5.C +++ b/gcc/testsuite/g++.dg/other/anon5.C @@ -1,6 +1,9 @@ // PR c++/34094 // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } } // { dg-require-effective-target nonpic } +// Skip on vxworks kernel: The link being partial, the linker doesn't see +// the undefined reference +// { dg-skip-if "partial link" { vxworks_kernel } } // { dg-options "-gdwarf-2" } // Ignore additional message on powerpc-ibm-aix // { dg-prune-output "obtain more information" } */ -- 2.30.2