Fixed problem accessing global variables from naked asm on osx.

This commit is contained in:
Tomas Lindquist Olsen
2009-02-03 18:42:25 +01:00
parent e7125498e2
commit 9705b7e017
2 changed files with 8 additions and 0 deletions

View File

@@ -1436,6 +1436,10 @@ struct AsmProcessor
break;
}
// osx needs an extra underscore
if (global.params.os == OSMacOSX)
insnTemplate->writestring("_");
// print out the mangle
insnTemplate->writestring(vd->mangle());
vd->nakedUse = true;

View File

@@ -1556,6 +1556,10 @@ struct AsmProcessor
break;
}
// osx needs an extra underscore
if (global.params.os == OSMacOSX)
insnTemplate->writestring("_");
// print out the mangle
insnTemplate->writestring(vd->mangle());
vd->nakedUse = true;