]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR ada/18434 (Ada: cannot build gnattools on Tru64 UNIX V5.1B)
authorRobert Dewar <dewar@adacore.com>
Mon, 14 Nov 2005 13:05:58 +0000 (13:05 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 14 Nov 2005 13:05:58 +0000 (14:05 +0100)
2005-11-14  Robert Dewar  <dewar@adacore.com>

PR ada/18434
* osint-m.adb: Add pragma Elaborate_All for Osint

From-SVN: r106886

gcc/ada/ChangeLog
gcc/ada/osint-m.adb

index dff3b6cbcca64bbf86e5ab73ac1d8786a27efacf..73ec36e119b257e701b16b3cb6a42a823eef5ad2 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-14  Robert Dewar  <dewar@adacore.com>
+
+       PR ada/18434
+       * osint-m.adb: Add pragma Elaborate_All for Osint
+
 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR ada/23995
index 3138d6f74da6ed556902483c49936ee4784aeb18..964edf332273394eae5cff490984eebe1719f3db 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 2001 Free Software Foundation, Inc.               --
+--          Copyright (C) 2001-2005, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
 --                                                                          --
 ------------------------------------------------------------------------------
 
+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
 
    -----------------------