[Gmp-commit] /var/hg/gmp: longlong.h (i386): Add comment about "cc" clobber.

mercurial at gmplib.org mercurial at gmplib.org
Fri Apr 4 14:44:38 UTC 2014


details:   /var/hg/gmp/rev/4c9257433440
changeset: 16375:4c9257433440
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Fri Apr 04 16:44:35 2014 +0200
description:
longlong.h (i386): Add comment about "cc" clobber.

diffstat:

 ChangeLog  |  4 ++++
 longlong.h |  2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 2e8b8d2b26f0 -r 4c9257433440 ChangeLog
--- a/ChangeLog	Fri Apr 04 16:18:34 2014 +0200
+++ b/ChangeLog	Fri Apr 04 16:44:35 2014 +0200
@@ -1,3 +1,7 @@
+2014-04-04  Marc Glisse  <marc.glisse at inria.fr>
+
+	* longlong.h (i386): Add comment about "cc" clobber.
+
 2014-04-04  Torbjorn Granlund  <tege at gmplib.org>
 
 	* acinclude.m4 (X86_64_PATTERN): Generalise patterns to allow "noavx"
diff -r 2e8b8d2b26f0 -r 4c9257433440 longlong.h
--- a/longlong.h	Fri Apr 04 16:18:34 2014 +0200
+++ b/longlong.h	Fri Apr 04 16:44:35 2014 +0200
@@ -867,6 +867,8 @@
 #endif
 #endif
 
+/* On x86 and x86_64, every asm implicitly clobbers "flags" and "fpsr",
+   so we don't need __CLOBBER_CC.  */
 #if (defined (__i386__) || defined (__i486__)) && W_TYPE_SIZE == 32
 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
   __asm__ ("addl %5,%k1\n\tadcl %3,%k0"					\


More information about the gmp-commit mailing list