Re: [PATCH] x86: Check cfun != NULL before accessing silent_p

2021-03-20 Thread Martin Liška
On 3/20/21 1:21 PM, H.J. Lu wrote: |Since construct_container may be called with cfun == NULL, check cfun != NULL before accessing silent_p. | Thank you for the quick fix. Please use the minimal reproducer for a test-case: $ cat va-arg-pack-1.C #include void abort() { double ld; va_list

[PATCH] x86: Check cfun != NULL before accessing silent_p

2021-03-20 Thread H.J. Lu via Gcc-patches
Since construct_container may be called with cfun == NULL, check cfun != NULL before accessing silent_p. gcc/ PR target/99679 * config/i386/i386.c (construct_container): Check cfun != NULL before accessing silent_p. gcc/testsuite/ PR target/99679 * g++.ta