summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-11-29 12:30:21 +0000
committerWerner Koch <wk@gnupg.org>2009-11-29 12:30:21 +0000
commitff9ba101831234f3877e1b44eeab3c048e660828 (patch)
tree4b2865dc49ffdc32defbedd29ea93f8621ba736c
parent9dc49828e33b45b3f9dcc2b4d6e03eab41341bc6 (diff)
downloadlibgcrypt-ff9ba101831234f3877e1b44eeab3c048e660828.tar.gz
Fix detection of cpuid statement.
-rw-r--r--README12
-rw-r--r--THANKS1
-rw-r--r--cipher/cipher.c2
-rw-r--r--src/ChangeLog6
-rw-r--r--src/hwfeatures.c2
5 files changed, 14 insertions, 9 deletions
diff --git a/README b/README
index 5b1050c8..3bab5996 100644
--- a/README
+++ b/README
@@ -192,13 +192,6 @@
make. Try gmake or grab the sources from a GNU archive and
install them.
- If you are cross-compiling and you get an error either building a
- tool called "yat2m" or running that tool, the problem is most
- likely a bad or missing native compiler. We require a standard
- C-89 compiler to produce an executable to be run on the build
- platform. You can explicitly set such a compiler with configure
- arguments. On HP/UX you might want to try: "CC_FOR_BUILD=c89".
-
Specific problems on some machines:
* IBM RS/6000 running AIX
@@ -216,6 +209,11 @@
./configure ac_cv_sys_symbol_underscore=yes
+ * Sparc64 CPUs
+
+ We have reports about failures in the AES module when
+ compiling using gcc (e.g. version 4.1.2) and the option -O3;
+ using -O2 solves the problem.
License
diff --git a/THANKS b/THANKS
index 856bac6a..4ba2a6c9 100644
--- a/THANKS
+++ b/THANKS
@@ -7,6 +7,7 @@ Allan Clark allanc@sco.com
Anand Kumria wildfire@progsoc.uts.edu.au
Andreas Metzler ametzler at downhill.at.eu.org
Ariel T Glenn ariel@columbia.edu
+Ben Hutchings ben decadent org uk
Bodo Moeller Bodo_Moeller@public.uni-hamburg.de
Brenno de Winter brenno@dewinter.com
Brian Moore bem@cmc.net
diff --git a/cipher/cipher.c b/cipher/cipher.c
index 2c33ee94..6d97c194 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -1394,7 +1394,7 @@ do_ctr_decrypt( gcry_cipher_hd_t c, byte *outbuf, const byte *inbuf,
/****************
* Encrypt INBUF to OUTBUF with the mode selected at open.
* inbuf and outbuf may overlap or be the same.
- * Depending on the mode some contraints apply to NBYTES.
+ * Depending on the mode some constraints apply to NBYTES.
*/
static gcry_err_code_t
cipher_encrypt (gcry_cipher_hd_t c, byte *outbuf,
diff --git a/src/ChangeLog b/src/ChangeLog
index 6b22caf8..a45f93fc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-29 Werner Koch <wk@g10code.com>
+
+ * hwfeatures.c (detect_ia32_gnuc): Repalce "=r" by "+r" so that
+ HAS-CPUDID is always initialized. Thanks to Ben Hutchings for
+ pointing out this problem.
+
2009-08-05 Werner Koch <wk@g10code.com>
* ath.h: Include sys/msg.h.
diff --git a/src/hwfeatures.c b/src/hwfeatures.c
index 2621305b..97442dba 100644
--- a/src/hwfeatures.c
+++ b/src/hwfeatures.c
@@ -67,7 +67,7 @@ detect_ia32_gnuc (void)
"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"
);