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