diff mbox series

skip testsuite/g++.dg/other/anon5.C on vxworks_kernel targets

Message ID orpn31h638.fsf@lxoliva.fsfla.org
State New
Headers show
Series skip testsuite/g++.dg/other/anon5.C on vxworks_kernel targets | expand

Commit Message

Alexandre Oliva Dec. 22, 2020, 9:40 p.m. UTC
The vxworks kernel-mode linking is partial linking, so it cannot
detect missing symbols.

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/other/anon5.C: Skip on vxworks kernel.
---
 gcc/testsuite/g++.dg/other/anon5.C |    3 +++
 1 file changed, 3 insertions(+)

Comments

Mike Stump Dec. 29, 2020, 6:32 p.m. UTC | #1
On Dec 22, 2020, at 1:40 PM, Alexandre Oliva <oliva@adacore.com> wrote:
> 
> The vxworks kernel-mode linking is partial linking, so it cannot
> detect missing symbols.
> 
> Regstrapped on x86_64-linux-gnu, and tested with -x-arm-wrs-vxworks7r2.
> Ok to install?

Ok.
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/other/anon5.C b/gcc/testsuite/g++.dg/other/anon5.C
index dadd92ef9e4a1..09853d4c6515e 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" } */