]>
Commit | Line | Data |
---|---|---|
82756397 RK |
1 | /* Definitions of target machine for GNU compiler, |
2 | for IBM RS/6000 POWER running AIX version 4.1. | |
5de601cf | 3 | Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003 |
4592bdcb | 4 | Free Software Foundation, Inc. |
b9ae3471 | 5 | Contributed by David Edelsohn (edelsohn@gnu.org). |
82756397 | 6 | |
5de601cf | 7 | This file is part of GCC. |
82756397 | 8 | |
5de601cf NC |
9 | GCC is free software; you can redistribute it and/or modify it |
10 | under the terms of the GNU General Public License as published | |
11 | by the Free Software Foundation; either version 2, or (at your | |
12 | option) any later version. | |
82756397 | 13 | |
5de601cf NC |
14 | GCC is distributed in the hope that it will be useful, but WITHOUT |
15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
16 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
17 | License for more details. | |
82756397 | 18 | |
5de601cf NC |
19 | You should have received a copy of the GNU General Public License |
20 | along with GCC; see the file COPYING. If not, write to the | |
21 | Free Software Foundation, 59 Temple Place - Suite 330, Boston, | |
22 | MA 02111-1307, USA. */ | |
82756397 | 23 | |
9ebbca7d GK |
24 | #undef SUBSUBTARGET_SWITCHES |
25 | #define SUBSUBTARGET_SWITCHES \ | |
f6bf7de2 | 26 | {"pe", 0, \ |
047142d3 | 27 | N_("Support message passing with the Parallel Environment") }, |
82756397 RK |
28 | |
29 | #undef ASM_SPEC | |
841faeed | 30 | #define ASM_SPEC "-u %(asm_cpu)" |
8e3f41e7 | 31 | |
a260abc9 DE |
32 | #undef ASM_DEFAULT_SPEC |
33 | #define ASM_DEFAULT_SPEC "-mcom" | |
34 | ||
7990b46f MK |
35 | #undef TARGET_OS_CPP_BUILTINS |
36 | #define TARGET_OS_CPP_BUILTINS() \ | |
37 | do \ | |
38 | { \ | |
39 | builtin_define ("_IBMR2"); \ | |
40 | builtin_define ("_POWER"); \ | |
41 | builtin_define ("_AIX"); \ | |
42 | builtin_define ("_AIX32"); \ | |
43 | builtin_define ("_AIX41"); \ | |
44 | builtin_define ("_LONG_LONG"); \ | |
45 | builtin_assert ("system=unix"); \ | |
46 | builtin_assert ("system=aix"); \ | |
47 | } \ | |
48 | while (0) | |
8e3f41e7 MM |
49 | |
50 | #undef CPP_SPEC | |
6034e327 | 51 | #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\ |
d6121128 | 52 | %{ansi: -D_ANSI_C_SOURCE}\ |
6034e327 | 53 | %{mpe: -I/usr/lpp/ppe.poe/include}\ |
4c4eb375 | 54 | %{pthread: -D_THREAD_SAFE}" |
841faeed | 55 | |
8e3f41e7 MM |
56 | #undef TARGET_DEFAULT |
57 | #define TARGET_DEFAULT MASK_NEW_MNEMONICS | |
58 | ||
59 | #undef PROCESSOR_DEFAULT | |
60 | #define PROCESSOR_DEFAULT PROCESSOR_PPC601 | |
61 | ||
62 | /* Define this macro as a C expression for the initializer of an | |
63 | array of string to tell the driver program which options are | |
64 | defaults for this target and thus do not need to be handled | |
65 | specially when using `MULTILIB_OPTIONS'. | |
66 | ||
67 | Do not define this macro if `MULTILIB_OPTIONS' is not defined in | |
68 | the target makefile fragment or if none of the options listed in | |
69 | `MULTILIB_OPTIONS' are set by default. *Note Target Fragment::. */ | |
70 | ||
71 | #undef MULTILIB_DEFAULTS | |
72 | #define MULTILIB_DEFAULTS { "mcpu=common" } | |
a707a0e8 | 73 | |
6034e327 DE |
74 | #undef LIB_SPEC |
75 | #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\ | |
76 | %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}}\ | |
77 | %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ | |
f6bf7de2 DE |
78 | %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\ |
79 | %{!pthread: -lc}" | |
6034e327 | 80 | |
a707a0e8 RK |
81 | #undef LINK_SPEC |
82 | #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ | |
7509c759 | 83 | %{static:-bnso %(link_syscalls) } %{!shared: %{g*: %(link_libg) }}\ |
42eaff6f | 84 | %{shared:-bM:SRE %{!e:-bnoentry}}" |
b6c9286a | 85 | |
6034e327 DE |
86 | #undef STARTFILE_SPEC |
87 | #define STARTFILE_SPEC "%{!shared:\ | |
88 | %{mpe:%{pg:/usr/lpp/ppe.poe/lib/gcrt0.o}\ | |
89 | %{!pg:%{p:/usr/lpp/ppe.poe/lib/mcrt0.o}\ | |
90 | %{!p:/usr/lpp/ppe.poe/lib/crt0.o}}}\ | |
91 | %{!mpe:\ | |
f6bf7de2 DE |
92 | %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\ |
93 | %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}" | |
6034e327 | 94 | |
949ea356 DE |
95 | /* AIX 4 uses PowerPC nop (ori 0,0,0) instruction as call glue for PowerPC |
96 | and "cror 31,31,31" for POWER architecture. */ | |
97 | ||
98 | #undef RS6000_CALL_GLUE | |
99 | #define RS6000_CALL_GLUE "{cror 31,31,31|nop}" | |
100 |