<font size=2 face="sans-serif">Hello friendly Clang-World,</font>
<br>
<br><font size=2 face="sans-serif">this is my first time using a mailing
list, so I hope I do everything right. For my company I try to compile
some old x86 code with clang, which compiled with Visual Studio 6. There
I found the following macro:<br>
<br>
<i>#define POINT_TO_LABEL(variable, address) { void*
dest; __asm push eax __asm mov eax, offset seq_lbl##address __asm mov dest,eax
__asm {pop eax} variable = dest;}</i></font>
<br>
<br><font size=2 face="sans-serif">Clang says:<br>
error: unexpected token in</font>
<br><font size=2 face="sans-serif"> argument list</font>
<br><font size=2 face="sans-serif"> POINT_TO_LABEL(pTableOfEntryPoints[seq_BEGINROW(1)],seq_BeginRow1);</font>
<br><font size=2 face="sans-serif"> </font><font size=2 color=#00c200 face="sans-serif"><b>^</b></font>
<br><font size=2 face="sans-serif">Include\vSeqCodeModule.h(183,155): note:
expanded from macro 'POINT_TO_LABEL'</font>
<br><font size=2 face="sans-serif"> ...seq_lbl##address __asm mov
dest,eax __asm {pop eax} variable = dest;}<br>
</font><font size=2 color=#00a000 face="sans-serif"><b>^</b></font>
<br>
<br><font size=2 face="sans-serif">When I remove the {} from the last __asm
code, the error from the <i>'='</i> disappears, but the first message keeps
coming.<br>
<br>
So... What is the problem? Is this kind of inline assembler not compatible
with Clang? <br>
<br>
I have a second question for a private project. Do I have to send another
mail with this question?</font>
<br>
<br><font size=2 face="sans-serif">Kind regards from Germany</font>
<br><font size=2 face="sans-serif">Björn<br>
Als GmbH eingetragen im Handelsregister Bad Homburg v.d.H. HRB 9816, USt.ID-Nr.
DE 114 165 789<br>
Geschäftsführer: Hiroshi Kawamura, Dr Hiroshi Nakamura, Markus Bode, Heiko
Lampert, Takashi Nagano, Takeshi Fukushima.</font>