remove bit_size & bit_offset from struct access_data
commit756f80a7153789c080695c5a1ef0a405339913b2
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Thu, 6 Apr 2017 19:51:15 +0000 (6 21:51 +0200)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Fri, 19 May 2017 03:35:01 +0000 (19 05:35 +0200)
tree79772444e5f9776ce34b31c402d129821726c5f0
parente35efe330c6ae7d154197c29b127560d569016d0
remove bit_size & bit_offset from struct access_data

In struct access_data, the fields: 'bit_offset', 'bit_size'
are always the ones corresponding to the 'result_type' and
are thus completely redundant.

Change this by removing these fields and directly using
the info from the 'result_type' field.

Note: the motivation for this change is the realization that the
      initialization of bitfields are buggy because 'bit_size'
      is never set for initializers. The bug could be solved by
      initializing 'bit_size' & 'bit_offset' but it is much
      simpler (and feel safer) to simply use the values from
      'result_type'.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
linearize.c