comparison gen/abi.cpp @ 1002:c749648ed2b8

Fix cfloat return on x86_64: only perform ABI transformation for non-extern(D) functions. There's no need to waste cycles with extern(D), which we get to define ourselves. Fixes tests/mini/asm8.d. (Since the asm abiret code already assumed {xmm0, xmm1} returns)
author Frits van Bommel <fvbommel wxs.nl>
date Thu, 26 Feb 2009 23:35:39 +0100
parents 6e7dc3caccdd
children e8c6dbcd33d1
comparison
equal deleted inserted replaced
1001:7a0238db1962 1002:c749648ed2b8
178 } 178 }
179 179
180 // test if rewrite applies to function 180 // test if rewrite applies to function
181 bool test(TypeFunction* tf) 181 bool test(TypeFunction* tf)
182 { 182 {
183 return (tf->next->toBasetype() == Type::tcomplex32); 183 return (tf->linkage != LINKd)
184 && (tf->next->toBasetype() == Type::tcomplex32);
184 } 185 }
185 }; 186 };
186 187
187 ////////////////////////////////////////////////////////////////////////////// 188 //////////////////////////////////////////////////////////////////////////////
188 189