Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/rs6000/darwin.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Target definitions for PowerPC running Darwin (Mac OS X). | 1 /* Target definitions for PowerPC running Darwin (Mac OS X). |
2 Copyright (C) 1997-2017 Free Software Foundation, Inc. | 2 Copyright (C) 1997-2018 Free Software Foundation, Inc. |
3 Contributed by Apple Computer Inc. | 3 Contributed by Apple Computer Inc. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it | 7 GCC is free software; you can redistribute it and/or modify it |
117 mcpu=970:ppc970; \ | 117 mcpu=970:ppc970; \ |
118 mcpu=power4:ppc970; \ | 118 mcpu=power4:ppc970; \ |
119 mcpu=G5:ppc970; \ | 119 mcpu=G5:ppc970; \ |
120 :ppc}}" | 120 :ppc}}" |
121 | 121 |
122 /* We need to jam the crt to 10.5 for 10.6 (Rosetta) use. */ | |
123 #undef DARWIN_CRT1_SPEC | |
124 #define DARWIN_CRT1_SPEC \ | |
125 "%:version-compare(!> 10.5 mmacosx-version-min= -lcrt1.o) \ | |
126 %:version-compare(>< 10.5 10.7 mmacosx-version-min= -lcrt1.10.5.o) \ | |
127 %{fgnu-tm: -lcrttms.o}" | |
128 | |
122 /* crt2.o is at least partially required for 10.3.x and earlier. */ | 129 /* crt2.o is at least partially required for 10.3.x and earlier. */ |
123 #define DARWIN_CRT2_SPEC \ | 130 #define DARWIN_CRT2_SPEC \ |
124 "%{!m64:%:version-compare(!> 10.4 mmacosx-version-min= crt2.o%s)}" | 131 "%{!m64:%:version-compare(!> 10.4 mmacosx-version-min= crt2.o%s)}" |
125 | 132 |
126 #undef SUBTARGET_EXTRA_SPECS | 133 #undef SUBTARGET_EXTRA_SPECS |
128 DARWIN_EXTRA_SPECS \ | 135 DARWIN_EXTRA_SPECS \ |
129 { "darwin_arch", DARWIN_ARCH_SPEC }, \ | 136 { "darwin_arch", DARWIN_ARCH_SPEC }, \ |
130 { "darwin_crt2", DARWIN_CRT2_SPEC }, \ | 137 { "darwin_crt2", DARWIN_CRT2_SPEC }, \ |
131 { "darwin_subarch", DARWIN_SUBARCH_SPEC }, | 138 { "darwin_subarch", DARWIN_SUBARCH_SPEC }, |
132 | 139 |
140 /* We need to jam the dylib crt to 10.5 for 10.6 (Rosetta) use. */ | |
141 #undef DARWIN_DYLIB1_SPEC | |
142 #define DARWIN_DYLIB1_SPEC \ | |
143 "%:version-compare(!> 10.5 mmacosx-version-min= -ldylib1.o) \ | |
144 %:version-compare(>< 10.5 10.7 mmacosx-version-min= -ldylib1.10.5.o)" | |
145 | |
133 /* Output a .machine directive. */ | 146 /* Output a .machine directive. */ |
134 #undef TARGET_ASM_FILE_START | 147 #undef TARGET_ASM_FILE_START |
135 #define TARGET_ASM_FILE_START rs6000_darwin_file_start | 148 #define TARGET_ASM_FILE_START rs6000_darwin_file_start |
136 | 149 |
137 /* Make both r2 and r13 available for allocation. */ | 150 /* Make both r2 and r13 available for allocation. */ |
153 (RS6000_ALIGN (crtl->outgoing_args_size, 16) \ | 166 (RS6000_ALIGN (crtl->outgoing_args_size, 16) \ |
154 + RS6000_SAVE_AREA) | 167 + RS6000_SAVE_AREA) |
155 | 168 |
156 #undef STACK_DYNAMIC_OFFSET | 169 #undef STACK_DYNAMIC_OFFSET |
157 #define STACK_DYNAMIC_OFFSET(FUNDECL) \ | 170 #define STACK_DYNAMIC_OFFSET(FUNDECL) \ |
158 (RS6000_ALIGN (crtl->outgoing_args_size, 16) \ | 171 (RS6000_ALIGN (crtl->outgoing_args_size.to_constant (), 16) \ |
159 + (STACK_POINTER_OFFSET)) | 172 + (STACK_POINTER_OFFSET)) |
160 | 173 |
161 /* Darwin uses a function call if everything needs to be saved/restored. */ | 174 /* Darwin uses a function call if everything needs to be saved/restored. */ |
162 | 175 |
163 #undef WORLD_SAVE_P | 176 #undef WORLD_SAVE_P |