From patchwork Fri May 26 07:35:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 70122 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1EADB3882654 for ; Fri, 26 May 2023 07:38:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EADB3882654 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685086699; bh=yIDsjkO6dEPyh9G7xXlrIVZoY5kwn0jMkU4Hli4NRAI=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=fFupnsR/5xVMvz1i3Jnu74k4dvlsLWRpdT5ucVjFjjB2/AozHDvyxMd22XoS941/L c+KvCzIt9SQIToa2pvOnHWBmXHQpfb/Jbc/ZibyOskjLnuGpJNLBbB8MCfcDeZVIKU AFfEAymFQy2Afxm2/V+ZmlyIza9X05RoAcrzXZnA= 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 ; 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 ; 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-Google-Smtp-Source: ACHHUZ48HGl9mJh38SdXHHqcIqk8n05QtMpu0BUGWrOUXprmGlMwFbS+yyu7uQIio0ZmqDXvuzdSlA== 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 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" From: Doug Rupp 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;