OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / ada / back_end.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                             B A C K _ E N D                              --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --                                                                          --
10 --          Copyright (C) 1992-2001 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 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
25 --                                                                          --
26 ------------------------------------------------------------------------------
27
28 --  Call the back end with all the information needed. Also contains other
29 --  back-end specific interfaces required by the front end.
30
31 package Back_End is
32
33    type Back_End_Mode_Type is (
34       Generate_Object,
35       --  Full back end operation with object file generation
36
37       Declarations_Only,
38       --  Partial back end operation with no object file generation. In this
39       --  mode the only useful action performed by gigi is to process all
40       --  declarations issuing any error messages (in partcicular those to
41       --  do with rep clauses), and to back annotate representation info.
42
43       Skip);
44       --  Back end call is skipped (syntax only, or errors found)
45
46    pragma Convention (C, Back_End_Mode_Type);
47    for Back_End_Mode_Type use (0, 1, 2);
48
49    procedure Call_Back_End (Mode : Back_End_Mode_Type);
50    --  Call back end, i.e. make call to driver traversing the tree and
51    --  outputting code. This call is made with all tables locked.
52    --  The back end is responsible for unlocking any tables it may need
53    --  to change, and locking them again before returning.
54
55    procedure Scan_Compiler_Arguments;
56    --  Acquires command-line parameters passed to the compiler and processes
57    --  them. Calls Scan_Front_End_Switches for any front-end switches
58    --  encountered.
59    --
60    --  The processing of arguments is private to the back end, since
61    --  the way of acquiring the arguments as well as the set of allowable
62    --  back end switches is different depending on the particular back end
63    --  being used.
64    --
65    --  Any processed switches that influence the result of a compilation
66    --  must be added to the Compilation_Arguments table.
67
68 end Back_End;