Re: [PATCH] expr: Fix up constant_byte_string bitfield handling [PR98366]

2020-12-19 Thread Richard Biener
On December 18, 2020 9:41:24 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >constant_byte_string now uses a convert_to_bytes function, which >doesn't >handle bitfields at all (don't punt on them, just puts them into wrong >bits >or bytes). Furthermore, I don't see a reason why that function should >

[PATCH] expr: Fix up constant_byte_string bitfield handling [PR98366]

2020-12-18 Thread Jakub Jelinek via Gcc-patches
Hi! constant_byte_string now uses a convert_to_bytes function, which doesn't handle bitfields at all (don't punt on them, just puts them into wrong bits or bytes). Furthermore, I don't see a reason why that function should exist at all, it duplicates native_encode_initializer functionality. Excep