0
|
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, 2004,
|
|
4 2005, 2007
|
|
5 Free Software Foundation, Inc.
|
|
6 Contributed by David Edelsohn (edelsohn@gnu.org).
|
|
7
|
|
8 This file is part of GCC.
|
|
9
|
|
10 GCC is free software; you can redistribute it and/or modify it
|
|
11 under the terms of the GNU General Public License as published
|
|
12 by the Free Software Foundation; either version 3, or (at your
|
|
13 option) any later version.
|
|
14
|
|
15 GCC is distributed in the hope that it will be useful, but WITHOUT
|
|
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
17 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
18 License for more details.
|
|
19
|
|
20 You should have received a copy of the GNU General Public License
|
|
21 along with GCC; see the file COPYING3. If not see
|
|
22 <http://www.gnu.org/licenses/>. */
|
|
23
|
|
24 #undef ASM_SPEC
|
|
25 #define ASM_SPEC "-u %(asm_cpu)"
|
|
26
|
|
27 #undef ASM_DEFAULT_SPEC
|
|
28 #define ASM_DEFAULT_SPEC "-mcom"
|
|
29
|
|
30 #undef TARGET_OS_CPP_BUILTINS
|
|
31 #define TARGET_OS_CPP_BUILTINS() \
|
|
32 do \
|
|
33 { \
|
|
34 TARGET_OS_AIX_CPP_BUILTINS (); \
|
|
35 } \
|
|
36 while (0)
|
|
37
|
|
38 #undef CPP_SPEC
|
|
39 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
|
|
40 %{ansi: -D_ANSI_C_SOURCE}\
|
|
41 %{mpe: -I/usr/lpp/ppe.poe/include}\
|
|
42 %{pthread: -D_THREAD_SAFE}"
|
|
43
|
|
44 #undef TARGET_DEFAULT
|
|
45 #define TARGET_DEFAULT MASK_NEW_MNEMONICS
|
|
46
|
|
47 #undef PROCESSOR_DEFAULT
|
|
48 #define PROCESSOR_DEFAULT PROCESSOR_PPC601
|
|
49
|
|
50 /* AIX does not support Altivec. */
|
|
51 #undef TARGET_ALTIVEC
|
|
52 #define TARGET_ALTIVEC 0
|
|
53 #undef TARGET_ALTIVEC_ABI
|
|
54 #define TARGET_ALTIVEC_ABI 0
|
|
55
|
|
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'.
|
|
60
|
|
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::. */
|
|
64
|
|
65 #undef MULTILIB_DEFAULTS
|
|
66 #define MULTILIB_DEFAULTS { "mcpu=common" }
|
|
67
|
|
68 #undef LIB_SPEC
|
|
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}\
|
|
73 %{!pthread: -lc}"
|
|
74
|
|
75 #undef LINK_SPEC
|
|
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}}"
|
|
79
|
|
80 #undef STARTFILE_SPEC
|
|
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}}}\
|
|
85 %{!mpe:\
|
|
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}}}}}"
|
|
88
|
|
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. */
|
|
91
|
|
92 #undef RS6000_CALL_GLUE
|
|
93 #define RS6000_CALL_GLUE "{cror 31,31,31|nop}"
|
|
94
|
|
95 /* The IBM AIX 4.x assembler doesn't support forward references in
|
|
96 .set directives. We handle this by deferring the output of .set
|
|
97 directives to the end of the compilation unit. */
|
|
98 #define TARGET_DEFERRED_OUTPUT_DEFS(DECL,TARGET) true
|
|
99
|
|
100 #undef TARGET_64BIT
|
|
101 #define TARGET_64BIT 0
|