]>
Commit | Line | Data |
---|---|---|
c55dcc7d FF |
1 | /* Configuration for GNU C-compiler for BeOS host. |
2 | Copyright (C) 1997 Free Software Foundation, Inc. | |
3 | Contributed by Fred Fish (fnf@cygnus.com), based on xm-rs6000.h | |
4 | by Richard Kenner (kenner@vlsi1.ultra.nyu.edu). | |
5 | ||
6 | ||
7 | This file is part of GNU CC. | |
8 | ||
9 | GNU CC is free software; you can redistribute it and/or modify | |
10 | it under the terms of the GNU General Public License as published by | |
11 | the Free Software Foundation; either version 2, or (at your option) | |
12 | any later version. | |
13 | ||
14 | GNU CC is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
20 | along with GNU CC; see the file COPYING. If not, write to | |
21 | the Free Software Foundation, 59 Temple Place - Suite 330, | |
22 | Boston, MA 02111-1307, USA. */ | |
23 | ||
24 | ||
25 | /* #defines that need visibility everywhere. */ | |
26 | ||
27 | #define FALSE 0 | |
28 | #define TRUE 1 | |
29 | ||
30 | /* This describes the machine the compiler is hosted on. */ | |
31 | ||
32 | #define HOST_BITS_PER_CHAR 8 | |
33 | #define HOST_BITS_PER_SHORT 16 | |
34 | #define HOST_BITS_PER_INT 32 | |
35 | #define HOST_BITS_PER_LONG 32 | |
36 | #define HOST_BITS_PER_LONGLONG 64 | |
37 | ||
38 | #define HOST_WORDS_BIG_ENDIAN | |
39 | ||
40 | /* target machine dependencies. | |
41 | tm.h is a symbolic link to the actual target specific file. */ | |
42 | ||
43 | #include "tm.h" | |
44 | ||
45 | /* Arguments to use with `exit'. */ | |
46 | ||
47 | #define SUCCESS_EXIT_CODE 0 | |
48 | #define FATAL_EXIT_CODE 33 | |
49 | ||
50 | /* Use the C alloca and use only int bitfields. */ | |
51 | ||
52 | #define USE_C_ALLOCA | |
53 | extern void *alloca (); | |
54 | #define ONLY_INT_FIELDS | |
55 | ||
56 | /* use ANSI/SYSV style byte manipulation routines instead of BSD ones */ | |
57 | ||
58 | #undef bcopy | |
59 | #define bcopy(s,d,n) memmove((d),(s),(n)) | |
60 | #undef bzero | |
61 | #define bzero(d,n) memset((d),0,(n)) | |
62 | #undef bcmp | |
63 | #define bcmp(l,r,n) memcmp((l),(r),(n)) | |
64 | #undef index | |
65 | #define index strchr | |
66 | #undef rindex | |
67 | #define rindex strrchr | |
68 | ||
69 | /* BeOS is closer to USG than BSD */ | |
70 | ||
71 | #define USG | |
72 | ||
73 | /* Define various things that the BeOS host has. */ | |
74 | ||
3dde7044 | 75 | #ifndef HAVE_VPRINTF |
c55dcc7d | 76 | #define HAVE_VPRINTF |
3dde7044 FF |
77 | #endif |
78 | #ifndef HAVE_PUTENV | |
c55dcc7d | 79 | #define HAVE_PUTENV |
3dde7044 FF |
80 | #endif |
81 | #ifndef HAVE_ATEXIT | |
c55dcc7d | 82 | #define HAVE_ATEXIT |
3dde7044 FF |
83 | #endif |
84 | #ifndef HAVE_RENAME | |
c55dcc7d | 85 | #define HAVE_RENAME |
3dde7044 | 86 | #endif |
c55dcc7d FF |
87 | |
88 | #define STDC_HEADERS 1 | |
89 | ||
90 | /* STANDARD_INCLUDE_DIR is the equivalent of "/usr/include" on UNIX. */ | |
91 | ||
92 | #define STANDARD_INCLUDE_DIR "/boot/develop/headers/posix" | |
93 | ||
94 | /* SYSTEM_INCLUDE_DIR is the location for system specific, non-POSIX headers. */ | |
95 | ||
96 | #define SYSTEM_INCLUDE_DIR "/boot/develop/headers/be" | |
97 |