public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] Restrict pr65240 tests to std=c++11 on VxWorks kernel mode Date: Wed, 15 Mar 2023 14:04:32 +0000 (GMT) [thread overview] Message-ID: <20230315140432.B4FF9385800A@sourceware.org> (raw) https://gcc.gnu.org/g:d5604b3b41ebd746d1a3fc51cac2afa350779329 commit d5604b3b41ebd746d1a3fc51cac2afa350779329 Author: Olivier Hainque <hainque@adacore.com> Date: Wed Mar 8 01:07:14 2023 -0300 Restrict pr65240 tests to std=c++11 on VxWorks kernel mode The VxWorks kernel headers involved in the closure of <atomic> rely on c++11 features. Arrange to run at least that instead of having to xfail because of attempts with -std=c++98. Arrange to preserve the loop over standard variants, traded with a skip for c++98 in rtp mode as well. for gcc/testsuite/ChangeLog * g++.target/powerpc/pr65240-1.C: Enforce -std=c++11 for vxworks-kernel. * g++.target/powerpc/pr65240-2.C: Likewise. * g++.target/powerpc/pr65240-3.C: Likewise. * g++.target/powerpc/pr65240-4.C: Likewise. Diff: --- gcc/testsuite/g++.target/powerpc/pr65240-1.C | 4 ++++ gcc/testsuite/g++.target/powerpc/pr65240-2.C | 3 +++ gcc/testsuite/g++.target/powerpc/pr65240-3.C | 3 +++ gcc/testsuite/g++.target/powerpc/pr65240-4.C | 3 +++ 4 files changed, 13 insertions(+) diff --git a/gcc/testsuite/g++.target/powerpc/pr65240-1.C b/gcc/testsuite/g++.target/powerpc/pr65240-1.C index 1cf158c6909..4a91c7c7d5b 100644 --- a/gcc/testsuite/g++.target/powerpc/pr65240-1.C +++ b/gcc/testsuite/g++.target/powerpc/pr65240-1.C @@ -3,6 +3,10 @@ /* { dg-options "-mdejagnu-cpu=power8 -O3 -ffast-math -mno-fp-in-toc -Wno-return-type" } */ /* { dg-additional-options "-mcmodel=small" { target lp64 } } */ +/* VxWorks pthread.h requires c++11. Arrange to skip for c++98 or gnu++98. */ +/* { dg-skip-if "pthread.h requires c++11" { *-*-vxworks* } { "-std=*+98" } { "" } } */ + /* target/65240, compiler got a 'insn does not satisfy its constraints' error. */ #include "pr65240.h" + diff --git a/gcc/testsuite/g++.target/powerpc/pr65240-2.C b/gcc/testsuite/g++.target/powerpc/pr65240-2.C index 32d1c799b0d..4681577fe3c 100644 --- a/gcc/testsuite/g++.target/powerpc/pr65240-2.C +++ b/gcc/testsuite/g++.target/powerpc/pr65240-2.C @@ -3,6 +3,9 @@ /* { dg-options "-mdejagnu-cpu=power8 -O3 -ffast-math -mfp-in-toc -Wno-return-type" } */ /* { dg-additional-options "-mcmodel=small" { target lp64 } } */ +/* VxWorks pthread.h requires c++11. Arrange to skip for c++98 or gnu++98. */ +/* { dg-skip-if "pthread.h requires c++11" { *-*-vxworks* } { "-std=*+98" } { "" } } */ + /* target/65240, compiler got a 'insn does not satisfy its constraints' error. */ #include "pr65240.h" diff --git a/gcc/testsuite/g++.target/powerpc/pr65240-3.C b/gcc/testsuite/g++.target/powerpc/pr65240-3.C index 02567647f30..169dbd216d9 100644 --- a/gcc/testsuite/g++.target/powerpc/pr65240-3.C +++ b/gcc/testsuite/g++.target/powerpc/pr65240-3.C @@ -3,6 +3,9 @@ /* { dg-options "-mdejagnu-cpu=power8 -O3 -ffast-math -Wno-return-type" } */ /* { dg-additional-options "-mcmodel=medium" { target lp64 } } */ +/* VxWorks pthread.h requires c++11. Arrange to skip for c++98 or gnu++98. */ +/* { dg-skip-if "pthread.h requires c++11" { *-*-vxworks* } { "-std=*+98" } { "" } } */ + /* target/65240, compiler got a 'insn does not satisfy its constraints' error. */ #include "pr65240.h" diff --git a/gcc/testsuite/g++.target/powerpc/pr65240-4.C b/gcc/testsuite/g++.target/powerpc/pr65240-4.C index 3f6993aa1cd..62461a7a1eb 100644 --- a/gcc/testsuite/g++.target/powerpc/pr65240-4.C +++ b/gcc/testsuite/g++.target/powerpc/pr65240-4.C @@ -2,6 +2,9 @@ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mdejagnu-cpu=power7 -O3 -ffast-math -Wno-return-type" } */ +/* pthread.h on VxWorks requires c++11. Arrange to skip for c++98 or gnu++98. */ +/* { dg-skip-if "pthread.h requires c++11" { *-*-vxworks* } { "-std=*+98" } { "" } } */ + /* target/65240, compiler got a 'insn does not satisfy its constraints' error. */ #include "pr65240.h"
next reply other threads:[~2023-03-15 14:04 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-15 14:04 Alexandre Oliva [this message] 2023-03-16 14:21 Alexandre Oliva 2023-03-23 3:46 Alexandre Oliva 2023-03-24 6:23 Alexandre Oliva 2023-03-30 14:06 Alexandre Oliva 2023-04-06 6:33 Alexandre Oliva
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230315140432.B4FF9385800A@sourceware.org \ --to=aoliva@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).