]>
Commit | Line | Data |
---|---|---|
703c875e MM |
1 | /* Definitions of target machine for GNU compiler. |
2 | Intel 386 (OSF/1 with ELF) version. | |
3 | Copyright (C) 1993 Free Software Foundation, Inc. | |
4 | ||
5 | This file is part of GNU CC. | |
6 | ||
7 | GNU CC is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2, or (at your option) | |
10 | any later version. | |
11 | ||
12 | GNU CC is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GNU CC; see the file COPYING. If not, write to | |
97aadbb9 RK |
19 | the Free Software Foundation, 59 Temple Place - Suite 330, |
20 | Boston, MA 02111-1307, USA. */ | |
703c875e MM |
21 | |
22 | #include "config/i386/osfrose.h" | |
23 | ||
24 | #undef CPP_PREDEFINES | |
8524774e | 25 | #define CPP_PREDEFINES "-DOSF -DOSF1 -Dunix -Asystem(xpg4)" |
703c875e MM |
26 | |
27 | #undef CPP_SPEC | |
1228a9bd | 28 | #define CPP_SPEC "%(cpp_cpu) \ |
1bf3a36e MM |
29 | %{mrose: -D__ROSE__ %{!pic-none: -D__SHARED__}} \ |
30 | %{!mrose: -D__ELF__ %{fpic: -D__SHARED__}} \ | |
6bf1675f MM |
31 | %{mno-underscores: -D__NO_UNDERSCORES__} \ |
32 | %{!mrose: %{!munderscores: -D__NO_UNDERSCORES__}} \ | |
33 | %{.S: %{!ansi:%{!traditional:%{!traditional-cpp:%{!ftraditional: -traditional}}}}} \ | |
34 | %{.S: -D__LANGUAGE_ASSEMBLY %{!ansi:-DLANGUAGE_ASSEMBLY}} \ | |
35 | %{.cc: -D__LANGUAGE_C_PLUS_PLUS} \ | |
36 | %{.cxx: -D__LANGUAGE_C_PLUS_PLUS} \ | |
37 | %{.C: -D__LANGUAGE_C_PLUS_PLUS} \ | |
38 | %{.m: -D__LANGUAGE_OBJECTIVE_C} \ | |
39 | %{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}" | |
703c875e | 40 | |
ee59bdfc | 41 | /* Turn on -pic-extern by default for OSF/rose, -fpic for ELF. */ |
703c875e MM |
42 | #undef CC1_SPEC |
43 | #define CC1_SPEC "\ | |
703c875e | 44 | %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \ |
c18cf4e5 MM |
45 | %{!melf: %{!mrose: -melf }} \ |
46 | %{!mrose: %{!munderscores: %{!mno-underscores: -mno-underscores }} \ | |
47 | %{!mmcount: %{!mno-mcount: %{!mmcount-ptr: -mmcount-ptr }}}} \ | |
48 | %{mrose: %{!mmcount: %{!mno-mcount: %{!mmcount-ptr: -mmcount }}} \ | |
ee59bdfc MM |
49 | %{pic-extern: -mhalf-pic } %{pic-lib: -mhalf-pic } \ |
50 | %{!pic-extern: %{!pic-lib: %{pic-none: -mno-half-pic} %{!pic-none: -mhalf-pic}}} \ | |
51 | %{pic-calls: } %{pic-names*: }}" | |
703c875e MM |
52 | |
53 | #undef ASM_SPEC | |
d304972d | 54 | #define ASM_SPEC "%{v*: -v}" |
703c875e MM |
55 | |
56 | #undef LINK_SPEC | |
3c58aa35 | 57 | #define LINK_SPEC "%{v*: -v} \ |
ae1ac702 | 58 | %{mrose: %{!noshrlib: %{pic-none: -noshrlib} %{!pic-none: -warn_nopic}} \ |
3c58aa35 MM |
59 | %{nostdlib} %{noshrlib} %{glue}} \ |
60 | %{!mrose: %{dy} %{dn} %{glue: } \ | |
cc8187fc MM |
61 | %{h*} %{z*} \ |
62 | %{static:-dn -Bstatic} \ | |
63 | %{shared:-G -dy} \ | |
64 | %{symbolic:-Bsymbolic -G -dy} \ | |
65 | %{G:-G} \ | |
66 | %{!dy: %{!dn: %{!static: %{!shared: %{!symbolic: \ | |
3c58aa35 | 67 | %{noshrlib: -dn } %{pic-none: -dn } \ |
cc8187fc | 68 | %{!noshrlib: %{!pic-none: -dy}}}}}}}}" |
703c875e MM |
69 | |
70 | #undef TARGET_VERSION_INTERNAL | |
71 | #undef TARGET_VERSION | |
72 | ||
73 | #undef I386_VERSION | |
74 | #define I386_VERSION " 80386, ELF objects" | |
75 | ||
76 | #define TARGET_VERSION_INTERNAL(STREAM) fputs (I386_VERSION, STREAM) | |
77 | #define TARGET_VERSION TARGET_VERSION_INTERNAL (stderr) | |
78 | ||
d304972d | 79 | #undef OBJECT_FORMAT_ROSE |