Build failures
Niels Möller
nisse at lysator.liu.se
Sun Mar 15 18:43:31 CET 2026
Torbjörn Granlund <tg at gmplib.org> writes:
> Niels Möller <nisse at lysator.liu.se> writes:
>
> gmp/tests/devel/try.c: In function 'call':
> gmp/tests/tests.h:86:45: error: too many arguments to function '(calling_conventions_function = (mp_limb_t (*)(void))function, & calling_conventions)'; expected 0, have 5
> 86 | (calling_conventions_function = (function), calling_conventions)
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> gmp/tests/devel/try.c:2466:17: note: in expansion of macro 'CALLING_CONVENTIONS'
> 2466 | e->retval = CALLING_CONVENTIONS (function)
>
> Do you have a fix for this, perchance?
Not sure if it works to change type from
mp_limb_t foo (void); // Now aka mp_limb_t foo()
to
mp_limb_t foo (...); // A varargs function
or of an initial mandatory argument is required, say
mp_limb_t foo (int dummy, ...);
I guess the "pure C" way would be to have use a different type for each
needed function signature.
I'm not familiar with these calling conventions tests, is it some
assembly function setting up the call?
/Niels
--
Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
Internet email is subject to wholesale government surveillance.
More information about the gmp-devel
mailing list