comparison gcc/config/rs6000/aix61.h @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents a06113de4d67
children f6334be47118
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
1 /* Definitions of target machine for GNU compiler, 1 /* Definitions of target machine for GNU compiler,
2 for IBM RS/6000 POWER running AIX V6.1. 2 for IBM RS/6000 POWER running AIX V6.1.
3 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 3 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 Free Software Foundation, Inc. 4 Free Software Foundation, Inc.
5 Contributed by David Edelsohn (edelsohn@gnu.org). 5 Contributed by David Edelsohn (edelsohn@gnu.org).
6 6
7 This file is part of GCC. 7 This file is part of GCC.
8 8
55 } while (0); 55 } while (0);
56 56
57 #undef ASM_SPEC 57 #undef ASM_SPEC
58 #define ASM_SPEC "-u %{maix64:-a64 %{!mcpu*:-mppc64}} %(asm_cpu)" 58 #define ASM_SPEC "-u %{maix64:-a64 %{!mcpu*:-mppc64}} %(asm_cpu)"
59 59
60 /* Common ASM definitions used by ASM_SPEC amongst the various targets 60 /* Common ASM definitions used by ASM_SPEC amongst the various targets for
61 for handling -mcpu=xxx switches. */ 61 handling -mcpu=xxx switches. There is a parallel list in driver-rs6000.c to
62 provide the default assembler options if the user uses -mcpu=native, so if
63 you make changes here, make them there also. */
62 #undef ASM_CPU_SPEC 64 #undef ASM_CPU_SPEC
63 #define ASM_CPU_SPEC \ 65 #define ASM_CPU_SPEC \
64 "%{!mcpu*: %{!maix64: \ 66 "%{!mcpu*: %{!maix64: \
65 %{mpowerpc64: -mppc64} \ 67 %{mpowerpc64: -mppc64} \
66 %{maltivec: -m970} \ 68 %{maltivec: -m970} \
67 %{!maltivec: %{!mpower64: %(asm_default)}}}} \ 69 %{!maltivec: %{!mpower64: %(asm_default)}}}} \
70 %{mcpu=native: %(asm_cpu_native)} \
68 %{mcpu=power3: -m620} \ 71 %{mcpu=power3: -m620} \
69 %{mcpu=power4: -mpwr4} \ 72 %{mcpu=power4: -mpwr4} \
70 %{mcpu=power5: -mpwr5} \ 73 %{mcpu=power5: -mpwr5} \
71 %{mcpu=power5+: -mpwr5x} \ 74 %{mcpu=power5+: -mpwr5x} \
72 %{mcpu=power6: -mpwr6} \ 75 %{mcpu=power6: -mpwr6} \
73 %{mcpu=power6x: -mpwr6} \ 76 %{mcpu=power6x: -mpwr6} \
77 %{mcpu=power7: -mpwr7} \
74 %{mcpu=powerpc: -mppc} \ 78 %{mcpu=powerpc: -mppc} \
75 %{mcpu=rs64a: -mppc} \ 79 %{mcpu=rs64a: -mppc} \
76 %{mcpu=603: -m603} \ 80 %{mcpu=603: -m603} \
77 %{mcpu=603e: -m603} \ 81 %{mcpu=603e: -m603} \
78 %{mcpu=604: -m604} \ 82 %{mcpu=604: -m604} \
100 104
101 #undef CPP_SPEC 105 #undef CPP_SPEC
102 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \ 106 #define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \
103 %{ansi: -D_ANSI_C_SOURCE} \ 107 %{ansi: -D_ANSI_C_SOURCE} \
104 %{maix64: -D__64BIT__} \ 108 %{maix64: -D__64BIT__} \
105 %{mpe: -I/usr/lpp/ppe.poe/include} \ 109 %{mpe: -I%R/usr/lpp/ppe.poe/include} \
106 %{pthread: -D_THREAD_SAFE}" 110 %{pthread: -D_THREAD_SAFE}"
107 111
108 /* The GNU C++ standard library requires that these macros be 112 /* The GNU C++ standard library requires that these macros be
109 defined. Synchronize with libstdc++ os_defines.h. */ 113 defined. Synchronize with libstdc++ os_defines.h. */
110 #undef CPLUSPLUS_CPP_SPEC 114 #undef CPLUSPLUS_CPP_SPEC
111 #define CPLUSPLUS_CPP_SPEC \ 115 #define CPLUSPLUS_CPP_SPEC \
112 "-D_ALL_SOURCE -D__COMPATMATH__ \ 116 "-D_ALL_SOURCE -D__COMPATMATH__ \
113 %{maix64: -D__64BIT__} \ 117 %{maix64: -D__64BIT__} \
114 %{mpe: -I/usr/lpp/ppe.poe/include} \ 118 %{mpe: -I%R/usr/lpp/ppe.poe/include} \
115 %{pthread: -D_THREAD_SAFE}" 119 %{pthread: -D_THREAD_SAFE}"
116 120
117 #undef TARGET_DEFAULT 121 #undef TARGET_DEFAULT
118 #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS) 122 #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
119 123
135 `MULTILIB_OPTIONS' are set by default. *Note Target Fragment::. */ 139 `MULTILIB_OPTIONS' are set by default. *Note Target Fragment::. */
136 140
137 #undef MULTILIB_DEFAULTS 141 #undef MULTILIB_DEFAULTS
138 142
139 #undef LIB_SPEC 143 #undef LIB_SPEC
140 #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\ 144 #define LIB_SPEC "%{pg:-L%R/lib/profiled -L%R/usr/lib/profiled}\
141 %{p:-L/lib/profiled -L/usr/lib/profiled}\ 145 %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
142 %{!maix64:%{!shared:%{g*:-lg}}}\ 146 %{!maix64:%{!shared:%{g*:-lg}}}\
143 %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ 147 %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
144 %{pthread:-lpthreads} -lc" 148 %{pthread:-lpthreads} -lc"
145 149
146 #undef LINK_SPEC 150 #undef LINK_SPEC
147 #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ 151 #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
148 %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\ 152 %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
200 #define TARGET_USE_JCR_SECTION 0 204 #define TARGET_USE_JCR_SECTION 0
201 205
202 /* Default to 128 bit long double. */ 206 /* Default to 128 bit long double. */
203 207
204 #define RS6000_DEFAULT_LONG_DOUBLE_SIZE 128 208 #define RS6000_DEFAULT_LONG_DOUBLE_SIZE 128
209
210 #define TARGET_AIX_VERSION 61