Re: [PATCH] Fix fold_nonarray_ctor_reference (PR tree-optimization/49768)

2011-07-19 Thread Richard Guenther
On Mon, Jul 18, 2011 at 7:49 PM, Jakub Jelinek wrote: > Hi! > > As the testcase below shows, fold_nonarray_ctor_reference doesn't have a > correct check whether a field might overlap with the given offset, size > access (in this case a BIT_FIELD_REF).  The bitfield ref wants to read > 8 bits start

[PATCH] Fix fold_nonarray_ctor_reference (PR tree-optimization/49768)

2011-07-18 Thread Jakub Jelinek
Hi! As the testcase below shows, fold_nonarray_ctor_reference doesn't have a correct check whether a field might overlap with the given offset, size access (in this case a BIT_FIELD_REF). The bitfield ref wants to read 8 bits starting at offset 0, the bitfield defined there goes from bit 1 1 bit