OSDN Git Service

2007-01-26 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / hostparm.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                             H O S T P A R M                              --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1992-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 -- As a special exception,  if other files  instantiate  generics from this --
23 -- unit, or you link  this unit with other files  to produce an executable, --
24 -- this  unit  does not  by itself cause  the resulting  executable  to  be --
25 -- covered  by the  GNU  General  Public  License.  This exception does not --
26 -- however invalidate  any other reasons why  the executable file  might be --
27 -- covered by the  GNU Public License.                                      --
28 --                                                                          --
29 -- GNAT was originally developed  by the GNAT team at  New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
31 --                                                                          --
32 ------------------------------------------------------------------------------
33
34 --  This package defines some system dependent parameters for GNAT. These
35 --  are parameters that are relevant to the host machine on which the
36 --  compiler is running, and thus this package is part of the compiler.
37
38 with Types;
39
40 package Hostparm is
41
42    -----------------------
43    -- TARGET Parameters --
44    -----------------------
45
46    --  ??? The following should really be moved to a Target package
47
48    Java_VM : constant Boolean := False;
49    --  Set true when compiling the JGNAT tool chain (compiler, gnatmake, etc)
50
51    ---------------------
52    -- HOST Parameters --
53    ---------------------
54
55    Gnat_VMSp : Integer;
56    pragma Import (C, Gnat_VMSp, "__gnat_vmsp");
57
58    OpenVMS : Boolean := Gnat_VMSp /= 0;
59    --  Set True for OpenVMS host. See also OpenVMS target boolean in
60    --  5vsystem.ads and OpenVMS_On_Target boolean in Targparm. This is
61    --  not a constant, because it can be modified by -gnatdm.
62
63    Normalized_CWD : constant String := "./";
64    --  Normalized string to access current directory
65
66    Max_Line_Length : constant := Types.Column_Number'Pred
67                        (Types.Column_Number'Last);
68    --  Maximum source line length. By default we set it to the maximum
69    --  value that can be supported, which is given by the range of the
70    --  Column_Number type. We subtract 1 because need to be able to
71    --  have a valid Column_Number equal to Max_Line_Length to represent
72    --  the location of a "line too long" error.
73    --  200 is the minimum value required (RM 2.2(15)). The value set here
74    --  can be reduced by the explicit use of the -gnatyM style switch.
75
76    Max_Name_Length : constant := 1024;
77    --  Maximum length of unit name (including all dots, and " (spec)") and
78    --  of file names in the library, must be at least Max_Line_Length, but
79    --  can be larger.
80
81    Max_Instantiations : constant := 4000;
82    --  Maximum number of instantiations permitted (to stop runaway cases
83    --  of nested instantiations). These situations probably only occur in
84    --  specially concocted test cases.
85
86    Tag_Errors : constant Boolean := False;
87    --  If set to true, then brief form error messages will be prefaced by
88    --  the string "error:". Used as default for Opt.Unique_Error_Tag.
89
90    Exclude_Missing_Objects : constant Boolean := True;
91    --  If set to true, gnatbind will exclude from consideration all
92    --  non-existent .o files.
93
94    Max_Debug_Name_Length : constant := 256;
95    --  If a generated qualified debug name exceeds this length, then it
96    --  is automatically compressed, regardless of the setting of the
97    --  Compress_Debug_Names switch controlled by -gnatC.
98
99 end Hostparm;