You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[h2root] Adapt to GCC 8 passing convention for string length
According to the `gfortran` argument passing conventions, for any
Fortran procedure, the compiler will automatically define a C prototype.
This is what we use in `h2root`.
Note that for procedures like `HROPEN` that takes string arguments, the
signature of the C prototype will have extra arguments for the string
lengths, which we also have to include in our forward declaration and
usage. However, the type of these was changed with GCC 8 to size_t, so
we have to also account for that as recommended in [1]. Otherwise, we
get undefined behavor, which causes the `h2root` test to fail on ARM64
with GCC 14.
[1] https://gcc.gnu.org/onlinedocs/gfortran/Argument-passing-conventions.html
0 commit comments