[svn] gcry - r1408 - branches/LIBGCRYPT-1-4-BRANCH/src

svn author wk cvs at cvs.gnupg.org
Sun Nov 29 14:10:17 CET 2009


Author: wk
Date: 2009-11-29 14:10:17 +0100 (Sun, 29 Nov 2009)
New Revision: 1408

Modified:
   branches/LIBGCRYPT-1-4-BRANCH/src/ChangeLog
   branches/LIBGCRYPT-1-4-BRANCH/src/hwfeatures.c
Log:
Fix ia32 cpuid detection.


Modified: branches/LIBGCRYPT-1-4-BRANCH/src/ChangeLog
===================================================================
--- branches/LIBGCRYPT-1-4-BRANCH/src/ChangeLog	2009-11-29 12:30:21 UTC (rev 1407)
+++ branches/LIBGCRYPT-1-4-BRANCH/src/ChangeLog	2009-11-29 13:10:17 UTC (rev 1408)
@@ -1,3 +1,9 @@
+2009-11-29  Werner Koch  <wk at g10code.com>
+
+	* hwfeatures.c (detect_ia32_gnuc): Replace "=r" by "+r" so that
+	HAS_CPUDID is always initialized.  Thanks to Ben Hutchings for
+	pointing out this problem.
+
 2009-06-24  Werner Koch  <wk at g10code.com>
 
 	* fips.c (_gcry_initialize_fips_mode): No FIPS mode if

Modified: branches/LIBGCRYPT-1-4-BRANCH/src/hwfeatures.c
===================================================================
--- branches/LIBGCRYPT-1-4-BRANCH/src/hwfeatures.c	2009-11-29 12:30:21 UTC (rev 1407)
+++ branches/LIBGCRYPT-1-4-BRANCH/src/hwfeatures.c	2009-11-29 13:10:17 UTC (rev 1408)
@@ -67,7 +67,7 @@
      "jz .Lno_cpuid%=\n\t"       /* Toggling did not work, thus no CPUID.  */
      "movl $1, %0\n"             /* Worked. true -> HAS_CPUID.  */
      ".Lno_cpuid%=:\n\t"
-     : "=r" (has_cpuid)
+     : "+r" (has_cpuid)
      :
      : "%eax", "%ecx", "cc"
      );




More information about the Gnupg-commits mailing list