[cfe-commits] Patches for bootstrapping on armv7 linux

Daniel Dunbar daniel at zuster.org
Mon Aug 9 12:53:58 PDT 2010


On Sun, Aug 8, 2010 at 5:19 PM, Rafael Espindola <espindola at google.com> wrote:
> 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 current behavior is by design. In my opinion, having Clang behave
consistently regardless of host build environment is less surprising.

> 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.

I have no strong opinion about this part. Certainly it is long past
the time when we should have a real Linux toolchain definition.

 - Daniel

> Cheers,
> --
> Rafael Ávila de Espíndola
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>




More information about the cfe-commits mailing list