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"
37 #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_AIX41 \
38 -D_LONG_LONG -Asystem=unix -Asystem=aix"
41 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
42 %{ansi: -D_ANSI_C_SOURCE}\
43 %{mpe: -I/usr/lpp/ppe.poe/include}\
44 %{pthread: -D_THREAD_SAFE}\
47 #undef CPP_DEFAULT_SPEC
48 #define CPP_DEFAULT_SPEC "-D_ARCH_COM"
51 #define TARGET_DEFAULT MASK_NEW_MNEMONICS
53 #undef PROCESSOR_DEFAULT
54 #define PROCESSOR_DEFAULT PROCESSOR_PPC601
56 /* Define this macro as a C expression for the initializer of an
57 array of string to tell the driver program which options are
58 defaults for this target and thus do not need to be handled
59 specially when using `MULTILIB_OPTIONS'.
61 Do not define this macro if `MULTILIB_OPTIONS' is not defined in
62 the target makefile fragment or if none of the options listed in
63 `MULTILIB_OPTIONS' are set by default. *Note Target Fragment::. */
65 #undef MULTILIB_DEFAULTS
66 #define MULTILIB_DEFAULTS { "mcpu=common" }
69 #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
70 %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}}\
71 %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
72 %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
76 #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
77 %{static:-bnso %(link_syscalls) } %{!shared: %{g*: %(link_libg) }}\
78 %{shared:-bM:SRE %{!e:-bnoentry}}"
81 #define STARTFILE_SPEC "%{!shared:\
82 %{mpe:%{pg:/usr/lpp/ppe.poe/lib/gcrt0.o}\
83 %{!pg:%{p:/usr/lpp/ppe.poe/lib/mcrt0.o}\
84 %{!p:/usr/lpp/ppe.poe/lib/crt0.o}}}\
86 %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
87 %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
89 /* AIX 4 uses PowerPC nop (ori 0,0,0) instruction as call glue for PowerPC
90 and "cror 31,31,31" for POWER architecture. */
92 #undef RS6000_CALL_GLUE
93 #define RS6000_CALL_GLUE "{cror 31,31,31|nop}"