1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
5 -- S Y S T E M . S T A N D A R D _ L I B R A R Y --
9 -- Copyright (C) 1995-2005 Free Software Foundation, Inc. --
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. --
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. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 -- The purpose of this body is simply to ensure that the two with'ed units
35 -- are properly included in the link. They are not with'ed from the spec
36 -- of System.Standard_Library, since this would cause order of elaboration
37 -- problems (Elaborate_Body would have the same problem).
40 -- We must turn polling off for this unit, because otherwise we get
41 -- elaboration circularities with Ada.Exceptions if polling is on.
43 pragma Warnings
(Off
);
44 -- Kill warnings from unused withs
46 with System
.Soft_Links
;
47 -- Referenced directly from generated code using external symbols so it
48 -- must always be present in a build, even if no unit has a direct with
49 -- of this unit. Also referenced from exception handling routines.
50 -- This is needed for programs that don't use exceptions explicitely but
51 -- direct calls to Ada.Exceptions are generated by gigi (for example,
52 -- by calling __gnat_raise_constraint_error directly).
55 -- Referenced directly from generated code using external symbols, so it
56 -- must always be present in a build, even if no unit has a direct with
61 package body System
.Standard_Library
is
63 Runtime_Finalized
: Boolean := False;
64 -- Set to True when adafinal is called. Used to ensure that subsequent
65 -- calls to adafinal after the first have no effect.
67 --------------------------
68 -- Abort_Undefer_Direct --
69 --------------------------
71 procedure Abort_Undefer_Direct
is
73 System
.Soft_Links
.Abort_Undefer
.all;
74 end Abort_Undefer_Direct
;
82 if not Runtime_Finalized
then
83 Runtime_Finalized
:= True;
84 System
.Soft_Links
.Adafinal
.all;
92 procedure Break_Start
;
93 pragma Export
(C
, Break_Start
, "__gnat_break_start");
94 -- This is a dummy procedure that is called at the start of execution.
95 -- Its sole purpose is to provide a well defined point for the placement
96 -- of a main program breakpoint.
98 procedure Break_Start
is
103 end System
.Standard_Library
;