[PATCH 09/20] Prepare for creating hidden aliases of all routines

Niels Möller nisse at lysator.liu.se
Mon Mar 4 20:48:37 CET 2013


Richard Henderson <rth at twiddle.net> writes:

> index 1b27998..ff0dc45 100644
> --- a/gmp-h.in
> +++ b/gmp-h.in
> @@ -251,6 +251,10 @@ typedef __mpq_struct *mpq_ptr;
>       __GMP_PUBLIC_DATA	- for declaring data variables
>       __GMP_PUBLIC_ALIAS	- for re-declaring symbols with another name
>  
> +   When using GCC and building an ELF shared library, we'll arrange for
> +   the rest of GMP to see a hidden alias.  The true public symbol will
> +   be created in the individual source files.
> +

This is supposed to be an implementation detail, right? I.e., it should
depend only on if gmp *itself* is compiled with gcc, and work the same
no matter which compiler is used for the application *using* gmp (and
which will be processing the public gmp.h header)?

I admit I don't understand the fine details here.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-devel mailing list