PR target/81369
[official-gcc.git] / gcc / ada / s-stchop-limit.ads
blob237c0f9e051de9546574601f393c39fc6d03da2e
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
4 -- --
5 -- S Y S T E M . S T A C K _ C H E C K I N G . O P E R A T I O N S --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1999-2009, Free Software Foundation, Inc. --
10 -- --
11 -- GNARL 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 -- GNARL was developed by the GNARL team at Florida State University. --
28 -- Extensive contributions were provided by Ada Core Technologies, Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This version of this package is for implementations which use
33 -- the stack limit approach (the limit of the stack is stored into a per
34 -- thread variable).
36 pragma Restrictions (No_Elaboration_Code);
37 -- We want to guarantee the absence of elaboration code because the binder
38 -- does not handle references to this package.
40 pragma Polling (Off);
41 -- Turn off polling, we do not want polling to take place during stack
42 -- checking operations. It causes infinite loops and other problems.
44 package System.Stack_Checking.Operations is
45 pragma Preelaborate;
47 procedure Initialize_Stack_Limit;
48 pragma Export (C, Initialize_Stack_Limit,
49 "__gnat_initialize_stack_limit");
50 -- This procedure is called before elaboration to setup the stack limit
51 -- for the environment task and to register the hook to be called at
52 -- task creation.
53 end System.Stack_Checking.Operations;