public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: John David Anglin <danglin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-5056] Fix compilation of gcc.dg/atomic/c11-atomic-exec-[45].c on hpux.
Date: Sat,  7 Jan 2023 18:41:00 +0000 (GMT)	[thread overview]
Message-ID: <20230107184100.E8D103858D35@sourceware.org> (raw)

https://gcc.gnu.org/g:727bd5d478ff8035e4f26e939d690fd3752d4133

commit r13-5056-g727bd5d478ff8035e4f26e939d690fd3752d4133
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Sat Jan 7 18:40:04 2023 +0000

    Fix compilation of gcc.dg/atomic/c11-atomic-exec-[45].c on hpux.
    
    _HPUX_SOURCE needs to be defined to provide various types needed
    for pthreads.
    
    2023-01-07  John David Anglin  <danglin@gcc.gnu.org>
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/atomic/c11-atomic-exec-4.c: Add "-D_HPUX_SOURCE" option
            on *-*-hpux*.
            * gcc.dg/atomic/c11-atomic-exec-5.c: Likewise.

Diff:
---
 gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c | 1 +
 gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c
index 669e7c058c3..a7e158f14e8 100644
--- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c
+++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c
@@ -4,6 +4,7 @@
 /* { dg-do run } */
 /* { dg-options "-std=c11 -pedantic-errors -pthread -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200809L" } */
 /* { dg-additional-options "-D_XOPEN_SOURCE=600" { target *-*-solaris2* } } */
+/* { dg-additional-options "-D_HPUX_SOURCE" { target *-*-hpux* } } */
 /* { dg-require-effective-target pthread } */
 
 #include <stdint.h>
diff --git a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c
index f8bfa63b4cc..299d6ab904b 100644
--- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c
+++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c
@@ -7,6 +7,7 @@
 /* { dg-add-options ieee } */
 /* { dg-additional-options "-mfp-trap-mode=sui" { target alpha*-*-* } } */
 /* { dg-additional-options "-D_XOPEN_SOURCE=600" { target *-*-solaris2* } } */
+/* { dg-additional-options "-D_HPUX_SOURCE" { target *-*-hpux* } } */
 /* { dg-require-effective-target fenv_exceptions } */
 /* { dg-require-effective-target pthread } */
 /* { dg-timeout-factor 2 } */

                 reply	other threads:[~2023-01-07 18:41 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=20230107184100.E8D103858D35@sourceware.org \
    --to=danglin@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).