2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / rs6000 / aix41.h
blob373c10c22ffaca7f48c9b0fd1f9539ad341510fe
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, 2003
4 Free Software Foundation, Inc.
5 Contributed by David Edelsohn (edelsohn@gnu.org).
7 This file is part of GCC.
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.
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.
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. */
24 #undef SUBSUBTARGET_SWITCHES
25 #define SUBSUBTARGET_SWITCHES \
26 {"pe", 0, \
27 N_("Support message passing with the Parallel Environment") },
29 #undef ASM_SPEC
30 #define ASM_SPEC "-u %(asm_cpu)"
32 #undef ASM_DEFAULT_SPEC
33 #define ASM_DEFAULT_SPEC "-mcom"
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)
50 #undef CPP_SPEC
51 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
52 %{ansi: -D_ANSI_C_SOURCE}\
53 %{mpe: -I/usr/lpp/ppe.poe/include}\
54 %{pthread: -D_THREAD_SAFE}"
56 #undef TARGET_DEFAULT
57 #define TARGET_DEFAULT MASK_NEW_MNEMONICS
59 #undef PROCESSOR_DEFAULT
60 #define PROCESSOR_DEFAULT PROCESSOR_PPC601
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'.
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::. */
71 #undef MULTILIB_DEFAULTS
72 #define MULTILIB_DEFAULTS { "mcpu=common" }
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}\
78 %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
79 %{!pthread: -lc}"
81 #undef LINK_SPEC
82 #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
83 %{static:-bnso %(link_syscalls) } %{!shared: %{g*: %(link_libg) }}\
84 %{shared:-bM:SRE %{!e:-bnoentry}}"
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:\
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}}}}}"
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. */
98 #undef RS6000_CALL_GLUE
99 #define RS6000_CALL_GLUE "{cror 31,31,31|nop}"