Message ID | 20230526073549.2067972-1-poulhies@adacore.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp290892vqr; Fri, 26 May 2023 00:41:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RXID7p+A9z150793Ac1oa+6LF+AsK+vxk+D7BRxpntf1ZYfzX5Dho4aNWxaa8CB3GHAb1 X-Received: by 2002:a17:906:ef0c:b0:96f:e7cf:5004 with SMTP id f12-20020a170906ef0c00b0096fe7cf5004mr885638ejs.73.1685086903511; Fri, 26 May 2023 00:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685086903; cv=none; d=google.com; s=arc-20160816; b=MkVbzUHWBcYrRHo3jufAh8qn9HBt/b7E1bLNxrfg2xSBmLFzgk06ippwOuG8gokGOm Srjv+haQFW6GIlCAsmDBWtipgavkRc7cEO2RR1Gn89XoCL6C8bPp4IzwaxWxW8ThAbyx lVNTswMVWFgIkiCq/v+ld8o4c20cHGpN0tonStMPqWIyYQumeiT3bHGBWvGOLeofWP48 AefxgGEaUOmjEt7eiKYbPuAF1sQZpsd0nMePLetinz5SVvwNmC+QvBLFdQ4gMdgkRpZm 5yG8Kvl3WNl7AIAlq6tvdl7IxWD7k2wkA3+22NEosi7zlkMpP0408V2N/rvzk9B+Ljc3 duTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=yIDsjkO6dEPyh9G7xXlrIVZoY5kwn0jMkU4Hli4NRAI=; b=ukYZfJ8ZlO47VDwqQGGqvBXWF0p3nZcQIY+g+NiBWi4jqvtD/TuKdDIjbmNC4pTTua ZAyYJ5Tm/ziXPqC6hwu2dYbEUATXzYMInOZ7f2nL+1Nr1A2BlwTvCEFfARKbrjJtAZ9/ YAuft9Bi6FIAcvdNNF1B4M46xm1zyguA21WA1JkW4EqyrXhhAFAPsh4Z01KjGkdZFqln 4u4aLDTSPMACfdWLrsZIY0/2lGXV4Tu0T9/pzQ9nrHq430Zeu+PLO//wkmx5C/2sg70f Evai08S1xEhcGVBUn/DhHBWANyaVoXRD2kSR4zymMDZdBeqsFE+nYCmU0vuS1LzlPBLa wO9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=wuR+3CxZ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id vi6-20020a170907d40600b00966218f82bbsi2136000ejc.547.2023.05.26.00.41.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 00:41:43 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=wuR+3CxZ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E397E3893651 for <ouuuleilei@gmail.com>; Fri, 26 May 2023 07:38:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E397E3893651 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685086714; bh=yIDsjkO6dEPyh9G7xXlrIVZoY5kwn0jMkU4Hli4NRAI=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=wuR+3CxZFGBQaocG2/wejljsINBnN5+erqtO+AuQyRF4EylySCaPvvh18AiMP3Pkk NtJHARYE8F/b3B1LxR0q4tCNMZD+j0CoC8UYhWD4GQKwQPFHOvCdDZik7hXE7V+EFL 6BFgPfPNPHt/dUUGErJY0EBYIDs6ATXOQXNcT6Hc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id EE243385771E for <gcc-patches@gcc.gnu.org>; Fri, 26 May 2023 07:35:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE243385771E Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f6e72a1464so2843175e9.1 for <gcc-patches@gcc.gnu.org>; Fri, 26 May 2023 00:35:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685086551; x=1687678551; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yIDsjkO6dEPyh9G7xXlrIVZoY5kwn0jMkU4Hli4NRAI=; b=X25nUqKIVBe+MJatebMUmcH48g27e3GVuaBNHgVdlPNcvIhc3DvpoZfJk8HU1Zl4Jg 4kjCg8gqEPvNgqhmP1Pgs6BN5vRDVzdoPbVWaY8kCmTVvbQJYi3LRtCqNFw1rp9hXjnm YRKELMmZ/QYRldJ9yycruf6PacKwC03fjabXrQ7kxr+9Bz20+zjtLG+JwDVZ60C6ZA7O 3PDCn6PwqriL7Xx00AKbs15e+T5u9DTg+1V+GxUiRA+KLMMv/9cJqZmsyBW0CAc1qSeB +C2MtlmqP0lE05rwZu+4fjTU37bP2lpwTYoR89MXdatJWdRE6LtURtS34HWAZUNyBJop gx6g== X-Gm-Message-State: AC+VfDym8UlcZlmupWNURSvnHHXVpU228GrO9Em7h6w8WSzqElVmqK/K ZRXXtkKIbZL9bWcP/RJZkC+Je+02buGmyV5x3Ae7CQ== X-Received: by 2002:a1c:f70e:0:b0:3f6:149:556c with SMTP id v14-20020a1cf70e000000b003f60149556cmr830592wmh.0.1685086550858; Fri, 26 May 2023 00:35:50 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:777b:eef4:6f79:f26f]) by smtp.gmail.com with ESMTPSA id o10-20020a1c750a000000b003f4248dcfcbsm7959946wmc.30.2023.05.26.00.35.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 00:35:50 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Doug Rupp <rupp@adacore.com> Subject: [COMMITTED] ada: Use computed value from os_constants to define sigset_t Date: Fri, 26 May 2023 09:35:49 +0200 Message-Id: <20230526073549.2067972-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766941684929718772?= X-GMAIL-MSGID: =?utf-8?q?1766941684929718772?= |
Series |
[COMMITTED] ada: Use computed value from os_constants to define sigset_t
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Marc Poulhiès
May 26, 2023, 7:35 a.m. UTC
From: Doug Rupp <rupp@adacore.com>
Remove hard coded definition and conform to standard usage of using
computed os_constants for opaque type declarations.
gcc/ada/
* libgnarl/s-osinte__qnx.ads (sigset_t): Modify
declaration to use system.os_constants computed
value. Align it.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/libgnarl/s-osinte__qnx.ads | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gcc/ada/libgnarl/s-osinte__qnx.ads b/gcc/ada/libgnarl/s-osinte__qnx.ads index 3aa727f158f..3282abe8869 100644 --- a/gcc/ada/libgnarl/s-osinte__qnx.ads +++ b/gcc/ada/libgnarl/s-osinte__qnx.ads @@ -562,8 +562,10 @@ package System.OS_Interface is private - type sigset_t is array (1 .. 2) of Interfaces.Unsigned_32; + type sigset_t is + array (0 .. OS_Constants.SIZEOF_sigset - 1) of unsigned_char; pragma Convention (C, sigset_t); + for sigset_t'Alignment use Interfaces.C.unsigned_long'Alignment; type pid_t is new int;