Subversion Repositories tendra.SVN

Rev

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

Rev Author Line No. Line
2 7u83 1
/*
2
    Copyright (c) 1993 Open Software Foundation, Inc.
3
 
4
 
5
    All Rights Reserved
6
 
7
 
8
    Permission to use, copy, modify, and distribute this software
9
    and its documentation for any purpose and without fee is hereby
10
    granted, provided that the above copyright notice appears in all
11
    copies and that both the copyright notice and this permission
12
    notice appear in supporting documentation.
13
 
14
 
15
    OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING
16
    ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
17
    PARTICULAR PURPOSE.
18
 
19
 
20
    IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
21
    CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22
    LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
23
    NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
24
    WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
*/
26
 
27
/*
28
    		 Crown Copyright (c) 1997
29
 
30
    This TenDRA(r) Computer Program is subject to Copyright
31
    owned by the United Kingdom Secretary of State for Defence
32
    acting through the Defence Evaluation and Research Agency
33
    (DERA).  It is made available to Recipients with a
34
    royalty-free licence for its use, reproduction, transfer
35
    to other parties and amendment for any purpose not excluding
36
    product development provided that any such use et cetera
37
    shall be deemed to be acceptance of the following conditions:-
38
 
39
        (1) Its Recipients shall ensure that this Notice is
40
        reproduced upon any copies or amended versions of it;
41
 
42
        (2) Any amended version of it shall be clearly marked to
43
        show both the nature of and the organisation responsible
44
        for the relevant amendment or amendments;
45
 
46
        (3) Its onward transfer from a recipient to another
47
        party shall be deemed to be that party's acceptance of
48
        these conditions;
49
 
50
        (4) DERA gives no warranty or assurance as to its
51
        quality or suitability for any purpose and DERA accepts
52
        no liability whatsoever in relation to any use to which
53
        it may be put.
54
*/
55
 
56
 
57
 
58
/**********************************************************************
59
$Author: release $
60
$Date: 1998/03/16 11:25:35 $
61
$Revision: 1.4 $
62
$Log: config.h,v $
63
 * Revision 1.4  1998/03/16  11:25:35  release
64
 * Modifications prior to version 4.1.2.
65
 *
66
 * Revision 1.3  1998/02/04  15:48:34  release
67
 * Added OSF copyright message.
68
 *
69
 * Revision 1.2  1998/02/04  10:43:51  release
70
 * Changes during testing.
71
 *
72
 * Revision 1.1.1.1  1998/01/17  15:55:58  release
73
 * First version to be checked into rolling release.
74
 *
75
 * Revision 1.2  1996/10/04  16:00:03  pwe
76
 * add banners and mod for PWE ownership
77
 *
78
**********************************************************************/
79
 
80
 
81
#ifndef CONFIG_H
82
#define CONFIG_H		1
83
 
84
/* The AIX cc compiler is weird */
85
#ifdef _AIX
86
#ifndef FS_STDC_HASH
87
#define FS_STDC_HASH		1
88
#endif
89
#endif
90
 
91
#include "ossg_api.h"
92
#include "ossg.h"
93
 
94
#ifndef FS_LITTLE_ENDIAN
95
#define FS_LITTLE_ENDIAN	0
96
#endif
97
 
98
#define	hasproto		1
99
 
100
 
101
/* define target */
102
 
103
#define ispower			1
104
#define isvax			0
105
#define ismips			0
106
#define is68000			0
107
#define is80x86			0
108
#define issparc			0
109
 
110
#define issco			0
111
 
112
 
113
#define istrans			1	/* to get sym_number field of dec_t in
114
					   "construct/installtypes.h" */
115
 
116
 
117
/* define compilation options (bools) */
118
 
119
					/* Meaning when option set (1) */
120
					/* =========================== */
121
#define check_shape		1	/* Check shape-correctness */
122
#define dont_unpad_apply	1	/* Careful with procedure results */
123
#define has_byte_ops		0	/* Have byte opertions */
124
#define has_byte_regs		0	/* Have byte registers */
125
#define has_neg_shift		0	/* Have negative shifts */
126
#define has_setcc		0	/* Use scc */
127
#define little_end		0	/* Little endian */
128
#define load_ptr_pars		0	/* Inline ptr parameters */
129
#define only_inline_static	0	/* Only inline static procedures */
130
#define only_lengthen_ops	0	/* Avoid byte registers */
131
#define remove_zero_offsets	1	/* Remove zero offsets */
132
#define replace_compound	1	/* Replace make_compound by assigns */
133
#define shift_is_byte		0	/* Shift count is 8-bit */
134
#define special_fns		1	/* Look for special functions */
135
#define substitute_params	1	/* Substitute parameters when inlining */
136
#define temp_mips		0	/* Need a mips hack */
137
#define has64bits               0
138
 
139
#define	target_dbl_maxexp	308	/* Maximum exp for floating_variety */
140
 
141
/* foralls config */
142
#define remove_unused_counters  0
143
#define remove_unused_index_counters 1
144
 
145
#define good_index_factor(f)    1
146
#define good_pointer_factor(f)  0
147
 
148
/* case opts config */
149
 
150
#define jump_table_density      60/* between 0 and 100 */
151
#define min_jump_table_size     10
152
#define max_jump_table_size     100
153
#define min_no_of_default_destinations 3
154
#if 0
155
#define non_default_entries     4
156
#define non_default_destinations 3
157
#endif
158
#define do_case_transforms      1
159
/* complex numbers */
160
#define substitute_complex      1
161
#define has_bitfield_ops        0
162
/* div 0 implemented */
163
#define div0_implemented        1
164
 
165
#define target_system           "RS6000 / POWERPC"
166
 
167
#define POWERPC_CODE            1
168
#define RS6000_CODE             2
169
#define COMMON_CODE             0
170
extern int architecture;
171
 
172
#define NO_ERROR_JUMP           0
173
#define value_of_null           0
174
#define has_rotate              0
175
 
176
#define no_trap_on_nil_contents 1
177
 
178
/* For a general proc 4 parameters are passed in t-regs R_3 -- R_6 */
179
#define GENERAL_PROC_PARAM_REGS 4
180
/* for a normal proc by ABI 8 params must be passed in t-regs R_3 -- R_10 */
181
#define PROC_PARAM_REGS         8
182
 
183
#define HAS_MAGIC               1
184
 
185
 
186
/* In an ideal world REGISTER_SAFETY_NUMBER would be zero */
187
/* It is a measure of how bad needscan is */
188
#define REGISTER_SAFETY_NUMBER 2
189
/* It represents the number of t-regs available if needscan gets it wrong */
190
#define promote_pars
191
#define DO_DYNAMIC_INITIALISATION
192
#endif