Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/i386/darwin.h @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
1 /* Target definitions for x86 running Darwin. | 1 /* Target definitions for x86 running Darwin. |
2 Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2008 | 2 Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2010 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 Contributed by Apple Computer Inc. | 4 Contributed by Apple Computer Inc. |
5 | 5 |
6 This file is part of GCC. | 6 This file is part of GCC. |
7 | 7 |
90 /* We want -fPIC by default, unless we're using -static to compile for | 90 /* We want -fPIC by default, unless we're using -static to compile for |
91 the kernel or some such. */ | 91 the kernel or some such. */ |
92 | 92 |
93 #undef CC1_SPEC | 93 #undef CC1_SPEC |
94 #define CC1_SPEC "%(cc1_cpu) \ | 94 #define CC1_SPEC "%(cc1_cpu) \ |
95 %<mdynamic-no-pic " /* For now, we just ignore this flag */ " \ | |
95 %{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}} \ | 96 %{!mkernel:%{!static:%{!mdynamic-no-pic:-fPIC}}} \ |
96 %{!mmacosx-version-min=*:-mmacosx-version-min=%(darwin_minversion)} \ | 97 %{!mmacosx-version-min=*:-mmacosx-version-min=%(darwin_minversion)} \ |
97 %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }}" | 98 %{g: %{!fno-eliminate-unused-debug-symbols: -feliminate-unused-debug-symbols }}" |
98 | 99 |
99 #undef ASM_SPEC | 100 #undef ASM_SPEC |
139 some don't. This macro controls what to do: by default, don't | 140 some don't. This macro controls what to do: by default, don't |
140 print %cl. */ | 141 print %cl. */ |
141 | 142 |
142 #define SHIFT_DOUBLE_OMITS_COUNT 0 | 143 #define SHIFT_DOUBLE_OMITS_COUNT 0 |
143 | 144 |
144 extern void darwin_x86_file_end (void); | |
145 #undef TARGET_ASM_FILE_END | 145 #undef TARGET_ASM_FILE_END |
146 #define TARGET_ASM_FILE_END darwin_x86_file_end | 146 #define TARGET_ASM_FILE_END darwin_file_end |
147 | 147 |
148 /* Define the syntax of pseudo-ops, labels and comments. */ | 148 /* Define the syntax of pseudo-ops, labels and comments. */ |
149 | 149 |
150 /* String containing the assembler's comment-starter. */ | 150 /* String containing the assembler's comment-starter. */ |
151 | 151 |
160 /* For darwin we want to target specific processor features as a minimum, | 160 /* For darwin we want to target specific processor features as a minimum, |
161 but these unfortunately don't correspond to a specific processor. */ | 161 but these unfortunately don't correspond to a specific processor. */ |
162 #undef TARGET_SUBTARGET32_ISA_DEFAULT | 162 #undef TARGET_SUBTARGET32_ISA_DEFAULT |
163 #define TARGET_SUBTARGET32_ISA_DEFAULT (OPTION_MASK_ISA_MMX \ | 163 #define TARGET_SUBTARGET32_ISA_DEFAULT (OPTION_MASK_ISA_MMX \ |
164 | OPTION_MASK_ISA_SSE \ | 164 | OPTION_MASK_ISA_SSE \ |
165 | OPTION_MASK_ISA_SSE2) | |
166 | |
167 #undef TARGET_SUBTARGET64_ISA_DEFAULT | |
168 #define TARGET_SUBTARGET64_ISA_DEFAULT (OPTION_MASK_ISA_MMX \ | |
169 | OPTION_MASK_ISA_SSE \ | |
170 | OPTION_MASK_ISA_SSE2 \ | 165 | OPTION_MASK_ISA_SSE2 \ |
171 | OPTION_MASK_ISA_SSE3) | 166 | OPTION_MASK_ISA_SSE3) |
167 | |
168 #undef TARGET_SUBTARGET64_ISA_DEFAULT | |
169 #define TARGET_SUBTARGET64_ISA_DEFAULT TARGET_SUBTARGET32_ISA_DEFAULT | |
172 | 170 |
173 /* For now, disable dynamic-no-pic. We'll need to go through i386.c | 171 /* For now, disable dynamic-no-pic. We'll need to go through i386.c |
174 with a fine-tooth comb looking for refs to flag_pic! */ | 172 with a fine-tooth comb looking for refs to flag_pic! */ |
175 #define MASK_MACHO_DYNAMIC_NO_PIC 0 | 173 #define MASK_MACHO_DYNAMIC_NO_PIC 0 |
176 #define TARGET_DYNAMIC_NO_PIC (target_flags & MASK_MACHO_DYNAMIC_NO_PIC) | 174 #define TARGET_DYNAMIC_NO_PIC (target_flags & MASK_MACHO_DYNAMIC_NO_PIC) |
298 | 296 |
299 /* This needs to move since i386 uses the first flag and other flags are | 297 /* This needs to move since i386 uses the first flag and other flags are |
300 used in Mach-O. */ | 298 used in Mach-O. */ |
301 #undef MACHO_SYMBOL_FLAG_VARIABLE | 299 #undef MACHO_SYMBOL_FLAG_VARIABLE |
302 #define MACHO_SYMBOL_FLAG_VARIABLE ((SYMBOL_FLAG_MACH_DEP) << 3) | 300 #define MACHO_SYMBOL_FLAG_VARIABLE ((SYMBOL_FLAG_MACH_DEP) << 3) |
301 | |
302 #define SUBTARGET32_DEFAULT_CPU "i686" |