linux-snps-arc.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Alexey.Brodkin@synopsys.com (Alexey Brodkin)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH] arc: Remove sometimes misleading toolchain check
Date: Wed, 7 Jun 2017 16:35:50 +0000	[thread overview]
Message-ID: <1496853349.18628.35.camel@synopsys.com> (raw)
In-Reply-To: <09e88740-9aa5-0526-abc3-9374fc9af5e9@synopsys.com>

Hi Vineet,

On Wed, 2017-06-07@09:33 -0700, Vineet Gupta wrote:
> On 05/25/2017 10:24 AM, Alexey Brodkin wrote:
> > 
> > Thinking of a toolchains for ARCompact and ARCv2 ISAs we implicitly
> > think about libgcc.a build for one of those ISAs which we're linking
> > with. And given there's no multiarch uClibc toolchain for ARC
> > (as probably for any other architecture) the assumption is the only way
> > to get libgcc.a for desired ISA is from a toolchain built right for that
> > same ISA.
> > 
> > So what we do we check what's GCC's default architecture ARC700 or not.
> > But generally speaking default arch makes not a lot of sense if explicit
> > command line option exist like "-mcpu=archs". In other words exactly the
> > same GCC might build executables for both ARC700 and ARC HS38.
> > 
> > But in real life libgcc could be easily built on a separate step
> > independently of the compiler and friends. And that really happens.
> > 
> > For example OpenEmbedded prefers to reuse the same toolchain for both
> > arches having libgcc built separately.
> 
> So this is a goodness of OE. But unfortunately those of living with simpler build?
> systems: Synopsys toolchain scripts or even Buildroot don't have this - right ?
> 
> So how will it help other developers avoid errors in the work flow when doing?
> kernel builds for ARCompact and ARCv2.
> 
> The right solution is to kill off the libgcc dependency altogether form kernel.?
> Just import math emulation code that we think is needed and build it in kernel !

Right and that's on my todo list as I'm suffering the most from this issue now :)

-Alexey

      reply	other threads:[~2017-06-07 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-25 17:24 [PATCH] arc: Remove sometimes misleading toolchain check Alexey Brodkin
2017-06-07 16:33 ` Vineet Gupta
2017-06-07 16:35   ` Alexey Brodkin [this message]

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=1496853349.18628.35.camel@synopsys.com \
    --to=alexey.brodkin@synopsys.com \
    --cc=linux-snps-arc@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).