Re: [PATCH] Fix undefined behavior in x86_64 backend (PR target/61656)

2014-07-11 Thread Jan Hubicka
> Hi! > > As mentioned in the PR, if bit_offset is not zero, subclasses array > may contain for unions more entries than classes array. We are going > to ignore the extra entries, because we only check the ones below words, > but as classes[words] and above is uninitialized, this triggers undefin

[PATCH] Fix undefined behavior in x86_64 backend (PR target/61656)

2014-07-11 Thread Jakub Jelinek
Hi! As mentioned in the PR, if bit_offset is not zero, subclasses array may contain for unions more entries than classes array. We are going to ignore the extra entries, because we only check the ones below words, but as classes[words] and above is uninitialized, this triggers undefined behavior.