Problem with __gmp_expr
Torbjorn Granlund
tg at gmplib.org
Wed Jan 22 14:34:06 UTC 2014
Marc Glisse <marc.glisse at inria.fr> writes:
By the way, do we have a policy about breaking binary compatibility?
In this case, mixing old and new objects could result in crashes
(almost certainly at -O0, seldom at -O3). It should be possible to
prevent this issue by renaming __gmp_unary_expr and __gmp_binary_expr
(say adding a '2' at the end). It wouldn't be 100%, but I think only
questionable code would break.
I don't think we need to support compiling foo.cc with one GMP release
and bar.cc with another, and then link the objects to some
libgmpxx.{so,a}.
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-devel
mailing list