OSDN Git Service

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