From patchwork Fri Jan 19 16:59:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 189612 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1138573dyb; Fri, 19 Jan 2024 09:00:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnnnkZEP+YYoVgsUM+TmynL2xMv3KU5aPYcA3y+qkAtqz6DKRX1jzkiTxTqMMqoeejE8sm X-Received: by 2002:a0c:9a99:0:b0:681:5d1c:b9a2 with SMTP id y25-20020a0c9a99000000b006815d1cb9a2mr133774qvd.129.1705683636450; Fri, 19 Jan 2024 09:00:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705683636; cv=pass; d=google.com; s=arc-20160816; b=0AQTiE7WLzMPcet9tfuFehXrvNsogfYoAjSw6NN9lNc4XNoyj5OrrlzrmUIxmihewU I6fNJM3c0VEbYjJum2IEAp7XCBjiVDFfZLR2C4McJn9LMuaTEMPcMsw7jaRqSs+P9Fh2 DgfD0ZOrEVLZnJBqUSo5m7dWzhx/942vW96ZUFOWKmZKYvRAoQ0m4Z7Ej613Vjndsho5 hNGP6hzmjtc+9Khwsn6HauIdjn12Sj3099XjneNten7UcPXx5PtcijWziJiT9AjwVQeT NVDYTc00t3i3bV/jT176Gjq51jzWZsbcY1X2h+uVG/HAFVhit4W7HIaKf0iBxvdxyQ0l TERw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:arc-filter :dmarc-filter:delivered-to; bh=Ol7WdCBRrHWBwnkMepesqgjR0VzI+CGf8QNmtQ/9Yw4=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=m9jnQv4LCe/cM/rLTG1QdS9jTiZVqntwdVNeWyCM2ae/jix1WRSrnuZIs+lII677Wa lpv7AzofMSYuejxrzVnVGozWzpOGlEmRPZolqfp7qZGYGXwPsRJ2EpiE3Es7s8EP6FTm +c5lFmNjFwd8HypvN406iq3401qQlV75Gb/T+0jSS5Uf+PbD/gQ5yopWxGVIw/Evh+Pe kCkUy49g2TxRVGJLytenrml78OPWs+bv+L5ICkv5EaD+0TA6oqd95x7ehBkJExn2nzzB QDEd6jQVu7wGo0V+bpm0bwAs9xqmUGSprKTe0ueMjGLE+Pxc7vFBv5Xa6ljHRzX7EH2Q hfgQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id y10-20020a0c8eca000000b0067f4709cff1si16338421qvb.99.2024.01.19.09.00.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 09:00:36 -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; arc=pass (i=1); 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 BD71F38582AA for ; Fri, 19 Jan 2024 17:00:35 +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 0A9893858427 for ; Fri, 19 Jan 2024 16:59:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0A9893858427 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0A9893858427 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:c207:3003:236::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705683570; cv=none; b=AVI5zPycTbL8i1vhYVsnjzLMThbc4VUyZVIjpAaQG4HDSWPjyzI4k/9TKrhFgtA1Rdk6zUatrE0mGlkjKjze5lCRDIlI3hwQf6lA/mXNeTJ90bxOUNYFF56/hw1sZigNYKwRtkjD9ASURG8AMkI26VYqIpZ8/Ce2lb5oVpWHOb0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705683570; c=relaxed/simple; bh=ZkJ6961sAmp2UQ31jdThs2K8hmeZDnxVZmr5l0XCknI=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=jIr2bKwlvk0rJ8jt1VXCQnyOVZK567X3uQ1xcMGVs3+JTvle5K7leVi4JBPmTQE8m7bE1n8Ybz6vC6p5yomfyeUBL0GH2qJSDwX3pZAVPdqXoFMsCFRG5yXkgqhX9Vxy/u4ZV4a2NEcJTwBsfyW/PeWaqRGgkWPn0ckxMc5E3TY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (unknown [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id CADFF16002CD; Fri, 19 Jan 2024 17:59:27 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id B2CB622012C; Fri, 19 Jan 2024 16:59:10 +0000 (UTC) Date: Fri, 19 Jan 2024 16:59:10 +0000 From: John David Anglin To: GCC Patches Subject: [committed] Change dg-options for hpux to define _HPUX_SOURCE in gcc.dg/pthread-init-2.c Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.30 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788538925016716709 X-GMAIL-MSGID: 1788538925016716709 Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave --- Change dg-options for hpux to define _HPUX_SOURCE in gcc.dg/pthread-init-2.c Pthreads on hpux needs _HPUX_SOURCE define for id_t and spu_t types. 2024-01-19 John David Anglin gcc/testsuite/ChangeLog: * gcc.dg/pthread-init-2.c: Change dg-options for hpux to define _HPUX_SOURCE. diff --git a/gcc/testsuite/gcc.dg/pthread-init-2.c b/gcc/testsuite/gcc.dg/pthread-init-2.c index d7cd66b5c02..c934fb525f9 100644 --- a/gcc/testsuite/gcc.dg/pthread-init-2.c +++ b/gcc/testsuite/gcc.dg/pthread-init-2.c @@ -7,7 +7,8 @@ /* { dg-do compile } */ /* { dg-require-effective-target pthread_h } */ /* { dg-options "-Wextra -Wall -ansi" } */ -/* { dg-options "-Wextra -Wall -ansi -D_POSIX_C_SOURCE=199506L" { target { *-*-hpux* } } } */ +/* We need to define _HPUX_SOURCE on hpux11.11 for id_t and spu_t types. */ +/* { dg-options "-Wextra -Wall -ansi -D_HPUX_SOURCE" { target { *-*-hpux* } } } */ /* { dg-options "-Wextra -Wall -ansi -D_XOPEN_SOURCE=500" { target { powerpc-ibm-aix* } } } */ /* The definition of PTHREAD_MUTEX_INITIALIZER is missing an initializer for mutexAttr.mutexAttrType in kernel mode for various VxWorks versions. */