PR c++/54038
[official-gcc.git] / gcc / ada / s-except.ads
blobf0da1e520d3fe21ad227f41971ee44dabd250493
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S Y S T E M . E X C E P T I O N S --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 2006-2011, 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. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 pragma Compiler_Unit;
34 package System.Exceptions is
36 pragma Preelaborate_05;
37 -- To let Ada.Exceptions "with" us and let us "with" Standard_Library
39 ZCX_By_Default : constant Boolean;
40 -- Visible copy to allow Ada.Exceptions to know the exception model.
42 private
43 type Require_Body;
44 -- Dummy Taft-amendment type to make it legal (and required) to provide
45 -- a body for this package.
47 -- We do this because this unit used to have a body in earlier versions
48 -- of GNAT, and it causes various bootstrap path problems etc if we remove
49 -- a body, since we may pick up old unwanted bodies.
51 -- Note: we use this standard Ada method of requiring a body rather
52 -- than the cleaner pragma No_Body because System.Exceptions is a compiler
53 -- unit, and older bootstrap compilers do not support pragma No_Body. This
54 -- type can be removed, and s-except.adb can be replaced by a source
55 -- containing just that pragma, when we decide to move to a 2008 compiler
56 -- as the minimal bootstrap compiler version. ???
58 ZCX_By_Default : constant Boolean := System.ZCX_By_Default;
60 Foreign_Exception : exception;
61 pragma Unreferenced (Foreign_Exception);
62 -- This hidden exception is used to represent non-Ada exception to
63 -- Ada handlers. It is in fact referenced by its linking name.
65 end System.Exceptions;