[cfe-commits] [PATCH] Do not pass lib32 sub-directory to the linker when target is MIPS 32-bit

Simon Atanasyan satanasyan at mips.com
Thu Sep 13 13:20:48 PDT 2012


Hi,

Clang driver considers lib32 directory as a usual folder with 32-bit
binaries. That is not correct for MIPS where this directory contains
N32 ABI binaries. N32 is a minor variation on the high performance
64-bit ABI and is not used to compile 32-bit code. That's why Clang
passes incorrect paths to the linker if user has MIPS multilib
environment and wants to compile 32-bit code.

The attached patch fixes this problem. It does not use "lib32"
directory to create a library/object files paths list when target is
MIPS 32-bit. Later I plan to implement full N32 ABI support and
provide more test cases.

Please review the patch.

--
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-lib32.patch
Type: application/octet-stream
Size: 6654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120914/b9cffbae/attachment.obj>


More information about the cfe-commits mailing list