* [Ada] Small cleanup of osint-m.adb
@ 2022-01-07 16:26 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-01-07 16:26 UTC (permalink / raw)
To: gcc-patches; +Cc: Bob Duff
[-- 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
-----------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-07 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 16:26 [Ada] Small cleanup of osint-m.adb Pierre-Marie de Rodat
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).