skip gcc.target/arm/div64-unwinding.c on vxworks_kernel targets
authorJoel Brobecker <brobecker@adacore.com>
Mon, 6 Apr 2020 19:07:48 +0000 (12:07 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 6 Apr 2020 19:07:48 +0000 (12:07 -0700)
This test verifies, by using a weak reference to _Unwind_RaiseException,
that performing division by zero does not cause that symbol to get
indirectly pulled into our closure.

The testing methodology unfortunately does not work on VxWorks targets
when building in kernel mode. This is inherent to how kernel mode
on VxWorks works: The link is only partial and the remaining symbols
which have not been resolved already get automatically resolved by
the VxWorks loader at the moment the module is loaded onto the target,
prior to execution. The resolution includes weak symbols too, which
defeats the purpose of this test.

gcc/testsuite/

        * gcc.target/arm/div64-unwinding.c: Skip on vxworks_kernel targets.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/div64-unwinding.c

index 29830633d793c9f84fc0ba33affef3c72b2fd2eb..2198e18198b4a8f372608c8f81d54b99b8c8a86b 100644 (file)
@@ -1,3 +1,7 @@
+2020-04-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * gcc.target/arm/div64-unwinding.c: Skip on vxworks_kernel targets.
+
 2020-04-04  Marek Polacek  <polacek@redhat.com>
 
        PR c++/94155 - crash in gimplifier with paren init of aggregates.
index 09442811fb63e1e50953cea493beb7c6e80e9411..c10ac24835467b52f30316c4d6dc567be4abe890 100644 (file)
@@ -1,6 +1,7 @@
 /* Performing a 64-bit division should not pull in the unwinder.  */
 
 /* { dg-do run { target { { ! *-*-linux* } && { ! *-*-uclinux* } } } } */
+/* { dg-skip-if "load causes weak symbol resolution" { vxworks_kernel } } */
 /* { dg-options "-O0" } */
 
 #include <stdlib.h>