Small data support; Windows NT attributes; windows NT call indrect fix
[official-gcc.git] / gcc / config / rs6000 / aix41.h
blob98aaaf1b4b522aed40c7e8b4f171b4d9fecaa87e
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 Free Software Foundation, Inc.
4 Contributed by David Edelsohn (edelsohn@npac.syr.edu).
6 This file is part of GNU CC.
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
24 #include "rs6000/rs6000.h"
26 #undef ASM_SPEC
27 #define ASM_SPEC "-u %(asm_cpu)"
29 #undef CPP_PREDEFINES
30 #define CPP_PREDEFINES "-D_IBMR2 -D_POWER -D_AIX -D_AIX32 \
31 -Asystem(unix) -Asystem(aix)"
33 #undef CPP_SPEC
34 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE} %(cpp_cpu)"
36 #undef CPP_DEFAULT_SPEC
37 #define CPP_DEFAULT_SPEC "-D_ARCH_COM"
39 #undef ASM_DEFAULT_SPEC
40 #define ASM_DEFAULT_SPEC "-mcom"
42 #undef TARGET_DEFAULT
43 #define TARGET_DEFAULT MASK_NEW_MNEMONICS
45 #undef PROCESSOR_DEFAULT
46 #define PROCESSOR_DEFAULT PROCESSOR_PPC601
48 /* Define this macro as a C expression for the initializer of an
49 array of string to tell the driver program which options are
50 defaults for this target and thus do not need to be handled
51 specially when using `MULTILIB_OPTIONS'.
53 Do not define this macro if `MULTILIB_OPTIONS' is not defined in
54 the target makefile fragment or if none of the options listed in
55 `MULTILIB_OPTIONS' are set by default. *Note Target Fragment::. */
57 #undef MULTILIB_DEFAULTS
58 #define MULTILIB_DEFAULTS { "mcpu=common" }
60 /* These are not necessary when we pass -u to the assembler, and undefining
61 them saves a great deal of space in object files. */
63 #undef ASM_OUTPUT_EXTERNAL
64 #undef ASM_OUTPUT_EXTERNAL_LIBCALL
65 #define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) \
66 { rtx _symref = XEXP (DECL_RTL (DECL), 0); \
67 if ((TREE_CODE (DECL) == VAR_DECL \
68 || TREE_CODE (DECL) == FUNCTION_DECL) \
69 && (NAME)[0] != '*' \
70 && (NAME)[strlen (NAME) - 1] != ']') \
71 { \
72 char *_name = (char *) permalloc (strlen (XSTR (_symref, 0)) + 5); \
73 strcpy (_name, XSTR (_symref, 0)); \
74 strcat (_name, TREE_CODE (DECL) == FUNCTION_DECL ? "[DS]" : "[RW]"); \
75 XSTR (_symref, 0) = _name; \
76 } \
79 #undef LINK_SPEC
80 #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
81 %{static:-bnso %(link_syscalls) } %{!shared: %{g*: %(link_libg) }}\
82 %{shared:-bM:SRE}"