linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fix loading of partially defined bitfield
@ 2017-08-07  1:33 Luc Van Oostenryck
  2017-08-07  1:33 ` [PATCH 1/3] new helper: def_opcode() Luc Van Oostenryck
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Luc Van Oostenryck @ 2017-08-07  1:33 UTC (permalink / raw)
  To: Dibyendu Majumdar; +Cc: linux-sparse, Luc Van Oostenryck

The goal of this series is to fix the problem present in sparse
when a bitfield in an uninitialized automatic variable is first
set then read-back.

In this case the bitfield itself is initialized but not the
remaining of the structure/word and sparse was not smart
enough to handle it.

This is for testing only and the patches are not meant to 
be applied on the main tree becasue it need the new SSA
construction to handle the undefined vars correctly.

(two other simplifications is also needed to make the
generated code a no-op as it should be but not yet
implemented).

The whole code is available in the git repository at:

  git://github.com/lucvoo/sparse.git fix-loading-partialy-defined-bitfields

----------------------------------------------------------------
Luc Van Oostenryck (3):
      new helper: def_opcode()
      change loading of bitfields
      simplify ((A & M') | B ) & M when M' & M == 0

 linearize.c                | 15 +++++++-----
 simplify.c                 | 61 ++++++++++++++++++++++++++++++++++++++++------
 validation/bitfield-size.c |  6 +++--
 3 files changed, 66 insertions(+), 16 deletions(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-07  2:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07  1:33 [PATCH 0/3] fix loading of partially defined bitfield Luc Van Oostenryck
2017-08-07  1:33 ` [PATCH 1/3] new helper: def_opcode() Luc Van Oostenryck
2017-08-07  1:33 ` [PATCH 2/3] change loading of bitfields Luc Van Oostenryck
2017-08-07  1:33 ` [PATCH 3/3] simplify ((A & M') | B ) & M when M' & M == 0 Luc Van Oostenryck
2017-08-07  1:59 ` [PATCH 0/3] fix loading of partially defined bitfield Christopher Li
2017-08-07  2:00   ` Christopher Li

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).