2005-12-29 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / gcc / ada / osint-m.adb
blob964edf332273394eae5cff490984eebe1719f3db
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- O S I N T - M --
6 -- --
7 -- B o d y --
8 -- --
9 -- Copyright (C) 2001-2005, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
21 -- --
22 -- GNAT was originally developed by the GNAT team at New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc. --
24 -- --
25 ------------------------------------------------------------------------------
27 with Osint;
29 pragma Elaborate_All (Osint);
30 -- This pragma is needed because of the call to Set_Program in the
31 -- elaboration of the package. We cannot rely on the static model
32 -- of elaboration since the compiler is routinely compiled with
33 -- checks off (-gnatp), and with older versions of the compiler
34 -- (up to and including most 5.04 wavefronts), -gnatp suppresses
35 -- the static elaboration check mechanisms. It could be removed
36 -- one day, but there really is no need to do so.
38 package body Osint.M is
40 -----------------------
41 -- More_Source_Files --
42 -----------------------
44 function More_Source_Files return Boolean renames More_Files;
46 ----------------------
47 -- Next_Main_Source --
48 ----------------------
50 function Next_Main_Source return File_Name_Type renames Next_Main_File;
52 ----------------------
53 -- Object_File_Name --
54 ----------------------
56 function Object_File_Name (N : File_Name_Type) return File_Name_Type
57 renames Osint.Object_File_Name;
59 begin
60 Set_Program (Make);
61 end Osint.M;