Re: C PATCH to fix ICE-on-invalid with __atomic_load (PR c/81231)

2017-07-04 Thread Joseph Myers
On Tue, 4 Jul 2017, Marek Polacek wrote: > This patch fixes an ICE-on-invalid with __atomic_*. We should check > that we're dealing with a complete type before we're accessing its > TYPE_SIZE_UNIT. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? OK. -- Joseph S. Myers jos...@codesou

C PATCH to fix ICE-on-invalid with __atomic_load (PR c/81231)

2017-07-04 Thread Marek Polacek
This patch fixes an ICE-on-invalid with __atomic_*. We should check that we're dealing with a complete type before we're accessing its TYPE_SIZE_UNIT. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2017-07-04 Marek Polacek PR c/81231 * c-common.c (sync_resolve_size): G