[LLVMbugs] [Bug 18547] New: Clang generates wrong assembly for i686-w64-mingw32

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 19 06:23:46 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18547

            Bug ID: 18547
           Summary: Clang generates wrong assembly for i686-w64-mingw32
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Keywords: compile-fail, miscompilation, regression
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vanboxem.ruben at gmail.com
                CC: llvmbugs at cs.uiuc.edu
        Depends on: 18546
    Classification: Unclassified

Created attachment 11893
  --> http://llvm.org/bugs/attachment.cgi?id=11893&action=edit
Generated assembly for test code

This test program:

#include <iostream>

int main()
try
{
  throw 42;
}
catch(...)
{  
  std::cout << "Hello World!\n";
}

Compiled with:
clang -target i686-w64-mingw32 test.cpp -o test.dll
Generates attached test.s. What GCC 4.8.2 (dw2) generates is test_gcc.s. It
seems there is an error generated by Clang. as reports:

test.s:156: Warning: Ignoring changed section attributes for .text
test.s:156: Error: junk at end of line, first unrecognized character is `,'

This worked, at least with Clang version 3.2, and I believe 3.4 as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140119/07d94da5/attachment.html>


More information about the llvm-bugs mailing list