FSF GCC merge 02/23/03
[official-gcc.git] / gcc / ada / sem_prag.ads
blob4aaa86c07b4667f63e317344ae809eb56a116ab9
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S E M _ P R A G --
6 -- --
7 -- S p e c --
8 -- --
9 -- --
10 -- Copyright (C) 1992-1997 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 -- Pragma handling is isolated in a separate package
29 -- (logically this processing belongs in chapter 4)
31 with Types; use Types;
32 package Sem_Prag is
34 procedure Analyze_Pragma (N : Node_Id);
35 -- Analyze procedure for pragma reference node N
37 function Is_Pragma_String_Literal (Par : Node_Id) return Boolean;
38 -- Given an N_Pragma_Argument_Association node, Par, which has the form
39 -- of an operator symbol, determines whether or not it should be treated
40 -- as an string literal. This is called by Sem_Ch6.Analyze_Operator_Symbol.
41 -- If True is returned, the argument is converted to a string literal. If
42 -- False is returned, then the argument is treated as an entity reference
43 -- to the operator.
45 procedure Process_Compilation_Unit_Pragmas (N : Node_Id);
46 -- Called at the start of processing compilation unit N to deal with
47 -- any special issues regarding pragmas. In particular, we have to
48 -- deal with Suppress_All at this stage, since it appears after the
49 -- unit instead of before.
51 procedure Set_Encoded_Interface_Name (E : Entity_Id; S : Node_Id);
52 -- This routine is used to set an encoded interface name. The node
53 -- S is an N_String_Literal node for the external name to be set, and
54 -- E is an entity whose Interface_Name field is to be set. In the
55 -- normal case where S contains a name that is a valid C identifier,
56 -- then S is simply set as the value of the Interface_Name. Otherwise
57 -- it is encoded. See the body for details of the encoding. This
58 -- encoding is only done on VMS systems, since it seems pretty silly,
59 -- but is needed to pass some dubious tests in the test suite.
61 end Sem_Prag;