]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/gcc/config/rs6000/aix41.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / gcc / config / rs6000 / aix41.h
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
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 2, 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 COPYING.  If not, write to the
22    Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
23    MA 02110-1301, USA.  */
24
25 #undef ASM_SPEC
26 #define ASM_SPEC "-u %(asm_cpu)"
27
28 #undef  ASM_DEFAULT_SPEC
29 #define ASM_DEFAULT_SPEC "-mcom"
30
31 #undef TARGET_OS_CPP_BUILTINS
32 #define TARGET_OS_CPP_BUILTINS()     \
33   do                                 \
34     {                                \
35       TARGET_OS_AIX_CPP_BUILTINS (); \
36     }                                \
37   while (0)
38
39 #undef CPP_SPEC
40 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
41    %{ansi: -D_ANSI_C_SOURCE}\
42    %{mpe: -I/usr/lpp/ppe.poe/include}\
43    %{pthread: -D_THREAD_SAFE}"
44
45 #undef TARGET_DEFAULT
46 #define TARGET_DEFAULT MASK_NEW_MNEMONICS
47
48 #undef PROCESSOR_DEFAULT
49 #define PROCESSOR_DEFAULT PROCESSOR_PPC601
50
51 /* Define this macro as a C expression for the initializer of an
52    array of string to tell the driver program which options are
53    defaults for this target and thus do not need to be handled
54    specially when using `MULTILIB_OPTIONS'.
55
56    Do not define this macro if `MULTILIB_OPTIONS' is not defined in
57    the target makefile fragment or if none of the options listed in
58    `MULTILIB_OPTIONS' are set by default.  *Note Target Fragment::.  */
59
60 #undef  MULTILIB_DEFAULTS
61 #define MULTILIB_DEFAULTS { "mcpu=common" }
62
63 #undef LIB_SPEC
64 #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
65    %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}}\
66    %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
67    %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
68    %{!pthread: -lc}"
69
70 #undef LINK_SPEC
71 #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
72    %{static:-bnso %(link_syscalls) } %{!shared: %{g*: %(link_libg) }}\
73    %{shared:-bM:SRE %{!e:-bnoentry}}"
74
75 #undef STARTFILE_SPEC
76 #define STARTFILE_SPEC "%{!shared:\
77    %{mpe:%{pg:/usr/lpp/ppe.poe/lib/gcrt0.o}\
78          %{!pg:%{p:/usr/lpp/ppe.poe/lib/mcrt0.o}\
79                %{!p:/usr/lpp/ppe.poe/lib/crt0.o}}}\
80    %{!mpe:\
81      %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
82      %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
83
84 /* AIX 4 uses PowerPC nop (ori 0,0,0) instruction as call glue for PowerPC
85    and "cror 31,31,31" for POWER architecture.  */
86
87 #undef RS6000_CALL_GLUE
88 #define RS6000_CALL_GLUE "{cror 31,31,31|nop}"
89
90 /* The IBM AIX 4.x assembler doesn't support forward references in
91    .set directives.  We handle this by deferring the output of .set
92    directives to the end of the compilation unit.  */
93 #define TARGET_DEFERRED_OUTPUT_DEFS(DECL,TARGET) true
94
95 #undef TARGET_64BIT
96 #define TARGET_64BIT 0