From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1118) id E8D103858D35; Sat, 7 Jan 2023 18:41:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8D103858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673116861; bh=u2bjyYowpdX1YvHPgg6kHGRmZlqecYzPWUcBhke8NM0=; h=From:To:Subject:Date:From; b=IqTJ6rpZ1yXGe73AaAZONxal6yk3nbjXZOmh64wX0cIUjq34Het2RQSKqAWDc9Or2 8u0nFkH9MlGppHIRS+7PaG2RqG46DotNaQUWO7am4x3UPrerFOpIYdIdiCs53NS/fc +yEMcRz1HhlHC7mg84t4lLSpzk0Y0lvbGwYkP+TU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: John David Anglin To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5056] Fix compilation of gcc.dg/atomic/c11-atomic-exec-[45].c on hpux. X-Act-Checkin: gcc X-Git-Author: John David Anglin X-Git-Refname: refs/heads/master X-Git-Oldrev: 902c755930326cb4405672aa3ea13c35c653cbff X-Git-Newrev: 727bd5d478ff8035e4f26e939d690fd3752d4133 Message-Id: <20230107184100.E8D103858D35@sourceware.org> Date: Sat, 7 Jan 2023 18:41:00 +0000 (GMT) List-Id: https://gcc.gnu.org/g:727bd5d478ff8035e4f26e939d690fd3752d4133 commit r13-5056-g727bd5d478ff8035e4f26e939d690fd3752d4133 Author: John David Anglin 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 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 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 } */