comparison gen/asm-x86-64.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
1654 stmt->error ( "only global variables can be referenced by identifier in naked asm" ); 1654 stmt->error ( "only global variables can be referenced by identifier in naked asm" );
1655 break; 1655 break;
1656 } 1656 }
1657 1657
1658 // osx needs an extra underscore 1658 // osx needs an extra underscore
1659 if ( global.params.os == OSMacOSX ) 1659 if ( global.params.os == OSMacOSX || global.params.os == OSWindows )
1660 insnTemplate << "_"; 1660 insnTemplate << "_";
1661 1661
1662 // print out the mangle 1662 // print out the mangle
1663 insnTemplate << vd->mangle(); 1663 insnTemplate << vd->mangle();
1664 vd->nakedUse = true; 1664 vd->nakedUse = true;
2285 } 2285 }
2286 else if ( ( decl && decl->isCodeseg() ) ) // if function or label 2286 else if ( ( decl && decl->isCodeseg() ) ) // if function or label
2287 { 2287 {
2288 use_star = false; 2288 use_star = false;
2289 // simply write out the mangle 2289 // simply write out the mangle
2290 // on osx, prepend extra _ 2290 // on osx and windows, prepend extra _
2291 if ( global.params.os == OSMacOSX ) 2291 if ( global.params.os == OSMacOSX || global.params.os == OSWindows )
2292 insnTemplate << "_"; 2292 insnTemplate << "_";
2293 insnTemplate << decl->mangle(); 2293 insnTemplate << decl->mangle();
2294 // addOperand2("${", ":c}", Arg_Pointer, e, asmcode); 2294 // addOperand2("${", ":c}", Arg_Pointer, e, asmcode);
2295 } 2295 }
2296 else 2296 else