From: Pierre-Marie de Rodat <derodat@adacore.com>
To: gcc-patches@gcc.gnu.org
Cc: Bob Duff <duff@adacore.com>
Subject: [Ada] Small cleanup of osint-m.adb
Date: Fri, 7 Jan 2022 16:26:53 +0000 [thread overview]
Message-ID: <20220107162653.GA948012@adacore.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
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.
[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 847 bytes --]
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
-----------------------
reply other threads:[~2022-01-07 16:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220107162653.GA948012@adacore.com \
--to=derodat@adacore.com \
--cc=duff@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).