[git] GCRYPT - branch, LIBGCRYPT-1-6-BRANCH, updated. libgcrypt-1.6.2-2-ge189934

by Werner Koch cvs at cvs.gnupg.org
Tue Sep 2 09:28:33 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, LIBGCRYPT-1-6-BRANCH has been updated
       via  e189934b7e240e405421fcabfe4b0b68ca7a8350 (commit)
      from  8c88814ec6eca32d2224c02f1d47557ae54ebae1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e189934b7e240e405421fcabfe4b0b68ca7a8350
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Sep 2 09:25:20 2014 +0200

    asm: Allow building x86 and amd64 using old compilers.
    
    * src/hwf-x86.c (get_xgetbv): Build only if AVX support is enabled.
    --
    
    Old as(1) versions do not support the xgetvb instruction.  Thus build
    this function only if asm support has been requested.
    
    GnuPG-bug-id: 1708

diff --git a/src/hwf-x86.c b/src/hwf-x86.c
index 0591b4f..7ee246d 100644
--- a/src/hwf-x86.c
+++ b/src/hwf-x86.c
@@ -96,6 +96,7 @@ get_cpuid(unsigned int in, unsigned int *eax, unsigned int *ebx,
     *edx = regs[3];
 }
 
+#if defined(ENABLE_AVX_SUPPORT) || defined(ENABLE_AVX2_SUPPORT)
 static unsigned int
 get_xgetbv(void)
 {
@@ -109,6 +110,7 @@ get_xgetbv(void)
 
   return t_eax;
 }
+#endif /* ENABLE_AVX_SUPPORT || ENABLE_AVX2_SUPPORT */
 
 #endif /* i386 && GNUC */
 
@@ -145,6 +147,7 @@ get_cpuid(unsigned int in, unsigned int *eax, unsigned int *ebx,
     *edx = regs[3];
 }
 
+#if defined(ENABLE_AVX_SUPPORT) || defined(ENABLE_AVX2_SUPPORT)
 static unsigned int
 get_xgetbv(void)
 {
@@ -158,6 +161,7 @@ get_xgetbv(void)
 
   return t_eax;
 }
+#endif /* ENABLE_AVX_SUPPORT || ENABLE_AVX2_SUPPORT */
 
 #endif /* x86-64 && GNUC */
 

-----------------------------------------------------------------------

Summary of changes:
 src/hwf-x86.c |    4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org




More information about the Gnupg-commits mailing list