<p dir="ltr">Interesting. File please? Thanks. </p>
<div class="gmail_quote">On Sep 21, 2013 6:01 AM, "Richard Pennington" <<a href="mailto:rich@pennware.com">rich@pennware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I just updated from r190763 to r191137 and started getting failures in generated assembly language when debug info is enabled. Here is the test case:<br>
<br>
// Compile and run for every target.<br>
// RUN: %ecc -g -o %t %s && %t<br>
// FAIL: %armecc -g -o %t %s && %armrun %t<br>
// FAIL: %armebecc -g -o %t %s && %armebrun %t<br>
// RUN: %i386ecc -g -o %t %s && %i386run %t<br>
// FAIL: %microblazeecc -g -o %t %s && %microblazerun %t<br>
// FAIL: %mipsecc -g -o %t %s && %mipsrun %t<br>
// FAIL: %mipselecc -g -o %t %s && %mipselrun %t<br>
// FAIL: %ppcecc -g -o %t %s && %ppcrun %t<br>
// FAIL: %ppc64ecc -g -o %t %s && %ppc64run %t<br>
// RUN: %x86_64ecc -g -o %t %s && %x86_64run %t<br>
<br>
int comm;<br>
int main()<br>
{<br>
    comm = 6;<br>
}<br>
<br>
This fails on all but the x86 processors. The typical failure looks like this:<br>
...<br>
        .type   comm,@object            # @comm<br>
        .comm   comm,4,4<br>
        .cfi_sections .debug_frame<br>
        .bss<br>
.L.bss_end:<br>
...<br>
.L.debug_abbrev_end:<br>
        .section        .debug_aranges,"",@progbits<br>
        .long   36                      # Length of ARange Set<br>
        .short  2                       # DWARF Arange version number<br>
        .long   .L.debug_info_begin0    # Offset Into Debug Info Section<br>
        .byte   4                       # Address Size (in bytes)<br>
        .byte   0                       # Segment Size (in bytes)<br>
        .byte   255<br>
        .byte   255<br>
        .byte   255<br>
        .byte   255<br>
        .long   comm<br>
.Lset0 = .L.bss_end-comm<br>
        .long   .Lset0<br>
<br>
The typical error message is:<br>
/tmp/debug-8ecf9d.s: Assembler messages:<br>
/tmp/debug-8ecf9d.s: Error: invalid operands (.bss and *COM* sections) for `-' when setting `.Lset0'<br>
<br>
Is it legal to mix .comm symbols and .bss symbols in assembly? Is the x86 success a bug or a feature?<br>
<br>
-Rich<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</blockquote></div>