[PATCH] Linearize initializer
commit94b01672560dbe0ff48e4fd9c23846b772bfe2e1
authorChristopher Li <sparse@chrisli.org>
Wed, 3 Nov 2004 16:04:25 +0000 (3 09:04 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Apr 2005 04:03:55 +0000 (7 21:03 -0700)
treefa5a1d86d9ca401ed323bffc8ae9e2d200a64b26
parentf30f4471a147c88c7295f0c31f374b4c19e52b00
[PATCH] Linearize initializer

Here is a tentative patch to do initializer linearizations properly.

While I am learning the new initializer tree.  I think the current way
of initializing does not handle the bit field member correctly.  I can't
tell from the initializer tree that a member is a bit field.  Do I miss
some thing?

[ Linus' note: "expr->ctype" should have the type of the individual assignment (and
  thus the bitfield), but maybe I'm wrong.

  So check that first, but if I'm full of sh*t, we probably need to make
  the offset be a bit-offset in the EXPR_POS thing, and add a size field
  too.  ]

Anyway, here is the patch works for non bit field.
linearize.c