All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Triplett <josh@joshtriplett.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Christopher Li <sparse@chrisli.org>,
	linux-sparse@vger.kernel.org, michael.hennerich@analog.com
Subject: Re: [PATCH] parser: add Blackfin gcc info
Date: Wed, 6 Oct 2010 00:10:19 -0700	[thread overview]
Message-ID: <20101006071018.GB2320@feather> (raw)
In-Reply-To: <201010060138.04508.vapier@gentoo.org>

On Wed, Oct 06, 2010 at 01:38:02AM -0400, Mike Frysinger wrote:
> On Tuesday, October 05, 2010 22:33:21 Christopher Li wrote:
> > On Tue, Oct 5, 2010 at 6:34 PM, Mike Frysinger wrote:
> > >> I wonder, does it make sense to support these kinds of
> > >> architecture-specific builtins on all architectures, rather than
> > >> limiting them based on some specified target architecture?
> > >> 
> > >> Since Sparse doesn't generate code, it can easily target all
> > >> architectures simultaneously, but that doesn't mean we couldn't tell it
> > >> what architecture to target.  Sparse could default to targeting the
> > >> host architecture, which would avoid the need to pass extra flags in the
> > >> common case.
> > > 
> > > it does sound like it'd be useful to add an arch command line option.
> > >  but i hoped we could sneak in the Blackfin stuff first since other
> > > arches (like alpha) have been whitelisted.
> > 
> > Can we have some "ifdef" for the blackfin architecture in the pre buffer?
> > I agree with Josh, that do look like very much blackfin specific. We can
> > leave the ignore attribute alone for now.
> 
> how would #ifdefs help ?  i'm not building sparse for a Blackfin arch, host or 
> target wise.  if there's something more, you'd have to be specific as to what 
> you mean, otherwise i wont be able to send an updated patch.

I suspect that Chris meant that you could add_pre_buffer an #ifdef and
#endif surrounding the #define, so that the #define would only take
effect if Sparse (or the command-line options passed by cgcc or Linux)
defined some appropriate architecture-specific symbol for Blackfin.

> yes, these things are completely Blackfin specific, but i dont see how that's 
> a barrier for entry when both attributes and the builtin ignore lists contain 
> completely architecture specific stuff without any #ifdef logic.  using sparse 
> on the Linux kernel for the Blackfin port is pretty useless atm because of 
> these missing pieces.

Agreed.  At this point, it seems best to allow the Blackfin bits in to
fix the immediate problem, and independently fix the general problem and
apply the solution to all the arch-specific bits at once.  It certainly
seems unfair to single out Blackfin here.

- Josh Triplett

  reply	other threads:[~2010-10-06  7:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05  8:34 [PATCH] parser: add Blackfin gcc info Mike Frysinger
2010-10-05 16:18 ` Josh Triplett
2010-10-06  1:34   ` Mike Frysinger
2010-10-06  2:33     ` Christopher Li
2010-10-06  5:38       ` Mike Frysinger
2010-10-06  7:10         ` Josh Triplett [this message]
2010-10-06  8:40           ` Christopher Li
2010-10-06 14:52             ` Mike Frysinger
2010-10-06 16:32           ` Mike Frysinger
2010-10-06 21:14             ` Christopher Li
2010-10-06  7:05     ` Josh Triplett

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=20101006071018.GB2320@feather \
    --to=josh@joshtriplett.org \
    --cc=linux-sparse@vger.kernel.org \
    --cc=michael.hennerich@analog.com \
    --cc=sparse@chrisli.org \
    --cc=vapier@gentoo.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.