Re: [PATCH v2] x86: Issue error for return/argument only with function body

2021-03-19 Thread Uros Bizjak via Gcc-patches
On Fri, Mar 19, 2021 at 1:11 PM H.J. Lu wrote: > > On Fri, Mar 19, 2021 at 1:39 AM Uros Bizjak wrote: > > > > On Thu, Mar 18, 2021 at 11:44 PM H.J. Lu wrote: > > > > > > If we never generate function body, we shouldn't issue errors for return > > > nor argument. Add init_cumulative_args_called

[PATCH v2] x86: Issue error for return/argument only with function body

2021-03-19 Thread H.J. Lu via Gcc-patches
86.h > > index 48749104b24..ad908c010b3 100644 > > --- a/gcc/config/i386/i386.h > > +++ b/gcc/config/i386/i386.h > > @@ -2945,6 +2945,9 @@ struct GTY(()) machine_function { > > function. */ > >BOOL_BITFIELD has_explicit_vzeroupper : 1; > > > > +