All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Julian Pidancet <julian.pidancet@gmail.com>
Cc: B29882@freescale.com, openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v2] Introduce multiarch DISTRO_FEATURE
Date: Wed, 23 Nov 2011 16:47:54 +0000	[thread overview]
Message-ID: <1322066874.15626.1.camel@ted> (raw)
In-Reply-To: <CAKZ=5EXYgDQTO9UQxcEOxxM0LCii2b59097J8k20=u-DgDiFuw@mail.gmail.com>

On Wed, 2011-11-23 at 16:39 +0000, Julian Pidancet wrote:
> On Wed, Nov 16, 2011 at 1:01 AM, Julian Pidancet
> <julian.pidancet@gmail.com> wrote:
> > This patch introduces a distro feature which enables gcc to produce
> > both 32bit and 64bit code, and enables binutils to operate on both
> > 32bit and 64bit binaries. It differs from multilib toolchains in
> > that it does not require to compile a version of the libc for each
> > architecture variant. However, the code produced for the secondary
> > architecture will not be linkable against the libc.
> >
> > v2: - Renamed the feature name from "biarch" to "multiarch". The GCC
> > installation manual claims that the mips-linux can be made a tri-arch
> > compiler (http://gcc.gnu.org/install/configure.html)
> >    - For x86_64, the compiler is made bi-arch by default, so nothing
> > has to be done in particular.
> >    - I analyzed the gcc/config.gcc from GCC sources and added in this
> > patch all the architectures that could be made biarch with the version
> > of gcc currently used in OE, which are powerpc, and sparc, in addition
> > to x86. mips and s390 will probably be supported in future versions of
> > gcc. For x86 and sparc, only the --enable-targets=all option is valid
> > to make this work (this option doesn't have any other side effects than
> > making the compiler bi-arch). For powerpc, I used the
> > --enable-targets=powerpc64 option (although 'all' also works).
> >
> > Note: - Untested on powerpc and sparc. But I believe it works the same
> > as with x86.
> >      - gcc in meta-toolchain is also made multiarch.
> >
> 
> Anybody got the time to review this ?

Funnily enough I was just talking with Saul about this. We're going to
try and expose this to some extended testing (which we try and do for
all compiler changes).

Cheers,

Richard




  reply	other threads:[~2011-11-23 16:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16  1:01 [PATCH v2] Introduce multiarch DISTRO_FEATURE Julian Pidancet
2011-11-23 16:39 ` Julian Pidancet
2011-11-23 16:47   ` Richard Purdie [this message]
2011-11-23 17:28     ` Julian Pidancet
2011-11-24  3:32 ` Khem Raj
2011-11-24 12:44   ` Julian Pidancet
2011-11-24 17:36     ` Khem Raj
2011-11-24 17:51       ` Richard Purdie
2011-11-24 22:38       ` Julian Pidancet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1322066874.15626.1.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=B29882@freescale.com \
    --cc=julian.pidancet@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.