comparison gen/asm-x86-32.h @ 1190:ea7b8b6c96c0

Some more fixups for mingw -- missing underscores
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Thu, 02 Apr 2009 17:27:53 -0600
parents 97d80437cb80
children 1e30cc395d2e
comparison
equal deleted inserted replaced
1189:c0091f3b72f1 1190:ea7b8b6c96c0
2163 } 2163 }
2164 else if ( ( decl && decl->isCodeseg() ) ) // if function or label 2164 else if ( ( decl && decl->isCodeseg() ) ) // if function or label
2165 { 2165 {
2166 use_star = false; 2166 use_star = false;
2167 // simply write out the mangle 2167 // simply write out the mangle
2168 // on osx, prepend extra _ 2168 // on osx and mingw, prepend extra _
2169 if ( global.params.os == OSMacOSX ) 2169 if ( global.params.os == OSMacOSX || global.params.os == OSWindows )
2170 insnTemplate << "_"; 2170 insnTemplate << "_";
2171 insnTemplate << decl->mangle(); 2171 insnTemplate << decl->mangle();
2172 // addOperand2("${", ":c}", Arg_Pointer, e, asmcode); 2172 // addOperand2("${", ":c}", Arg_Pointer, e, asmcode);
2173 } 2173 }
2174 else 2174 else