public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hp@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-6537] testsuite: Fix omp-parallel-for-get-min.c and -for-1.c for non-openmp
Date: Wed,  8 Mar 2023 04:58:12 +0000 (GMT)	[thread overview]
Message-ID: <20230308045812.31DBD3858C30@sourceware.org> (raw)

https://gcc.gnu.org/g:dcce01af47b727749585e1f303e48af1f336a499

commit r13-6537-gdcce01af47b727749585e1f303e48af1f336a499
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Wed Mar 8 05:46:51 2023 +0100

    testsuite: Fix omp-parallel-for-get-min.c and -for-1.c for non-openmp
    
    The recently added tests missed checking for "fopenmp" (see
    other tests where "-fopenmp" is passed), which makes them
    fail on non-openmp systems.
    
            * gcc.dg/analyzer/omp-parallel-for-get-min.c,
            gcc.dg/analyzer/omp-parallel-for-1.c: Require effective target fopenmp.

Diff:
---
 gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c       | 1 +
 gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c b/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c
index dae940dac20..cadacc84275 100644
--- a/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c
+++ b/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target fopenmp } */
 /* { dg-additional-options "-fopenmp -Wall" } */
 
 typedef struct _Image
diff --git a/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c b/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c
index a7e64e1a3a8..ba9f634cd71 100644
--- a/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c
+++ b/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c
@@ -1,5 +1,6 @@
 /* Reduced from ImageMagick-7.1.0-57's MagickCore/attribute.c: GetEdgeBackgroundColor */
 
+/* { dg-require-effective-target fopenmp } */
 /* { dg-additional-options "-fopenmp -Wall" } */
 
 extern double get_census (void);

                 reply	other threads:[~2023-03-08  4:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20230308045812.31DBD3858C30@sourceware.org \
    --to=hp@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: link
Be 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).