Re: [PATCH] gimple-fold: Handle bitfields in fold_const_aggregate_ref_1 [PR93121]

2020-07-20 Thread Richard Biener
On Sat, 18 Jul 2020, Jakub Jelinek wrote: > Hi! > > When working on __builtin_bit_cast that needs to handle bitfields too, > I've made the following change to handle at least some bitfields in > fold_const_aggregate_ref_1 (those that have integral representative). > It already handles some, but o

[PATCH] gimple-fold: Handle bitfields in fold_const_aggregate_ref_1 [PR93121]

2020-07-18 Thread Jakub Jelinek via Gcc-patches
Hi! When working on __builtin_bit_cast that needs to handle bitfields too, I've made the following change to handle at least some bitfields in fold_const_aggregate_ref_1 (those that have integral representative). It already handles some, but only those that start and end at byte boundaries. Boots