From patchwork Sat Jan 7 18:44:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 40444 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1412117wrt; Sat, 7 Jan 2023 10:45:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXsfR1CESIPDsg33dORVXdO0QkTlHXwN7GY67uULKtujjBiJiIgqzGmQ24nRmoh3PHRou8DW X-Received: by 2002:a17:906:ae97:b0:7c1:2980:7fd1 with SMTP id md23-20020a170906ae9700b007c129807fd1mr48455273ejb.76.1673117112060; Sat, 07 Jan 2023 10:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673117112; cv=none; d=google.com; s=arc-20160816; b=jtGYAB1UoJ3PFNtxjBctz/EseUz3F95MKpPIY8cdaWPS1UPg48QZyi7C+yEXso7XmS Crk/W8yfGFzs9rSmD0N37owpukjRTIhYz8vMtKBTcec7THNPjCCDxKTMlfdFH85RT3ww 2pE/eLh3RnPWksAlyxZ9boOBOgVrDWcNIcwYFv6CKD3KXsNcWQ56tdz5L72Yrp/yYXlS ehdsxQOfkOoDhaIzxzLixoWm8+A40ga22y0eXyTGbdJz9SigYJXm5dMQknxsO+p86bXM 8URoSVfCB9+2N9CTrvbWfeCj2f1w5v+mtqFVbStuiOD62Zwc4Z056MzFfIeds9lTA/CP fL+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:dmarc-filter :delivered-to; bh=RBMGThIqY6gAG4v4DRLz3HPtoOEApN2oeWjBCZhmfCI=; b=xF6AeFHJ83xcs07FuW/r35P2as8tYLo90HA1RMB3nLXx8neiIwD2oBVQCKIVBlnSfk ux/U2w0Iz/UQZqsE3rELs9eDlA8Enbbt4aeqZ8NWjCipiZ+8kYbYxReSV+5fWUIoqlac Ohx/INICPs8RkF4wjGFjT/NvK38mCDBcL/FjqioD+48ZOOdRE7sP89/2M0/tczNG7rSm bYt2WAUeeb8rpPMkbCTazi9zlCFJ27OhpJwTJcLWDYgzmTh+vmRhODy4f/nOeBQLcqOT bWCVgXHAFWUrBRKbzbR/40SyFc5gyn7is/VHdc1Qet+X7QJ7LCoKrh9FN3A5wUfLLn5J c36g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 10-20020a50874a000000b0047e2b42bc54si4802778edv.189.2023.01.07.10.45.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 10:45:12 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3FE903858418 for ; Sat, 7 Jan 2023 18:45:06 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (unknown [IPv6:2a02:c207:3003:236::1]) by sourceware.org (Postfix) with ESMTPS id 3E7563858D39 for ; Sat, 7 Jan 2023 18:44:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3E7563858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bell.net Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=bell.net Received: from mx3210.localdomain (lgston2802w-grc-01-216-208-213-126.dsl.bell.ca [216.208.213.126]) by dellerweb.de (Postfix) with ESMTPSA id CDD06160016E; Sat, 7 Jan 2023 19:44:40 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id EF845220133; Sat, 7 Jan 2023 18:44:38 +0000 (UTC) Date: Sat, 7 Jan 2023 18:44:38 +0000 From: John David Anglin To: GCC Patches Subject: [committed] Fix compilation of gcc.dg/atomic/c11-atomic-exec-[45].c on hpux Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KHOP_HELO_FCRDNS, MAY_BE_FORGED, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754390448717246364?= X-GMAIL-MSGID: =?utf-8?q?1754390448717246364?= Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave --- 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 --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 } */