[PATCH] Fix constant division for AMD64 assembly on Solaris/x86

Jussi Kivilinna jussi.kivilinna at iki.fi
Thu Jan 9 17:20:54 CET 2014


On 07.01.2014 17:30, Richard PALO wrote:
> Le 05/01/14 17:43, Jussi Kivilinna a écrit :
> 
> Hi, I needed to adjust your patch a bit to work, namely CFLAGS => CPPFLAGS and a bit of logic after the -Wa,--divide test as follows:
>> +    if test "$gcry_cv_gcc_as_const_division_with_wadivide_ok" = "no" ; then
>> +      CPPFLAGS="$_gcc_cppflags_save"
>> +    fi

Ah, configure.ac checks are inline assembly in C-language; so CFLAGS are used there. But CPPFLAGS are used for *.S assembly files. Does attached patch work? It modifies CFLAGS for the check and applies the workaround to CPPFLAGS if needed.

-Jussi

> 
> this seems to be alright for me now..
> 
> cheers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-amd64-assembly-on-solaris_x86.patch
Type: text/x-patch
Size: 6654 bytes
Desc: not available
URL: </pipermail/attachments/20140109/b0e12624/attachment.bin>


More information about the Gcrypt-devel mailing list