This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add Android related compilation options and multilib options
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Chris Lattner <clattner at apple dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, Mark Mitchell <mark at codesourcery dot com>, Ian Lance Taylor <iant at google dot com>, Richard Guenther <richard dot guenther at gmail dot com>, Jing Yu <jingyu at google dot com>, gcc-patches at gcc dot gnu dot org, "Doug Kwan (???)" <dougkwan at google dot com>, nickc at redhat dot com, richard dot earnshaw at arm dot com, paul at codesourcery dot com
- Date: Thu, 18 Jun 2009 11:10:02 +0100
- Subject: Re: Add Android related compilation options and multilib options
- References: <85670fb80906151750g4b3f1bb7q46fd902621f7c479@mail.gmail.com> <84fc9c000906160236x1d8e8c67pe624401d54eb06be@mail.gmail.com> <m3prd3zys2.fsf@google.com> <4A380ABC.7060104@codesourcery.com> <B9ACF3EF-4C6A-47F8-A649-E9A585491872@apple.com> <4A381CE1.6040303@codesourcery.com> <Pine.LNX.4.64.0906162234310.29622@digraph.polyomino.org.uk> <DA398CC8-3BCA-4381-A729-39E7E6047174@apple.com> <Pine.LNX.4.64.0906162308240.29622@digraph.polyomino.org.uk> <75469222-8980-43DF-82B3-4DE99EE32EA8@apple.com>
Chris Lattner wrote:
> It's worth pointing out that LLVM does a bit of canonicalization of
> target triples internally to collapse actually identical triples into a
> canonical form (e.g. i[3456]x86-* -> i386-*).
It's worth pointing out that GCC generates very different code when
configured for i386-foo-bar as compared to when you configure it for
i686-foo-bar; those cpu types are not canonically the same, despite all
indicating the same backend.
> It sounds like there are many possible areas for improvement. In any
> case, I will butt out and let you guys figure out how to solve this
> issue with Android. I am very happy to admit that I have no idea how
> your toolchain should work.
I would just like to add that throughout this thread I have been unable to
read the word "-mandroid" without falling off my chair laughing. I think
that's a good reason for making it a command-line option :)
cheers,
DaveK