[llvm-bugs] [Bug 28712] clang still uses compiler-rt symbols on x86_32 when -nodefaultlibs is being used

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 26 08:04:46 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28712

Anton Korobeynikov <anton at korobeynikov.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |anton at korobeynikov.info
         Resolution|---                         |INVALID

--- Comment #1 from Anton Korobeynikov <anton at korobeynikov.info> ---
This is expected. -nostdlib is an option that forces clang not to pass runtime
libraries to the linker. It does not affect codegeneration at all.

Note that __udivdi3 is a runtime call for 64 bit division. Since there is no
instruction for this on x86-32 you'd need to modify your sources not to use
this. Otherwise there is no way for compiler to support it in other way.
Naturally, it's not an issue on x86_32.

-- 
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/20160726/9dadfdca/attachment.html>


More information about the llvm-bugs mailing list