1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2004 Free Software Foundation, Inc. --
11 -- GNAT 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 2, 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. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
20 -- MA 02111-1307, USA. --
22 -- GNAT was originally developed by the GNAT team at New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc. --
25 ------------------------------------------------------------------------------
27 -- Generally the parser checks the basic syntax of pragmas, but does not
28 -- do specialized syntax checks for individual pragmas, these are deferred
29 -- to semantic analysis time (see unit Sem_Prag). There are some pragmas
30 -- which require recognition and either partial or complete processing
31 -- during parsing, and this unit performs this required processing.
33 with Fname
.UF
; use Fname
.UF
;
34 with Osint
; use Osint
;
35 with Stringt
; use Stringt
;
36 with Stylesw
; use Stylesw
;
37 with Uintp
; use Uintp
;
38 with Uname
; use Uname
;
42 function Prag
(Pragma_Node
: Node_Id
; Semi
: Source_Ptr
) return Node_Id
is
43 Pragma_Name
: constant Name_Id
:= Chars
(Pragma_Node
);
44 Pragma_Sloc
: constant Source_Ptr
:= Sloc
(Pragma_Node
);
48 -----------------------
49 -- Local Subprograms --
50 -----------------------
52 function Arg1
return Node_Id
;
53 function Arg2
return Node_Id
;
54 function Arg3
return Node_Id
;
55 -- Obtain specified Pragma_Argument_Association. It is allowable to call
56 -- the routine for the argument one past the last present argument, but
57 -- that is the only case in which a non-present argument can be referenced.
59 procedure Check_Arg_Count
(Required
: Int
);
60 -- Check argument count for pragma = Required.
61 -- If not give error and raise Error_Resync.
63 procedure Check_Arg_Is_String_Literal
(Arg
: Node_Id
);
64 -- Check the expression of the specified argument to make sure that it
65 -- is a string literal. If not give error and raise Error_Resync.
67 procedure Check_Arg_Is_On_Or_Off
(Arg
: Node_Id
);
68 -- Check the expression of the specified argument to make sure that it
69 -- is an identifier which is either ON or OFF, and if not, then issue
70 -- an error message and raise Error_Resync.
72 procedure Check_No_Identifier
(Arg
: Node_Id
);
73 -- Checks that the given argument does not have an identifier. If
74 -- an identifier is present, then an error message is issued, and
75 -- Error_Resync is raised.
77 procedure Check_Optional_Identifier
(Arg
: Node_Id
; Id
: Name_Id
);
78 -- Checks if the given argument has an identifier, and if so, requires
79 -- it to match the given identifier name. If there is a non-matching
80 -- identifier, then an error message is given and Error_Resync raised.
82 procedure Check_Required_Identifier
(Arg
: Node_Id
; Id
: Name_Id
);
83 -- Same as Check_Optional_Identifier, except that the name is required
84 -- to be present and to match the given Id value.
90 function Arg1
return Node_Id
is
92 return First
(Pragma_Argument_Associations
(Pragma_Node
));
99 function Arg2
return Node_Id
is
108 function Arg3
return Node_Id
is
113 ---------------------
114 -- Check_Arg_Count --
115 ---------------------
117 procedure Check_Arg_Count
(Required
: Int
) is
119 if Arg_Count
/= Required
then
120 Error_Msg
("wrong number of arguments for pragma%", Pragma_Sloc
);
125 ----------------------------
126 -- Check_Arg_Is_On_Or_Off --
127 ----------------------------
129 procedure Check_Arg_Is_On_Or_Off
(Arg
: Node_Id
) is
130 Argx
: constant Node_Id
:= Expression
(Arg
);
133 if Nkind
(Expression
(Arg
)) /= N_Identifier
134 or else (Chars
(Argx
) /= Name_On
136 Chars
(Argx
) /= Name_Off
)
138 Error_Msg_Name_2
:= Name_On
;
139 Error_Msg_Name_3
:= Name_Off
;
142 ("argument for pragma% must be% or%", Sloc
(Argx
));
145 end Check_Arg_Is_On_Or_Off
;
147 ---------------------------------
148 -- Check_Arg_Is_String_Literal --
149 ---------------------------------
151 procedure Check_Arg_Is_String_Literal
(Arg
: Node_Id
) is
153 if Nkind
(Expression
(Arg
)) /= N_String_Literal
then
155 ("argument for pragma% must be string literal",
156 Sloc
(Expression
(Arg
)));
159 end Check_Arg_Is_String_Literal
;
161 -------------------------
162 -- Check_No_Identifier --
163 -------------------------
165 procedure Check_No_Identifier
(Arg
: Node_Id
) is
167 if Chars
(Arg
) /= No_Name
then
168 Error_Msg_N
("pragma% does not permit named arguments", Arg
);
171 end Check_No_Identifier
;
173 -------------------------------
174 -- Check_Optional_Identifier --
175 -------------------------------
177 procedure Check_Optional_Identifier
(Arg
: Node_Id
; Id
: Name_Id
) is
179 if Present
(Arg
) and then Chars
(Arg
) /= No_Name
then
180 if Chars
(Arg
) /= Id
then
181 Error_Msg_Name_2
:= Id
;
182 Error_Msg_N
("pragma% argument expects identifier%", Arg
);
185 end Check_Optional_Identifier
;
187 -------------------------------
188 -- Check_Required_Identifier --
189 -------------------------------
191 procedure Check_Required_Identifier
(Arg
: Node_Id
; Id
: Name_Id
) is
193 if Chars
(Arg
) /= Id
then
194 Error_Msg_Name_2
:= Id
;
195 Error_Msg_N
("pragma% argument must have identifier%", Arg
);
197 end Check_Required_Identifier
;
204 Error_Msg_Name_1
:= Pragma_Name
;
206 -- Ignore unrecognized pragma. We let Sem post the warning for this, since
207 -- it is a semantic error, not a syntactic one (we have already checked
208 -- the syntax for the unrecognized pragma as required by (RM 2.8(11)).
210 if not Is_Pragma_Name
(Chars
(Pragma_Node
)) then
214 -- Count number of arguments. This loop also checks if any of the arguments
215 -- are Error, indicating a syntax error as they were parsed. If so, we
216 -- simply return, because we get into trouble with cascaded errors if we
217 -- try to perform our error checks on junk arguments.
221 if Present
(Pragma_Argument_Associations
(Pragma_Node
)) then
224 while Arg_Node
/= Empty
loop
225 Arg_Count
:= Arg_Count
+ 1;
227 if Expression
(Arg_Node
) = Error
then
235 -- Remaining processing is pragma dependent
237 case Get_Pragma_Id
(Pragma_Name
) is
243 -- This pragma must be processed at parse time, since we want to set
244 -- the Ada version properly at parse time to recognize the appropriate
245 -- Ada version syntax.
247 when Pragma_Ada_83
=>
248 Ada_Version
:= Ada_83
;
254 -- This pragma must be processed at parse time, since we want to set
255 -- the Ada version properly at parse time to recognize the appropriate
256 -- Ada version syntax.
258 when Pragma_Ada_95
=>
259 Ada_Version
:= Ada_95
;
265 -- This pragma must be processed at parse time, since we want to set
266 -- the Ada version properly at parse time to recognize the appropriate
267 -- Ada version syntax.
269 when Pragma_Ada_05
=>
270 Ada_Version
:= Ada_05
;
276 -- pragma Debug (PROCEDURE_CALL_STATEMENT);
278 -- This has to be processed by the parser because of the very peculiar
279 -- form of the second parameter, which is syntactically from a formal
280 -- point of view a function call (since it must be an expression), but
281 -- semantically we treat it as a procedure call (which has exactly the
282 -- same syntactic form, so that's why we can get away with this!)
286 Check_No_Identifier
(Arg1
);
289 Expr
: constant Node_Id
:= New_Copy
(Expression
(Arg1
));
292 if Nkind
(Expr
) /= N_Indexed_Component
293 and then Nkind
(Expr
) /= N_Function_Call
294 and then Nkind
(Expr
) /= N_Identifier
295 and then Nkind
(Expr
) /= N_Selected_Component
298 ("argument of pragma% is not procedure call", Sloc
(Expr
));
302 (Pragma_Node
, P_Statement_Name
(Expr
));
306 -------------------------------
307 -- Extensions_Allowed (GNAT) --
308 -------------------------------
310 -- pragma Extensions_Allowed (Off | On)
312 -- The processing for pragma Extensions_Allowed must be done at
313 -- parse time, since extensions mode may affect what is accepted.
315 when Pragma_Extensions_Allowed
=>
317 Check_No_Identifier
(Arg1
);
318 Check_Arg_Is_On_Or_Off
(Arg1
);
320 if Chars
(Expression
(Arg1
)) = Name_On
then
321 Extensions_Allowed
:= True;
322 Ada_Version
:= Ada_Version_Type
'Last;
324 Extensions_Allowed
:= False;
325 Ada_Version
:= Ada_Version_Type
'Min (Ada_Version
, Ada_95
);
332 -- pragma List (Off | On)
334 -- The processing for pragma List must be done at parse time,
335 -- since a listing can be generated in parse only mode.
339 Check_No_Identifier
(Arg1
);
340 Check_Arg_Is_On_Or_Off
(Arg1
);
342 -- We unconditionally make a List_On entry for the pragma, so that
343 -- in the List (Off) case, the pragma will print even in a region
344 -- of code with listing turned off (this is required!)
346 List_Pragmas
.Increment_Last
;
347 List_Pragmas
.Table
(List_Pragmas
.Last
) :=
348 (Ptyp
=> List_On
, Ploc
=> Sloc
(Pragma_Node
));
350 -- Now generate the list off entry for pragma List (Off)
352 if Chars
(Expression
(Arg1
)) = Name_Off
then
353 List_Pragmas
.Increment_Last
;
354 List_Pragmas
.Table
(List_Pragmas
.Last
) :=
355 (Ptyp
=> List_Off
, Ploc
=> Semi
);
364 -- Processing for this pragma must be done at parse time, since a
365 -- listing can be generated in parse only mode with semantics off.
369 List_Pragmas
.Increment_Last
;
370 List_Pragmas
.Table
(List_Pragmas
.Last
) := (Page
, Semi
);
372 ----------------------------------------------------------
373 -- Source_File_Name and Source_File_Name_Project (GNAT) --
374 ----------------------------------------------------------
376 -- These two pragmas have the same syntax and semantics.
377 -- There are five forms of these pragmas:
379 -- pragma Source_File_Name[_Project] (
380 -- [UNIT_NAME =>] unit_NAME,
381 -- BODY_FILE_NAME => STRING_LITERAL
382 -- [, [INDEX =>] INTEGER_LITERAL]);
384 -- pragma Source_File_Name[_Project] (
385 -- [UNIT_NAME =>] unit_NAME,
386 -- SPEC_FILE_NAME => STRING_LITERAL
387 -- [, [INDEX =>] INTEGER_LITERAL]);
389 -- pragma Source_File_Name[_Project] (
390 -- BODY_FILE_NAME => STRING_LITERAL
391 -- [, DOT_REPLACEMENT => STRING_LITERAL]
392 -- [, CASING => CASING_SPEC]);
394 -- pragma Source_File_Name[_Project] (
395 -- SPEC_FILE_NAME => STRING_LITERAL
396 -- [, DOT_REPLACEMENT => STRING_LITERAL]
397 -- [, CASING => CASING_SPEC]);
399 -- pragma Source_File_Name[_Project] (
400 -- SUBUNIT_FILE_NAME => STRING_LITERAL
401 -- [, DOT_REPLACEMENT => STRING_LITERAL]
402 -- [, CASING => CASING_SPEC]);
404 -- CASING_SPEC ::= Uppercase | Lowercase | Mixedcase
406 -- Pragma Source_File_Name_Project (SFNP) is equivalent to pragma
407 -- Source_File_Name (SFN), however their usage is exclusive:
408 -- SFN can only be used when no project file is used, while
409 -- SFNP can only be used when a project file is used.
411 -- The Project Manager produces a configuration pragmas file that
412 -- is communicated to the compiler with -gnatec switch. This file
413 -- contains only SFNP pragmas (at least two for the default naming
414 -- scheme. As this configuration pragmas file is always the first
415 -- processed by the compiler, it prevents the use of pragmas SFN in
416 -- other config files when a project file is in use.
418 -- Note: we process this during parsing, since we need to have the
419 -- source file names set well before the semantic analysis starts,
420 -- since we load the spec and with'ed packages before analysis.
422 when Pragma_Source_File_Name | Pragma_Source_File_Name_Project
=>
423 Source_File_Name
: declare
424 Unam
: Unit_Name_Type
;
434 function Get_Fname
(Arg
: Node_Id
) return Name_Id
;
435 -- Process file name from unit name form of pragma
437 function Get_String_Argument
(Arg
: Node_Id
) return String_Ptr
;
438 -- Process string literal value from argument
440 procedure Process_Casing
(Arg
: Node_Id
);
441 -- Process Casing argument of pattern form of pragma
443 procedure Process_Dot_Replacement
(Arg
: Node_Id
);
444 -- Process Dot_Replacement argument of patterm form of pragma
450 function Get_Fname
(Arg
: Node_Id
) return Name_Id
is
452 String_To_Name_Buffer
(Strval
(Expression
(Arg
)));
454 for J
in 1 .. Name_Len
loop
455 if Is_Directory_Separator
(Name_Buffer
(J
)) then
457 ("directory separator character not allowed",
458 Sloc
(Expression
(Arg
)) + Source_Ptr
(J
));
465 -------------------------
466 -- Get_String_Argument --
467 -------------------------
469 function Get_String_Argument
(Arg
: Node_Id
) return String_Ptr
is
473 if Nkind
(Expression
(Arg
)) /= N_String_Literal
475 Nkind
(Expression
(Arg
)) /= N_Operator_Symbol
478 ("argument for pragma% must be string literal", Arg
);
482 Str
:= Strval
(Expression
(Arg
));
484 -- Check string has no wide chars
486 for J
in 1 .. String_Length
(Str
) loop
487 if Get_String_Char
(Str
, J
) > 255 then
489 ("wide character not allowed in pattern for pragma%",
490 Sloc
(Expression
(Arg2
)) + Text_Ptr
(J
) - 1);
496 String_To_Name_Buffer
(Str
);
497 return new String'(Name_Buffer (1 .. Name_Len));
498 end Get_String_Argument;
504 procedure Process_Casing (Arg : Node_Id) is
505 Expr : constant Node_Id := Expression (Arg);
508 Check_Required_Identifier (Arg, Name_Casing);
510 if Nkind (Expr) = N_Identifier then
511 if Chars (Expr) = Name_Lowercase then
512 Cas := All_Lower_Case;
514 elsif Chars (Expr) = Name_Uppercase then
515 Cas := All_Upper_Case;
517 elsif Chars (Expr) = Name_Mixedcase then
524 ("Casing argument for pragma% must be " &
525 "one of Mixedcase, Lowercase, Uppercase",
529 -----------------------------
530 -- Process_Dot_Replacement --
531 -----------------------------
533 procedure Process_Dot_Replacement (Arg : Node_Id) is
535 Check_Required_Identifier (Arg, Name_Dot_Replacement);
536 Dot := Get_String_Argument (Arg);
537 end Process_Dot_Replacement;
539 -- Start of processing for Source_File_Name and
540 -- Source_File_Name_Project pragmas.
543 if Get_Pragma_Id (Pragma_Name) = Pragma_Source_File_Name then
544 if Project_File_In_Use = In_Use then
546 ("pragma Source_File_Name cannot be used " &
547 "with a project file", Pragma_Sloc);
550 Project_File_In_Use := Not_In_Use;
554 if Project_File_In_Use = Not_In_Use then
556 ("pragma Source_File_Name_Project should only be used " &
557 "with a project file", Pragma_Sloc);
559 Project_File_In_Use := In_Use;
563 -- We permit from 1 to 3 arguments
565 if Arg_Count not in 1 .. 3 then
569 Expr1 := Expression (Arg1);
571 -- If first argument is identifier or selected component, then
572 -- we have the specific file case of the Source_File_Name pragma,
573 -- and the first argument is a unit name.
575 if Nkind (Expr1) = N_Identifier
577 (Nkind (Expr1) = N_Selected_Component
579 Nkind (Selector_Name (Expr1)) = N_Identifier)
581 if Nkind (Expr1) = N_Identifier
582 and then Chars (Expr1) = Name_System
585 ("pragma Source_File_Name may not be used for System",
590 -- Process index argument if present
592 if Arg_Count = 3 then
593 Expr := Expression (Arg3);
595 if Nkind (Expr) /= N_Integer_Literal
596 or else not UI_Is_In_Int_Range (Intval (Expr))
597 or else Intval (Expr) > 999
598 or else Intval (Expr) <= 0
601 ("pragma% index must be integer literal" &
602 " in range 1 .. 999", Sloc (Expr));
605 Index := UI_To_Int (Intval (Expr));
608 -- No index argument present
615 Check_Optional_Identifier (Arg1, Name_Unit_Name);
616 Unam := Get_Unit_Name (Expr1);
618 Check_Arg_Is_String_Literal (Arg2);
620 if Chars (Arg2) = Name_Spec_File_Name then
622 (Get_Spec_Name (Unam), Get_Fname (Arg2), Index);
624 elsif Chars (Arg2) = Name_Body_File_Name then
626 (Unam, Get_Fname (Arg2), Index);
630 ("pragma% argument has incorrect identifier", Arg2);
634 -- If the first argument is not an identifier, then we must have
635 -- the pattern form of the pragma, and the first argument must be
636 -- the pattern string with an appropriate name.
639 if Chars (Arg1) = Name_Spec_File_Name then
642 elsif Chars (Arg1) = Name_Body_File_Name then
645 elsif Chars (Arg1) = Name_Subunit_File_Name then
648 elsif Chars (Arg1) = Name_Unit_Name then
650 ("Unit_Name parameter for pragma% must be an identifier",
656 ("pragma% argument has incorrect identifier", Arg1);
660 Pat := Get_String_Argument (Arg1);
662 -- Check pattern has exactly one asterisk
665 for J in Pat'Range loop
666 if Pat (J) = '*' then
673 ("file name pattern must have exactly one * character",
678 -- Set defaults for Casing and Dot_Separator parameters
680 Cas := All_Lower_Case;
681 Dot := new String'(".");
683 -- Process second and third arguments if present
685 if Arg_Count
> 1 then
686 if Chars
(Arg2
) = Name_Casing
then
687 Process_Casing
(Arg2
);
689 if Arg_Count
= 3 then
690 Process_Dot_Replacement
(Arg3
);
694 Process_Dot_Replacement
(Arg2
);
696 if Arg_Count
= 3 then
697 Process_Casing
(Arg3
);
702 Set_File_Name_Pattern
(Pat
, Typ
, Dot
, Cas
);
704 end Source_File_Name
;
706 -----------------------------
707 -- Source_Reference (GNAT) --
708 -----------------------------
710 -- pragma Source_Reference
711 -- (INTEGER_LITERAL [, STRING_LITERAL] );
713 -- Processing for this pragma must be done at parse time, since error
714 -- messages needing the proper line numbers can be generated in parse
715 -- only mode with semantic checking turned off, and indeed we usually
716 -- turn off semantic checking anyway if any parse errors are found.
718 when Pragma_Source_Reference
=> Source_Reference
: declare
722 if Arg_Count
/= 1 then
724 Check_No_Identifier
(Arg2
);
727 -- Check that this is first line of file. We skip this test if
728 -- we are in syntax check only mode, since we may be dealing with
729 -- multiple compilation units.
731 if Get_Physical_Line_Number
(Pragma_Sloc
) /= 1
732 and then Num_SRef_Pragmas
(Current_Source_File
) = 0
733 and then Operating_Mode
/= Check_Syntax
736 ("first % pragma must be first line of file", Pragma_Sloc
);
740 Check_No_Identifier
(Arg1
);
742 if Arg_Count
= 1 then
743 if Num_SRef_Pragmas
(Current_Source_File
) = 0 then
745 ("file name required for first % pragma in file",
755 Check_Arg_Is_String_Literal
(Arg2
);
756 String_To_Name_Buffer
(Strval
(Expression
(Arg2
)));
759 if Num_SRef_Pragmas
(Current_Source_File
) > 0 then
760 if Fname
/= Full_Ref_Name
(Current_Source_File
) then
762 ("file name must be same in all % pragmas", Pragma_Sloc
);
768 if Nkind
(Expression
(Arg1
)) /= N_Integer_Literal
then
770 ("argument for pragma% must be integer literal",
771 Sloc
(Expression
(Arg1
)));
774 -- OK, this source reference pragma is effective, however, we
775 -- ignore it if it is not in the first unit in the multiple unit
776 -- case. This is because the only purpose in this case is to
777 -- provide source pragmas for subsequent use by gnatchop.
780 if Num_Library_Units
= 1 then
781 Register_Source_Ref_Pragma
783 Strip_Directory
(Fname
),
784 UI_To_Int
(Intval
(Expression
(Arg1
))),
785 Get_Physical_Line_Number
(Pragma_Sloc
) + 1);
788 end Source_Reference
;
790 -------------------------
791 -- Style_Checks (GNAT) --
792 -------------------------
794 -- pragma Style_Checks (On | Off | ALL_CHECKS | STRING_LITERAL);
796 -- This is processed by the parser since some of the style
797 -- checks take place during source scanning and parsing.
799 when Pragma_Style_Checks
=> Style_Checks
: declare
803 OK
: Boolean := True;
806 -- Two argument case is only for semantics
808 if Arg_Count
= 2 then
813 Check_No_Identifier
(Arg1
);
814 A
:= Expression
(Arg1
);
816 if Nkind
(A
) = N_String_Literal
then
820 Slen
: constant Natural := Natural (String_Length
(S
));
821 Options
: String (1 .. Slen
);
828 C
:= Get_String_Char
(S
, Int
(J
));
830 if not In_Character_Range
(C
) then
836 Options
(J
) := Get_Character
(C
);
840 Set_Style_Check_Options
(Options
, OK
, Ptr
);
850 ("invalid style check option",
851 Sloc
(Expression
(Arg1
)) + Source_Ptr
(Ptr
));
856 elsif Nkind
(A
) /= N_Identifier
then
859 elsif Chars
(A
) = Name_All_Checks
then
860 Stylesw
.Set_Default_Style_Check_Options
;
862 elsif Chars
(A
) = Name_On
then
865 elsif Chars
(A
) = Name_Off
then
866 Style_Check
:= False;
873 Error_Msg
("incorrect argument for pragma%", Sloc
(A
));
879 ---------------------
880 -- Warnings (GNAT) --
881 ---------------------
883 -- pragma Warnings (On | Off, [LOCAL_NAME])
885 -- The one argument case is processed by the parser, since it may
886 -- control parser warnings as well as semantic warnings, and in any
887 -- case we want to be absolutely sure that the range in the warnings
888 -- table is set well before any semantic analysis is performed.
890 when Pragma_Warnings
=>
891 if Arg_Count
= 1 then
892 Check_No_Identifier
(Arg1
);
893 Check_Arg_Is_On_Or_Off
(Arg1
);
895 if Chars
(Expression
(Arg1
)) = Name_On
then
896 Set_Warnings_Mode_On
(Pragma_Sloc
);
898 Set_Warnings_Mode_Off
(Pragma_Sloc
);
902 -----------------------
903 -- All Other Pragmas --
904 -----------------------
906 -- For all other pragmas, checking and processing is handled
907 -- entirely in Sem_Prag, and no further checking is done by Par.
909 when Pragma_Abort_Defer |
911 Pragma_All_Calls_Remote |
914 Pragma_Asynchronous |
916 Pragma_Atomic_Components |
917 Pragma_Attach_Handler |
918 Pragma_Compile_Time_Warning |
919 Pragma_Convention_Identifier |
921 Pragma_CPP_Constructor |
924 Pragma_C_Pass_By_Copy |
926 Pragma_Common_Object |
927 Pragma_Complex_Representation |
928 Pragma_Component_Alignment |
931 Pragma_Detect_Blocking |
932 Pragma_Discard_Names |
935 Pragma_Elaborate_All |
936 Pragma_Elaborate_Body |
937 Pragma_Elaboration_Checks |
938 Pragma_Explicit_Overriding |
940 Pragma_Export_Exception |
941 Pragma_Export_Function |
942 Pragma_Export_Object |
943 Pragma_Export_Procedure |
944 Pragma_Export_Value |
945 Pragma_Export_Valued_Procedure |
946 Pragma_Extend_System |
948 Pragma_External_Name_Casing |
949 Pragma_Finalize_Storage_Only |
950 Pragma_Float_Representation |
953 Pragma_Import_Exception |
954 Pragma_Import_Function |
955 Pragma_Import_Object |
956 Pragma_Import_Procedure |
957 Pragma_Import_Valued_Procedure |
958 Pragma_Initialize_Scalars |
960 Pragma_Inline_Always |
961 Pragma_Inline_Generic |
962 Pragma_Inspection_Point |
964 Pragma_Interface_Name |
965 Pragma_Interrupt_Handler |
966 Pragma_Interrupt_State |
967 Pragma_Interrupt_Priority |
968 Pragma_Java_Constructor |
969 Pragma_Java_Interface |
973 Pragma_Linker_Alias |
974 Pragma_Linker_Options |
975 Pragma_Linker_Section |
976 Pragma_Locking_Policy |
978 Pragma_Machine_Attribute |
980 Pragma_Main_Storage |
985 Pragma_No_Strict_Aliasing |
986 Pragma_Normalize_Scalars |
988 Pragma_Optional_Overriding |
993 Pragma_Persistent_Data |
994 Pragma_Persistent_Object |
995 Pragma_Preelaborate |
998 Pragma_Profile_Warnings |
999 Pragma_Propagate_Exceptions |
1000 Pragma_Psect_Object |
1002 Pragma_Pure_Function |
1003 Pragma_Queuing_Policy |
1004 Pragma_Remote_Call_Interface |
1005 Pragma_Remote_Types |
1006 Pragma_Restrictions |
1007 Pragma_Restriction_Warnings |
1008 Pragma_Restricted_Run_Time |
1011 Pragma_Share_Generic |
1013 Pragma_Shared_Passive |
1014 Pragma_Storage_Size |
1015 Pragma_Storage_Unit |
1016 Pragma_Stream_Convert |
1019 Pragma_Suppress_All |
1020 Pragma_Suppress_Debug_Info |
1021 Pragma_Suppress_Exception_Locations |
1022 Pragma_Suppress_Initialization |
1023 Pragma_System_Name |
1024 Pragma_Task_Dispatching_Policy |
1027 Pragma_Task_Storage |
1028 Pragma_Thread_Body |
1031 Pragma_Unchecked_Union |
1032 Pragma_Unimplemented_Unit |
1033 Pragma_Universal_Data |
1034 Pragma_Unreferenced |
1035 Pragma_Unreserve_All_Interrupts |
1037 Pragma_Use_VADS_Size |
1039 Pragma_Volatile_Components |
1040 Pragma_Weak_External |
1041 Pragma_Validity_Checks
=>
1044 --------------------
1045 -- Unknown_Pragma --
1046 --------------------
1048 -- Should be impossible, since we excluded this case earlier on
1050 when Unknown_Pragma
=>
1051 raise Program_Error
;
1057 --------------------
1058 -- Error Handling --
1059 --------------------
1062 when Error_Resync
=>