aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJerome Lambourg <lambourg@adacore.com>2021-01-01 01:54:59 -0300
committerAlexandre Oliva <oliva@gnu.org>2021-01-01 01:56:25 -0300
commit76d00e0045ae2c13f09f122f69131c1e0e660cfc (patch)
tree424998af8fd887ba1ff9772b5dd596bb5be56a7a /gcc
parent06450993d44409ba7dd10ab67a24dd85b3d1b965 (diff)
downloadgcc-76d00e0045ae2c13f09f122f69131c1e0e660cfc.zip
gcc-76d00e0045ae2c13f09f122f69131c1e0e660cfc.tar.gz
gcc-76d00e0045ae2c13f09f122f69131c1e0e660cfc.tar.bz2
Add conditions on VxWorks versions for gcc.dg/vxworks/initpri?.c
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/vxworks/initpri1.c1
-rw-r--r--gcc/testsuite/gcc.dg/vxworks/initpri2.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/vxworks/initpri1.c b/gcc/testsuite/gcc.dg/vxworks/initpri1.c
index 555bffe..1d26b0e 100644
--- a/gcc/testsuite/gcc.dg/vxworks/initpri1.c
+++ b/gcc/testsuite/gcc.dg/vxworks/initpri1.c
@@ -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" } } */
diff --git a/gcc/testsuite/gcc.dg/vxworks/initpri2.c b/gcc/testsuite/gcc.dg/vxworks/initpri2.c
index 7f483ef..31b4e9b 100644
--- a/gcc/testsuite/gcc.dg/vxworks/initpri2.c
+++ b/gcc/testsuite/gcc.dg/vxworks/initpri2.c
@@ -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" } } */