Hi,<br><br>I recently switched to LLVM-GCC 4.2 on OS X, to go around a bug caused by gcc with optimized code. Unfortunately, I ran into another weird problem on LLVM-GCC. In my code, there's a file with a bunch of inline assembly blocks, that worked fine with GCC 4.2. Now, when compiling with LLVM-GCC 4.2, weird things happen.<br>
<br>Here's an example: (the blocks are larger than that, but a single line will do to show you what's happening)<br>__asm {<br>   mov ebx, iObject<br>}<br><br>When compiling in release, everything goes fine, and the produced assembly looks like this :<br>
## InlineAsm Start<br>.file "... my filename"<br>## InlineAsm End<br>## InlineAsm Start<br>.line 1454<br>## InlineAsm End<br>## InlineAsm Start<br>movl -20(%ebp), $ebx<br>## InlineAsm End<br><br>The problem occurs in debug, and the code looks like this :<br>
## InlineAsm Start<br>
.file "... my filename"<br>
## InlineAsm End<br>
## InlineAsm Start<br>
.line 1454<br>
## InlineAsm End<br>
## InlineAsm Start<br>
movl -20(%ebp), $ebx<br>
## InlineAsm End<br>movl %ebx, %eax<br>movl %eax, -52(%ebp)<br><br>Only the last two lines are added, but since I'm using the eax register for other things in the block, the code keeps writing over it, and end up crashing when I try to really use whatever I did put in eax.<br>
>From the looks of it, those lines must be here for a reason, but I'm wondering how to avoid generating them, as it's causing some major problems in my code (at least in this specific file). Is there some way to disable that ?<br>
<br>Thanks,<br>Fred<br><br><br>