Inline assembly needs "cc" clobber to avoid miscompilation
Torbjörn Granlund
tg at gmplib.org
Sat Nov 23 01:23:03 UTC 2019
tg at gmplib.org (Torbjörn Granlund) writes:
I agree that adding a "cc" does not hurt, even if gcc does not need it
for all platforms. The absence of it for ppc is for exactly that
reason; gcc does not need it for this platform.
I am testing a more complete patch for this omission.
I created the attached patch. Unfortunately, clang 7.0.1-8 still fails
mpn/t-div.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 14509 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20191123/53cbfcd7/attachment-0001.obj>
-------------- next part --------------
(The __CLOBBER_CC construct is for GCC 1 compatibility. Yes, this is
obsolete. Now is not the time to clean it up.)
--
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-bugs
mailing list