All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dibyendu Majumdar <mobile@majumdar.org.uk>
To: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: Linux-Sparse <linux-sparse@vger.kernel.org>
Subject: Re: Possible incorrect linearization of code (master branch)
Date: Mon, 6 Mar 2017 22:39:42 +0000	[thread overview]
Message-ID: <CACXZuxexwB_krnNULmiGMCySoaVqx1Q+KiuE_tPS7P59nT7giA@mail.gmail.com> (raw)
In-Reply-To: <CAExDi1RSA0qgBEbH8DH9w573-g1DrH4DhOrUo_GDdnKVh--F-w@mail.gmail.com>

On 6 March 2017 at 19:26, Luc Van Oostenryck
<luc.vanoostenryck@gmail.com> wrote:
> On Mon, Mar 6, 2017 at 7:47 PM, Dibyendu Majumdar
>> Because I have a modified
>> version of Sparse with all global state removed, merging changes is a
>> bit painful as it has be done manually.
>
> I can imagine this.
> I, of course, hve no idea why you (have to) do this but I can only very strongly
> advice you to try to avoid this as much as possible.
>

As I mentioned before I am using Sparse to create a JIT compiler for
C. So this needs to be callable as a library - and I need the ability
to call it many times. Moreover it must be possible to call several
instances of Sparse simultaneously without conflict. To achieve all
this, all global state is held in a set of structures. The main change
is that the most function calls have an additional argument. The other
changes are related to initialization of the various global structures
used by Sparse. Generally I try to keep the code as far as possible
identical to Sparse except for these changes. Even so merging is very
painful.

Regards
Dibyendu

  reply	other threads:[~2017-03-07  0:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-06 15:22 Possible incorrect linearization of code (master branch) Dibyendu Majumdar
2017-03-06 16:36 ` Luc Van Oostenryck
2017-03-06 18:47   ` Dibyendu Majumdar
2017-03-06 19:26     ` Luc Van Oostenryck
2017-03-06 22:39       ` Dibyendu Majumdar [this message]
2017-03-07  6:42         ` Luc Van Oostenryck
2017-03-07 15:45         ` Christopher Li
2017-03-07 17:13           ` Dibyendu Majumdar

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=CACXZuxexwB_krnNULmiGMCySoaVqx1Q+KiuE_tPS7P59nT7giA@mail.gmail.com \
    --to=mobile@majumdar.org.uk \
    --cc=linux-sparse@vger.kernel.org \
    --cc=luc.vanoostenryck@gmail.com \
    /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.