Remove some compile time warnings about duplicate definitions.
[official-gcc.git] / gcc / ada / s-maccod.ads
blobcecdb082dc8a49b15e0d0bb6a67d1f1a7074c0d9
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S Y S T E M . M A C H I N E _ C O D E --
6 -- --
7 -- S p e c --
8 -- --
9 -- $Revision: 1.9 $
10 -- --
11 -- Copyright (C) 1992-2000 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 -- As a special exception, if other files instantiate generics from this --
25 -- unit, or you link this unit with other files to produce an executable, --
26 -- this unit does not by itself cause the resulting executable to be --
27 -- covered by the GNU General Public License. This exception does not --
28 -- however invalidate any other reasons why the executable file might be --
29 -- covered by the GNU Public License. --
30 -- --
31 -- GNAT was originally developed by the GNAT team at New York University. --
32 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
33 -- --
34 ------------------------------------------------------------------------------
36 -- This package provides machine code support, both for instrinsic machine
37 -- operations, and also for machine code statements. See GNAT documentation
38 -- for full details.
40 package System.Machine_Code is
41 pragma Pure (Machine_Code);
43 type Asm_Input_Operand is private;
44 type Asm_Output_Operand is private;
45 -- These types are never used directly, they are declared only so that
46 -- the calls to Asm are type correct according to Ada semantic rules.
48 No_Input_Operands : constant Asm_Input_Operand;
49 No_Output_Operands : constant Asm_Output_Operand;
51 type Asm_Input_Operand_List is
52 array (Integer range <>) of Asm_Input_Operand;
54 type Asm_Output_Operand_List is
55 array (Integer range <>) of Asm_Output_Operand;
57 type Asm_Insn is private;
58 -- This type is not used directly. It is declared only so that the
59 -- aggregates used in code statements are type correct by Ada rules.
61 procedure Asm (
62 Template : String;
63 Outputs : Asm_Output_Operand_List;
64 Inputs : Asm_Input_Operand_List;
65 Clobber : String := "";
66 Volatile : Boolean := False);
68 procedure Asm (
69 Template : String;
70 Outputs : Asm_Output_Operand := No_Output_Operands;
71 Inputs : Asm_Input_Operand_List;
72 Clobber : String := "";
73 Volatile : Boolean := False);
75 procedure Asm (
76 Template : String;
77 Outputs : Asm_Output_Operand_List;
78 Inputs : Asm_Input_Operand := No_Input_Operands;
79 Clobber : String := "";
80 Volatile : Boolean := False);
82 procedure Asm (
83 Template : String;
84 Outputs : Asm_Output_Operand := No_Output_Operands;
85 Inputs : Asm_Input_Operand := No_Input_Operands;
86 Clobber : String := "";
87 Volatile : Boolean := False);
89 function Asm (
90 Template : String;
91 Outputs : Asm_Output_Operand_List;
92 Inputs : Asm_Input_Operand_List;
93 Clobber : String := "";
94 Volatile : Boolean := False)
95 return Asm_Insn;
97 function Asm (
98 Template : String;
99 Outputs : Asm_Output_Operand := No_Output_Operands;
100 Inputs : Asm_Input_Operand_List;
101 Clobber : String := "";
102 Volatile : Boolean := False)
103 return Asm_Insn;
105 function Asm (
106 Template : String;
107 Outputs : Asm_Output_Operand_List;
108 Inputs : Asm_Input_Operand := No_Input_Operands;
109 Clobber : String := "";
110 Volatile : Boolean := False)
111 return Asm_Insn;
113 function Asm (
114 Template : String;
115 Outputs : Asm_Output_Operand := No_Output_Operands;
116 Inputs : Asm_Input_Operand := No_Input_Operands;
117 Clobber : String := "";
118 Volatile : Boolean := False)
119 return Asm_Insn;
121 pragma Import (Intrinsic, Asm);
123 private
125 type Asm_Input_Operand is new Integer;
126 type Asm_Output_Operand is new Integer;
127 type Asm_Insn is new Integer;
128 -- All three of these types are dummy types, to meet the requirements of
129 -- type consistenty. No values of these types are ever referenced.
131 No_Input_Operands : constant Asm_Input_Operand := 0;
132 No_Output_Operands : constant Asm_Output_Operand := 0;
134 end System.Machine_Code;