Add conditions on VxWorks versions for gcc.dg/vxworks/initpri?.c
authorJerome Lambourg <lambourg@adacore.com>
Fri, 1 Jan 2021 04:54:59 +0000 (01:54 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 1 Jan 2021 04:56:25 +0000 (01:56 -0300)
Adjust vxworks initpri expectations, given that vxworks7 has switched
to .init_array.

for  gcc/testsuite/ChangeLog

* gcc.dg/vxworks/initpri1.c: Tigthen VxWorks version check.
* gcc.dg/vxworks/initpri2.c: Likewise.

gcc/testsuite/gcc.dg/vxworks/initpri1.c
gcc/testsuite/gcc.dg/vxworks/initpri2.c

index 555bffe738d90a56a599af377eeae7ca106e2e8e..1d26b0ecb8e6f8c6f21c95d9727ab9e8bd01335a 100644 (file)
@@ -6,6 +6,7 @@
 /* The selector below excludes VxWorks AE because AE does not support
    RTP mode.  */
 /* { dg-do compile { target { *-*-vxworks* && { ! *-*-vxworksae* } } } } */
+/* { dg-skip-if "vxworks7 SR06x0 now uses .init_array" { *-*-vxworks7r* } } */
 /* { dg-options "-mrtp" } */
 /* { dg-final { scan-assembler "ctors\.00000" } } */
 /* { dg-final { scan-assembler "dtors\.00000" } } */
index 7f483efadb2bc148bb1c65f68166bf3b4dacb29f..31b4e9b52028aee434b542b8896d436fce37493d 100644 (file)
@@ -2,6 +2,7 @@
    Instead, initialization is handled by munch.  */
 
 /* { dg-do compile { target vxworks_kernel } } */
+/* { dg-skip-if "vxworks7 SR06x0 now uses .init_array" { *-*-vxworks7r* } } */
 /* { dg-final { scan-assembler-not "\.ctors" } } */
 /* { dg-final { scan-assembler-not "\.dtors" } } */