FSF GCC merge 02/23/03
[official-gcc.git] / gcc / ada / sem_intr.ads
blob54b002c96e1aa0fda05f59495e9a0a0c4129a82c
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S E M _ I N T R --
6 -- --
7 -- S p e c --
8 -- --
9 -- --
10 -- Copyright (C) 1992,1993,1994 Free Software Foundation, Inc. --
11 -- --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
22 -- --
23 -- GNAT was originally developed by the GNAT team at New York University. --
24 -- Extensive contributions were provided by Ada Core Technologies Inc. --
25 -- --
26 ------------------------------------------------------------------------------
28 -- Processing for intrinsic subprogram declarations
30 with Types; use Types;
32 package Sem_Intr is
34 procedure Check_Intrinsic_Call (N : Node_Id);
35 -- Perform legality check for intrinsic call N (which is either function
36 -- call or a procedure call node). All the normal semantic checks have
37 -- been performed already. Check_Intrinsic_Call applies any additional
38 -- checks required by the fact that an intrinsic subprogram is involved.
40 procedure Check_Intrinsic_Subprogram (E : Entity_Id; N : Node_Id);
41 -- Special processing for pragma Import or pragma Interface when the
42 -- convention is Intrinsic. E is the Entity_Id of the spec of the
43 -- subprogram, and N is the second (subprogram) argument of the pragma.
44 -- Check_Intrinsic_Subprogram checks that the referenced subprogram is
45 -- known as an intrinsic and has an appropriate profile. If so the flag
46 -- Is_Intrinsic_Subprogram is set, otherwise an error message is posted.
48 end Sem_Intr;