Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line -... Line 1...
-
 
1
/*
-
 
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
 */
1
/*
31
/*
2
    		 Crown Copyright (c) 1997
32
    		 Crown Copyright (c) 1997
3
    
33
 
4
    This TenDRA(r) Computer Program is subject to Copyright
34
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
35
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
36
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
37
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
38
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
39
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
40
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
41
    shall be deemed to be acceptance of the following conditions:-
12
    
42
 
13
        (1) Its Recipients shall ensure that this Notice is
43
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
44
        reproduced upon any copies or amended versions of it;
15
    
45
 
16
        (2) Any amended version of it shall be clearly marked to
46
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
47
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
48
        for the relevant amendment or amendments;
19
    
49
 
20
        (3) Its onward transfer from a recipient to another
50
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
51
        party shall be deemed to be that party's acceptance of
22
        these conditions;
52
        these conditions;
23
    
53
 
24
        (4) DERA gives no warranty or assurance as to its
54
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
55
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
56
        no liability whatsoever in relation to any use to which
27
        it may be put.
57
        it may be put.
28
*/
58
*/
Line 80... Line 110...
80
 * Revision 1.6  1995/09/13  08:17:49  john
110
 * Revision 1.6  1995/09/13  08:17:49  john
81
 * *** empty log message ***
111
 * *** empty log message ***
82
 *
112
 *
83
 * Revision 1.5  1995/07/20  15:39:40  john
113
 * Revision 1.5  1995/07/20  15:39:40  john
84
 * added definition of diagnose_registers
114
 * added definition of diagnose_registers
85
 *
115
 *
86
 * Revision 1.4  1995/07/14  16:30:06  john
116
 * Revision 1.4  1995/07/14  16:30:06  john
87
 * Added new flag
117
 * Added new flag
88
 *
118
 *
89
 * Revision 1.3  1995/06/27  08:47:05  john
119
 * Revision 1.3  1995/06/27  08:47:05  john
90
 * Added has_rotate definition
120
 * Added has_rotate definition
Line 117... Line 147...
117
 * Revision 1.1  1994/05/03  14:50:09  djch
147
 * Revision 1.1  1994/05/03  14:50:09  djch
118
 * Initial revision
148
 * Initial revision
119
 *
149
 *
120
 * Revision 1.5  94/02/21  16:10:35  16:10:35  ra (Robert Andrews)
150
 * Revision 1.5  94/02/21  16:10:35  16:10:35  ra (Robert Andrews)
121
 * Move compiler stuff into compiler.h.
151
 * Move compiler stuff into compiler.h.
122
 * 
152
 *
123
 * Revision 1.4  93/09/27  14:40:48  14:40:48  ra (Robert Andrews)
153
 * Revision 1.4  93/09/27  14:40:48  14:40:48  ra (Robert Andrews)
124
 * Make use_long_double and target_dbl_maxexp depend on the value of
154
 * Make use_long_double and target_dbl_maxexp depend on the value of
125
 * SYSV_ABI.  Introduce use_link_stuff to control output of System V
155
 * SYSV_ABI.  Introduce use_link_stuff to control output of System V
126
 * .ident and .weak directives.
156
 * .ident and .weak directives.
127
 * 
157
 *
128
 * Revision 1.3  93/08/18  11:09:18  11:09:18  ra (Robert Andrews)
158
 * Revision 1.3  93/08/18  11:09:18  11:09:18  ra (Robert Andrews)
129
 * Changed method of specifying UNIX_SV and SOLARIS versions (just define
159
 * Changed method of specifying UNIX_SV and SOLARIS versions (just define
130
 * these macros).
160
 * these macros).
131
 * 
161
 *
132
 * Revision 1.2  93/07/08  18:18:57  18:18:57  ra (Robert Andrews)
162
 * Revision 1.2  93/07/08  18:18:57  18:18:57  ra (Robert Andrews)
133
 * Added keep_PIC_vars, necessary for position independent code.
163
 * Added keep_PIC_vars, necessary for position independent code.
134
 * 
164
 *
135
 * Revision 1.1  93/06/24  14:58:06  14:58:06  ra (Robert Andrews)
165
 * Revision 1.1  93/06/24  14:58:06  14:58:06  ra (Robert Andrews)
136
 * Initial revision
166
 * Initial revision
137
 * 
167
 *
138
--------------------------------------------------------------------------
168
--------------------------------------------------------------------------
139
*/
169
*/
140
 
170
 
141
 
171
 
142
#ifndef CONFIG_INCLUDED
172
#ifndef CONFIG_INCLUDED
Line 166... Line 196...
166
 
196
 
167
 
197
 
168
#ifdef __GNUC__
198
#ifdef __GNUC__
169
#ifdef __sun__
199
#ifdef __sun__
170
/* SunOS 4.1.3 doesn't have these in stdio.h */
200
/* SunOS 4.1.3 doesn't have these in stdio.h */
171
extern int fputs PROTO_S((const char *, FILE*));
201
extern int fputs(const char *, FILE*);
172
extern int fputc PROTO_S((int , FILE*));
202
extern int fputc(int , FILE*);
173
extern int fprintf PROTO_W((FILE*,const char*, ...));
203
extern int fprintf(FILE*,const char*, ...);
174
extern size_t fread PROTO_S((void*, size_t, size_t, FILE*));
204
extern size_t fread(void*, size_t, size_t, FILE*);
175
extern int fflush PROTO_S((FILE *));
205
extern int fflush(FILE *);
176
extern int fclose PROTO_S((FILE *));
206
extern int fclose(FILE *);
177
extern int fgetc PROTO_S((FILE *));
207
extern int fgetc(FILE *);
178
extern int remove PROTO_S((const char *));
208
extern int remove(const char *);
179
extern void setbuf PROTO_S((FILE *, char *));
209
extern void setbuf(FILE *, char *);
180
#endif
210
#endif
181
#endif
211
#endif
182
 
212
 
183
 
213
 
184
/* Settings for SunOS 4 and Solaris 1 */
214
/* Settings for SunOS 4 and Solaris 1 */
Line 203... Line 233...
203
/* CONFIGURATION OPTIONS */
233
/* CONFIGURATION OPTIONS */
204
 
234
 
205
#define GENCOMPAT		1
235
#define GENCOMPAT		1
206
 
236
 
207
 
237
 
208
#define check_shape		1  /* interaction with parameter alignments is 
238
#define check_shape		1  /* interaction with parameter alignments is
209
				      now allowed for in install_fns */
239
				      now allowed for in install_fns */
210
#define dont_unpad_apply	1
240
#define dont_unpad_apply	1
211
#define has_byte_ops		0
241
#define has_byte_ops		0
212
#define has_byte_regs		0
242
#define has_byte_regs		0
213
#define has_neg_shift		0
243
#define has_neg_shift		0
Line 230... Line 260...
230
 
260
 
231
/* foralls config */
261
/* foralls config */
232
#define remove_unused_counters 0
262
#define remove_unused_counters 0
233
#define remove_unused_index_counters 1
263
#define remove_unused_index_counters 1
234
 
264
 
235
#define good_index_factor(f) 0
265
#define good_index_factor(f)0
236
#define good_pointer_factor(f) 1
266
#define good_pointer_factor(f)1
237
 
267
 
238
#if SYSV_ABI
268
#if SYSV_ABI
239
#define target_dbl_maxexp	16384
269
#define target_dbl_maxexp	16384
240
#define use_long_double		1
270
#define use_long_double		1
241
#else
271
#else
Line 253... Line 283...
253
#define has_bitfield_ops 0
283
#define has_bitfield_ops 0
254
 
284
 
255
#define has_rotate 0
285
#define has_rotate 0
256
 
286
 
257
/* This shouldn't really be solaris specific.  It depends on whether or not
287
/* This shouldn't really be solaris specific.  It depends on whether or not
258
   the processor correctly implements the sdivcc and udivcc instructions. 
288
   the processor correctly implements the sdivcc and udivcc instructions.
259
   These are part of the SPARC v8 architecture but their implementation
289
   These are part of the SPARC v8 architecture but their implementation
260
   (via software) on some implementations does not meet the specification
290
   (via software) on some implementations does not meet the specification
261
   with respect to overflow detection.
291
   with respect to overflow detection.
262
   */
292
   */
263
#define DIV_SETS_CC 0
293
#define DIV_SETS_CC 0
Line 267... Line 297...
267
#define HAS_MAGIC 1
297
#define HAS_MAGIC 1
268
 
298
 
269
#define promote_pars 1
299
#define promote_pars 1
270
 
300
 
271
	/* condition for shape to be treated as a struct */
301
	/* condition for shape to be treated as a struct */
272
#define sparccpd(s) (name(s) == cpdhd || name(s) == nofhd || \
302
#define sparccpd(s)(name(s) == cpdhd || name(s) == nofhd || \
273
			name(s) == shcomplexhd || shape_size(s)>64 || \
303
			name(s) == shcomplexhd || shape_size(s) >64 || \
274
			name(s) == u64hd || name(s) == s64hd)
304
			name(s) == u64hd || name(s) == s64hd)
275
 
305
 
276
#endif /* CONFIG_INCLUDED */
306
#endif /* CONFIG_INCLUDED */
277
 
307
 
278
 
308