Re: [PATCH] c-family: Avoid ICE on va_arg [PR99324]

2021-03-02 Thread Joseph Myers
On Wed, 3 Mar 2021, Jakub Jelinek via Gcc-patches wrote: > Hi! > > build_va_arg calls the middle-end mark_addressable, which e.g. requires that > cfun is non-NULL. The following patch calls instead > c_common_mark_addressable_vec > which is the c-family variant similarly to the FE c_mark_addres

[PATCH] c-family: Avoid ICE on va_arg [PR99324]

2021-03-02 Thread Jakub Jelinek via Gcc-patches
Hi! build_va_arg calls the middle-end mark_addressable, which e.g. requires that cfun is non-NULL. The following patch calls instead c_common_mark_addressable_vec which is the c-family variant similarly to the FE c_mark_addressable and cxx_mark_addressable, except that it doesn't error on addres