1 /* Definitions of target machine for GNU compiler,
2 for IBM RS/6000 POWER running AIX version 4.1.
3 Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4 Free Software Foundation, Inc.
5 Contributed by David Edelsohn (edelsohn@gnu.org).
7 This file is part of GNU CC.
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)
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.
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. */
25 #undef SUBSUBTARGET_SWITCHES
26 #define SUBSUBTARGET_SWITCHES \
28 N_("Support message passing with the Parallel Environment") },
31 #define ASM_SPEC "-u %(asm_cpu)"
33 #undef ASM_DEFAULT_SPEC
34 #define ASM_DEFAULT_SPEC "-mcom"
36 #undef TARGET_OS_CPP_BUILTINS
37 #define TARGET_OS_CPP_BUILTINS() \
40 builtin_define ("_IBMR2"); \
41 builtin_define ("_POWER"); \
42 builtin_define ("_AIX"); \
43 builtin_define ("_AIX32"); \
44 builtin_define ("_AIX41"); \
45 builtin_define ("_LONG_LONG"); \
46 builtin_assert ("system=unix"); \
47 builtin_assert ("system=aix"); \
52 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
53 %{ansi: -D_ANSI_C_SOURCE}\
54 %{mpe: -I/usr/lpp/ppe.poe/include}\
55 %{pthread: -D_THREAD_SAFE}"
58 #define TARGET_DEFAULT MASK_NEW_MNEMONICS
60 #undef PROCESSOR_DEFAULT
61 #define PROCESSOR_DEFAULT PROCESSOR_PPC601
63 /* Define this macro as a C expression for the initializer of an
64 array of string to tell the driver program which options are
65 defaults for this target and thus do not need to be handled
66 specially when using `MULTILIB_OPTIONS'.
68 Do not define this macro if `MULTILIB_OPTIONS' is not defined in
69 the target makefile fragment or if none of the options listed in
70 `MULTILIB_OPTIONS' are set by default. *Note Target Fragment::. */
72 #undef MULTILIB_DEFAULTS
73 #define MULTILIB_DEFAULTS { "mcpu=common" }
76 #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
77 %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}}\
78 %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
79 %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
83 #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
84 %{static:-bnso %(link_syscalls) } %{!shared: %{g*: %(link_libg) }}\
85 %{shared:-bM:SRE %{!e:-bnoentry}}"
88 #define STARTFILE_SPEC "%{!shared:\
89 %{mpe:%{pg:/usr/lpp/ppe.poe/lib/gcrt0.o}\
90 %{!pg:%{p:/usr/lpp/ppe.poe/lib/mcrt0.o}\
91 %{!p:/usr/lpp/ppe.poe/lib/crt0.o}}}\
93 %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
94 %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
96 /* AIX 4 uses PowerPC nop (ori 0,0,0) instruction as call glue for PowerPC
97 and "cror 31,31,31" for POWER architecture. */
99 #undef RS6000_CALL_GLUE
100 #define RS6000_CALL_GLUE "{cror 31,31,31|nop}"