linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: Dibyendu Majumdar <mobile@majumdar.org.uk>
Cc: Christopher Li <sparse@chrisli.org>,
	Linux-Sparse <linux-sparse@vger.kernel.org>,
	Ramsay Jones <ramsay@ramsayjones.plus.com>,
	Lance Richardson <lrichard@redhat.com>,
	Michael Stefaniuc <mstefani@mykolab.com>
Subject: Re: Sparse 0.5.1 RC5 released.
Date: Mon, 14 Aug 2017 01:03:32 +0200	[thread overview]
Message-ID: <CAExDi1TG6mLN6VL5f-4KnfnW9hSJjU2JcGptDcq-2+EtdUNmqw@mail.gmail.com> (raw)
In-Reply-To: <CACXZuxduhq5BxN4162NZL8z0hY3O7xMp7UKxXCBumRQSAnc-LQ@mail.gmail.com>

On Mon, Aug 14, 2017 at 12:50 AM, Dibyendu Majumdar
<mobile@majumdar.org.uk> wrote:
>>> 1) Without single store shortcut it fails to compile. The error generated is:
>>>
>>> error: no result for pseudo
>>> minilua.c:5593:24: error: failed to output instruction load.64*
>>> %r13018 <- 16[VOID]
>>>
>>> minilua.c:5593:24: error: failed to output load.64*    %r13018 <- 16[VOID]
>>
>> Yes. Please forget about the single store shortcut: it's broken.
>> But I'm not sure: do you mean "without the shortcut" or
>> "without the patch that remove the shortcut"?
>
> Sorry this one is with the patch that removed the shortcut.

OK.

>>> Here are the linearized outputs:
>>>
>>> I am not sure this helps you.
>>
>> Not really, I was expecting the result of the preprocessing to avoid
>> header dependencies and use the code as you're using it.
>> For example, sparse doesn't know about the __DMR_C__ macro,
>> we're not using the same header files, not even the same platform.
>
> I can save the pre-processed output if that helps. Will send you a
> link.

Yes, it really helps for lots of reasons.
For example, I wasn't able to reproduce the Wine bug with the plain
file because triggered the problem was in a header file for platform X
version Y and I hadn't any problem here.

> The __DMR_C__ macro is just to help me avoid constructs that
> Sparse LLVM cannot handle.

Yes, I saw that.

>> But really, having small testcases with a clear description of exactly
>> what is wrong, help a lot.
>
> Well I think that we need a combination of tests - real world
> programs, as well as short, to the point, tests. The way I see it - if
> we get problems with a real world program, we then start digging and
> end up with short test that reproduces the problem. Just creating
> simple short tests does not tend to cover all scenarios as it is
> impossible to construct a comprehensive test suite (unless we can
> reuse someone else's test suite - which is something I am trying to
> do).

Sure, I also use some big files for testing too, some very big, but
before you can really begin to look at things you need at least have
an idea of what is wrong and having a small problem save a lot of time.
Yes, finding a small reproducer can be a lot of work.

Regards,
-- Luc

  reply	other threads:[~2017-08-13 23:03 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-12 14:15 Sparse 0.5.1 RC5 released Christopher Li
2017-08-12 20:26 ` Michael Stefaniuc
2017-08-12 20:51   ` Luc Van Oostenryck
2017-08-12 21:36 ` Ramsay Jones
2017-08-12 21:41   ` Christopher Li
2017-08-13 12:56 ` Dibyendu Majumdar
2017-08-13 13:10   ` Luc Van Oostenryck
2017-08-13 13:18     ` Dibyendu Majumdar
2017-08-13 13:54       ` Dibyendu Majumdar
2017-08-13 14:24         ` Dibyendu Majumdar
2017-08-13 14:18       ` Luc Van Oostenryck
2017-08-13 14:25         ` Luc Van Oostenryck
2017-08-13 14:26           ` Dibyendu Majumdar
2017-08-13 15:07             ` Luc Van Oostenryck
2017-08-13 15:12               ` Dibyendu Majumdar
2017-08-13 16:40           ` Luc Van Oostenryck
2017-08-13 14:44         ` Dibyendu Majumdar
2017-08-13 15:00           ` Dibyendu Majumdar
2017-08-13 15:13             ` Luc Van Oostenryck
2017-08-13 19:03   ` Christopher Li
2017-08-13 19:10     ` Dibyendu Majumdar
2017-08-13 19:20       ` Christopher Li
2017-08-13 19:56         ` Dibyendu Majumdar
2017-08-13 20:09       ` Luc Van Oostenryck
2017-08-13 20:20         ` Dibyendu Majumdar
2017-08-13 21:16           ` Luc Van Oostenryck
2017-08-13 22:12             ` Dibyendu Majumdar
2017-08-13 22:36               ` Luc Van Oostenryck
2017-08-13 22:50                 ` Dibyendu Majumdar
2017-08-13 23:03                   ` Luc Van Oostenryck [this message]
2017-08-13 22:55                 ` Dibyendu Majumdar
2017-08-13 23:10                   ` Luc Van Oostenryck
2017-08-13 23:17                     ` Dibyendu Majumdar
2017-08-13 23:20                       ` Dibyendu Majumdar
2017-08-13 23:28                         ` Luc Van Oostenryck
2017-08-13 23:35                           ` Dibyendu Majumdar
2017-08-13 23:40                             ` Luc Van Oostenryck
2017-08-13 23:44                               ` Dibyendu Majumdar
2017-08-13 23:22                       ` Luc Van Oostenryck
2017-08-13 23:25                         ` Dibyendu Majumdar
2017-08-13 23:35                           ` Luc Van Oostenryck
2017-08-13 23:42                             ` Dibyendu Majumdar
2017-08-13 23:47                               ` Luc Van Oostenryck
2017-08-13 23:58                                 ` Luc Van Oostenryck
2017-08-14  0:30                                   ` Luc Van Oostenryck
2017-08-14  0:30               ` Christopher Li
2017-08-14  0:34                 ` Luc Van Oostenryck
2017-08-14  0:36                   ` Christopher Li
2017-08-14 18:48                 ` Dibyendu Majumdar
2017-08-14 18:52                   ` Christopher Li
2017-08-14 18:56                     ` Christopher Li
2017-08-14 18:58                     ` Dibyendu Majumdar
2017-08-14 19:23                       ` Christopher Li
2017-08-14 19:47                         ` Christopher Li
2017-08-14 20:30                           ` Christopher Li
2017-08-14 16:15           ` Luc Van Oostenryck
2017-08-14 16:17             ` Dibyendu Majumdar
2017-08-14 16:25               ` Luc Van Oostenryck
2017-08-14 16:29                 ` Dibyendu Majumdar
2017-08-14 16:44                   ` Luc Van Oostenryck
2017-08-14 16:54                     ` Dibyendu Majumdar
2017-08-14 18:51                       ` Luc Van Oostenryck
2017-08-14 18:24     ` Christopher Li

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=CAExDi1TG6mLN6VL5f-4KnfnW9hSJjU2JcGptDcq-2+EtdUNmqw@mail.gmail.com \
    --to=luc.vanoostenryck@gmail.com \
    --cc=linux-sparse@vger.kernel.org \
    --cc=lrichard@redhat.com \
    --cc=mobile@majumdar.org.uk \
    --cc=mstefani@mykolab.com \
    --cc=ramsay@ramsayjones.plus.com \
    --cc=sparse@chrisli.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).