OSDN Git Service

2010-01-25 Bob Duff <duff@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / osint-m.adb
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-2007, 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 3,  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 COPYING3.  If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license.          --
20 --                                                                          --
21 -- GNAT was originally developed  by the GNAT team at  New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
23 --                                                                          --
24 ------------------------------------------------------------------------------
25
26 with Osint;
27
28 pragma Elaborate_All (Osint);
29 --  This pragma is needed because of the call to Set_Program in the
30 --  elaboration of the package. We cannot rely on the static model
31 --  of elaboration since the compiler is routinely compiled with
32 --  checks off (-gnatp), and with older versions of the compiler
33 --  (up to and including most 5.04 wavefronts), -gnatp suppresses
34 --  the static elaboration check mechanisms. It could be removed
35 --  one day, but there really is no need to do so.
36
37 package body Osint.M is
38
39    -----------------------
40    -- More_Source_Files --
41    -----------------------
42
43    function More_Source_Files return Boolean renames More_Files;
44
45    ----------------------
46    -- Next_Main_Source --
47    ----------------------
48
49    function Next_Main_Source return File_Name_Type renames Next_Main_File;
50
51    ----------------------
52    -- Object_File_Name --
53    ----------------------
54
55    function Object_File_Name (N : File_Name_Type) return File_Name_Type
56      renames Osint.Object_File_Name;
57
58 begin
59    Set_Program (Make);
60 end Osint.M;