diff mbox series

Add conditions on VxWorks versions for gcc.dg/vxworks/initpri?.c

Message ID or35zxiktj.fsf@lxoliva.fsfla.org
State New
Headers show
Series Add conditions on VxWorks versions for gcc.dg/vxworks/initpri?.c | expand

Commit Message

Alexandre Oliva Dec. 22, 2020, 9:37 p.m. UTC
Adjust vxworks initpri expectations, given that vxworks7 has switched
to .init_array.

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

	* gcc.dg/vxworks/initpri1.c: Tigthen VxWorks version check.
	* gcc.dg/vxworks/initpri2.c: Likewise.
---
 gcc/testsuite/gcc.dg/vxworks/initpri1.c |    1 +
 gcc/testsuite/gcc.dg/vxworks/initpri2.c |    1 +
 2 files changed, 2 insertions(+)

Comments

Mike Stump Dec. 29, 2020, 6:30 p.m. UTC | #1
On Dec 22, 2020, at 1:37 PM, Alexandre Oliva <oliva@adacore.com> wrote:
> 
> Adjust vxworks initpri expectations, given that vxworks7 has switched
> to .init_array.
> 
> Regstrapped on x86_64-linux-gnu, and tested with -x-arm-wrs-vxworks7r2.
> Ok to install?

Ok.

I suppose I should say that if the port maintainers want to chime in and recommend a different solution or have different idea on how to do things, I'd encourage them to chime in.  I'm kicking in only because no one else has yet, and thats roughly what I do.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/vxworks/initpri1.c b/gcc/testsuite/gcc.dg/vxworks/initpri1.c
index 555bffe738d90..1d26b0ecb8e6f 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 7f483efadb2bc..31b4e9b52028a 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" } } */