On Tue, Mar 16, 2021 at 10:29 AM Jakub Jelinek <ja...@redhat.com> wrote: > > On Tue, Mar 16, 2021 at 09:46:33AM +0100, Richard Biener wrote: > > > shows we have an interface problem here -- we shouldn't need something > > > this > > > convoluted to walk through an argument list. But that's not your problem > > > or a problem with the patch. > > > > The caller side should IMHO always look at TYPE_ARG_TYPES since > > that's what determines the ABI. But IIRC there were problems in the past > > that TYPE_ARG_TYPES might be NULL but DECL_ARGUMENTS not?! > > Yes, for the K&R definitions > #pragma omp declare simd > int > foo (a, b, c) > int a, b, c; > { > return a + b + c; > }
The C frontend could still populate TYPE_ARG_TYPES here, OTOH IIRC K&R definitions work like unprototyped functions on the caller side, thus having varargs argument passing semantics? > Jakub >