https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87689

--- Comment #16 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Alan Modra from comment #12)
> A little more sophisticated.
> 
>       * fortran/trans-types.c (gfc_get_function_type): Use a varargs decl
>       unless we have args other than hidden ones.

Without having looked at exactly what the patch does: This sounds wrong
to em. On platforms where varargs have a different calling
signature from normal functions, this would be an ABI change.

It would probably make more sense to build the decl from the call
itself.

Reply via email to