[cfe-commits] Patches for bootstrapping on armv7 linux

Rafael Espindola espindola at google.com
Sun Aug 8 17:19:59 PDT 2010


With the attached patches I can bootstrap a clang that targets armv7
by default. The first patch just avoids using getHostTriple as that
would lose the "v7". The correct solution would be to have some form
of configuration, but I think not trying to detect the host cpu at
runtime is already less surprising to the user.

The second patch changes clang to run "as" and "ld" directly. It is
not strictly required, but we have to pass to fpu flag to the
assembler somehow. I think the change to call the assembler directly
can be made complete. The change to use the use linker directly is
harder as different distros have different dynamic linkers for example
and more refactoring is needed. The patch includes an option for
disabling the use of ld and if committing this I would keep it off by
default. I can also just commit the assembler changes.

Cheers,
-- 
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: host.patch
Type: text/x-patch
Size: 718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100808/29335087/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.patch
Type: text/x-patch
Size: 12438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100808/29335087/attachment-0001.bin>


More information about the cfe-commits mailing list