Page MenuHome GnuPG

again: Fix constant division for AMD64 assembly on Solaris/x86
Closed, InvalidPublic

Description

I'd like to report that the fix in commit
43376891c01f4aff1fbfb23beafebb5adfd0868c is still needed on Solaris 11.2 when
using the Solaris assembler on i86. For me the last part of the fix, i.e.

"asmfunc:\n\t"
 ".size asmfunc,.-asmfunc;\n\t"
 ".type asmfunc,@function;\n\t"

+ /* Test if assembler allows use of '/' for constant division
+ * (Solaris/x86 issue). If previous constant division check
+ * and "-Wa,--divide" workaround failed, this causes assembly
+ * to be disable on this machine. */
+ "xorl \$(123456789/12345678), %ebp;\n\t"

);

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

is sufficient to make libgcrypt 1.6.4 compile.

Details

Version
1