From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id E1D163857C67 for ; Fri, 7 Jan 2022 16:26:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E1D163857C67 Received: by mail-wr1-x429.google.com with SMTP id s1so12068189wra.6 for ; Fri, 07 Jan 2022 08:26:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=r7tgaCm/P+/rHdPGrSOZCCWVGl0gFZqnysoA9i4zJ0E=; b=y+yfDWZqjz255FMFzGnFc3FT66GXyA+mpTwIvhO47HB+LDolUZWcmd5LgYZUQkviIu lXCMv7J2hrEs/jMwhuSwFL0eN5bRlZErw2yvUWiQX8GAoKQ9fXOd7VO+9nNelDzb/KsL Flt13lxVB3IuFkWecRhH4xQyNyXrMFrDxutI65VcjV7EwpnAhssrcgcwYjXB4WA7nTPz mnUrIowSYam1mA+3owplOt4nQjpm3WM2V3jVKb2zaqRpzemMGtzogWa6JIjc9oA8ELoi NiWJWuNyXEBuhfRbDRDi/b6J1FFRS7SfQ4K3GFdAEZX9Y6p2d9c+aSkpaBgPjyC3c/rD I2sQ== X-Gm-Message-State: AOAM533gBAiOZIU8byRPwFPaMEpTpae4bWQ8Nh8ngCfJihE2v4sHXbcG VGPe+sax4Lfj7bB/nkAFjeILDnDnuvpuSw== X-Google-Smtp-Source: ABdhPJwpiGkuWU1jx2YDwB1amNvdWeihGPdGMPTAKXz1AczVS9Cyf3vtjZI/LQN7gzFc4qO0HNXsUQ== X-Received: by 2002:a05:6000:2a1:: with SMTP id l1mr40410164wry.412.1641572814947; Fri, 07 Jan 2022 08:26:54 -0800 (PST) Received: from adacore.com ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id n9sm9483026wmq.37.2022.01.07.08.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 08:26:54 -0800 (PST) Date: Fri, 7 Jan 2022 16:26:53 +0000 From: Pierre-Marie de Rodat To: gcc-patches@gcc.gnu.org Cc: Bob Duff Subject: [Ada] Small cleanup of osint-m.adb Message-ID: <20220107162653.GA948012@adacore.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-List-Received-Date: Fri, 07 Jan 2022 16:26:57 -0000 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline We remove the "pragma Elaborate_All (Osint)", because it is no longer needed. That allows us to remove the "with Osint" (i.e. with of our own parent). Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * osint-m.adb: Remove with_clause and pragma. --SLDf9lqlvOQaIe6s Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch.diff" diff --git a/gcc/ada/osint-m.adb b/gcc/ada/osint-m.adb --- a/gcc/ada/osint-m.adb +++ b/gcc/ada/osint-m.adb @@ -23,17 +23,6 @@ -- -- ------------------------------------------------------------------------------ -with Osint; - -pragma Elaborate_All (Osint); --- This pragma is needed because of the call to Set_Program in the --- elaboration of the package. We cannot rely on the static model --- of elaboration since the compiler is routinely compiled with --- checks off (-gnatp), and with older versions of the compiler --- (up to and including most 5.04 wavefronts), -gnatp suppresses --- the static elaboration check mechanisms. It could be removed --- one day, but there really is no need to do so. - package body Osint.M is ----------------------- --SLDf9lqlvOQaIe6s--