Subversion Repositories tendra.SVN

Rev

Rev 5 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
6 7u83 2
 * Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>.
3
 * All rights reserved.
4
 *
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions are met:
7
 *
8
 * 1. Redistributions of source code must retain the above copyright notice,
9
 *    this list of conditions and the following disclaimer.
10
 * 2. Redistributions in binary form must reproduce the above copyright notice,
11
 *    this list of conditions and the following disclaimer in the documentation
12
 *    and/or other materials provided with the distribution.
13
 * 3. Neither the name of The TenDRA Project nor the names of its contributors
14
 *    may be used to endorse or promote products derived from this software
15
 *    without specific, prior written permission.
16
 *
17
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
18
 * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
21
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22
 * EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
 *
29
 * $Id$
30
 */
31
/*
2 7u83 32
    		 Crown Copyright (c) 1997
6 7u83 33
 
2 7u83 34
    This TenDRA(r) Computer Program is subject to Copyright
35
    owned by the United Kingdom Secretary of State for Defence
36
    acting through the Defence Evaluation and Research Agency
37
    (DERA).  It is made available to Recipients with a
38
    royalty-free licence for its use, reproduction, transfer
39
    to other parties and amendment for any purpose not excluding
40
    product development provided that any such use et cetera
41
    shall be deemed to be acceptance of the following conditions:-
6 7u83 42
 
2 7u83 43
        (1) Its Recipients shall ensure that this Notice is
44
        reproduced upon any copies or amended versions of it;
6 7u83 45
 
2 7u83 46
        (2) Any amended version of it shall be clearly marked to
47
        show both the nature of and the organisation responsible
48
        for the relevant amendment or amendments;
6 7u83 49
 
2 7u83 50
        (3) Its onward transfer from a recipient to another
51
        party shall be deemed to be that party's acceptance of
52
        these conditions;
6 7u83 53
 
2 7u83 54
        (4) DERA gives no warranty or assurance as to its
55
        quality or suitability for any purpose and DERA accepts
56
        no liability whatsoever in relation to any use to which
57
        it may be put.
58
*/
59
 
60
 
61
/*
62
			    VERSION INFORMATION
63
			    ===================
64
 
65
--------------------------------------------------------------------------
66
$Header: /u/g/release/CVSROOT/Source/src/installers/sparc/solaris/dw2_config.h,v 1.4 1998/03/15 16:00:50 pwe Exp $
67
--------------------------------------------------------------------------
68
$Log: dw2_config.h,v $
69
 * Revision 1.4  1998/03/15  16:00:50  pwe
70
 * regtrack dwarf dagnostics added
71
 *
72
 * Revision 1.3  1998/03/11  11:04:05  pwe
73
 * DWARF optimisation info
74
 *
75
 * Revision 1.2  1998/02/18  11:22:29  pwe
76
 * test corrections
77
 *
78
 * Revision 1.1.1.1  1998/01/17  15:55:53  release
79
 * First version to be checked into rolling release.
80
 *
81
 * Revision 1.8  1998/01/09  15:00:05  pwe
82
 * prep restructure
83
 *
84
 * Revision 1.7  1997/12/04  19:54:49  pwe
85
 * ANDF-DE V1.9
86
 *
87
 * Revision 1.6  1997/10/28  10:19:24  pwe
88
 * extra diags
89
 *
90
 * Revision 1.5  1997/10/23  09:33:41  pwe
91
 * prep extra_diags
92
 *
93
 * Revision 1.4  1997/10/10  18:33:32  pwe
94
 * prep ANDF-DE revision
95
 *
96
 * Revision 1.3  1997/08/23  13:55:16  pwe
97
 * initial ANDF-DE
98
 *
99
 * Revision 1.2  1997/05/02  11:09:28  pwe
100
 * dwarf2 re return address offset
101
 *
102
 * Revision 1.1  1997/04/17  12:00:27  pwe
103
 * dwarf2 support
104
 *
105
--------------------------------------------------------------------------
106
*/
107
 
108
#ifndef dw2_config_key
109
#define dw2_config_key 1
110
 
111
#include "config.h"
112
#include "common_types.h"
113
#include "out.h"
114
 
115
 
116
#ifdef NEEDS_DEBUG_ALIGN
117
 
6 7u83 118
#define DWARF_MOD_VERSION	(DWARF_VERSION * 101)
119
#define DW_CIE_MOD_VERSION	(DW_CIE_VERSION * 101)
2 7u83 120
 
121
#else
122
 
123
#define DWARF_MOD_VERSION	DWARF_VERSION
124
#define DW_CIE_MOD_VERSION	DW_CIE_VERSION
125
 
126
#endif
127
 
128
 
129
extern long instr_count;
130
extern long fde_count;
131
 
6 7u83 132
#define count_ins(n)		if (instr_count >= 0)instr_count += n; \
133
				if (fde_count >= 0)fde_count += n
2 7u83 134
#define lost_count_ins()	instr_count = fde_count = -1
135
#define any_output		instr_count
136
#define reset_any_output	instr_count = 0
137
 
138
 
6 7u83 139
#define d_outnl()outnl()
2 7u83 140
 
6 7u83 141
extern void out8(void);
142
extern void out16(void);
143
extern void out32(void);
144
extern void dot_align(long n);
2 7u83 145
 
6 7u83 146
extern void out_string(char * s);
147
extern void start_string(char * s);
148
extern void end_string(void);
149
extern void enter_section(char * s);
150
extern void exit_section(void);
151
extern void outnl_comment(char * s);
152
extern void outnl_comment_i(char * s, long i);
153
extern void out_dwf_label(long l, int set);
154
extern void out_code_label(long l);
155
extern void out_dwf_dist_to_label(long l);
156
extern void out_dwf_labdiff(long lo, long hi);
157
extern void out_ext_label(char * s);
158
extern void out_producer(char * s);
2 7u83 159
 
6 7u83 160
extern int dw_is_const(exp e);
161
extern exp dw_has_location(exp e);
162
extern void dw2_locate_exp(exp e, int locate_const, int cx);
163
extern void dw2_prepare_locate(exp id);
164
extern void dw_at_procdetails(void);
165
extern void dw2_locate_result(shape sha);
166
extern void dw2_locate_val(dg_where v);
167
extern void dw2_offset_exp(exp e);
168
extern void dw2_cie(void);
2 7u83 169
 
6 7u83 170
extern void dw2_data_aranges(void);
171
extern void trace_dw_branch_exits(exp e);
2 7u83 172
 
6 7u83 173
extern int dw_loc_equivalence(exp a, exp b);
174
extern void dw_allocated(dg_name nm, exp id);
175
extern void dw_deallocated(dg_name nm);
176
extern void dw_all_deallocated(void);
2 7u83 177
 
178
 
179
extern long dwarf_lab_num;
180
 
181
#define min_instr_size 4
182
#define framecode_factor 4
183
#define framedata_factor 4
6 7u83 184
#define next_dwarf_label()(++dwarf_lab_num)
2 7u83 185
 
186
#define dw_line_base -2	/* small negative for short loop end-conditions */
187
#define dw_line_range 16
188
 
189
 
6 7u83 190
extern void note_data(int ll, bool ro);
2 7u83 191
 
192
 
193
#endif