<span id=":uu" class="el" tabindex="2">Hi all,<br><br>I'm using trunk version of LLVM/CLANG.<br>When I compile attached files on my 64-bit Ubuntu 10.04 LTS system as follows:<br><br>clang -O2 -g check.c main.c -o check64<br>
<br>When I do gdb check64 and set a breakpoint to the check routine and executes to the breakpoint, I've got:<br><br>Breakpoint 1, check (result=0x601110, expect=0x601020, n=53) at check.c:7<br>7    {<br><br>As you can see I can inspect 'n' value.<br>
<br>Now if I compile for x86 32-bit as follows:<br><br></span><span id=":uu" class="el" tabindex="2">clang -m32 -O2 -g check.c main.c -o check32</span><br><span id=":uu" class="el" tabindex="2"><br></span><span id=":uu" class="el" tabindex="2">When I do gdb check32 and set a breakpoint to the check routine and executes to the breakpoint, I've got:<br>
<br>
</span>Breakpoint 1, check (result=<value optimized out>, <br>    expect=<value optimized out>, n=0) at check.c:7<br>7    {<br><br>As you can see I can NOT inspect 'n' value. Is there a way to inforce even at -O2 clang to generate debug informations so that I can inspect 'n' value ?<br>
Or is it a BUG from clang for x86 32-bit ?<br>Thanks for your answers.<br>Best Regards<br>Seb<br><br><span id=":66" class="aaj"></span>