[git] GCRYPT - branch, LIBGCRYPT-1-5-BRANCH, updated. libgcrypt-1.5.0-13-g6feb29a

by Werner Koch cvs at cvs.gnupg.org
Thu Nov 8 17:08:08 CET 2012


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-5-BRANCH has been updated
       via  6feb29a67a0e6660c876055ee59f2e716ef8e7c2 (commit)
      from  423571e111d54dbf0aa6cc7e7ef1516ae4327b3d (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 6feb29a67a0e6660c876055ee59f2e716ef8e7c2
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Nov 8 15:38:44 2012 +0100

    Fix extern inline use for gcc > 4.3 in c99 mode
    
    * mpi/mpi-inline.h [!G10_MPI_INLINE_DECL]: Take care of changed extern
    inline semantics in gcc.
    --
    
    I am not use how this will work out with non-gcc. However, we had no
    problems in the past and thus this change is the least invasive for
    non-gcc compilers.
    
    GnuPG-bug-id: 1406, 1435

diff --git a/mpi/mpi-inline.h b/mpi/mpi-inline.h
index 88d9f56..94e2aec 100644
--- a/mpi/mpi-inline.h
+++ b/mpi/mpi-inline.h
@@ -28,8 +28,15 @@
 #ifndef G10_MPI_INLINE_H
 #define G10_MPI_INLINE_H
 
+/* Starting with gcc 4.3 "extern inline" conforms in c99 mode to the
+   c99 semantics.  To keep the useful old semantics we use an
+   attribute.  */
 #ifndef G10_MPI_INLINE_DECL
-#define G10_MPI_INLINE_DECL  extern __inline__
+# ifdef __GNUC_STDC_INLINE__
+#  define G10_MPI_INLINE_DECL  extern inline __attribute__ ((__gnu_inline__))
+# else
+#  define G10_MPI_INLINE_DECL  extern __inline__
+# endif
 #endif
 
 G10_MPI_INLINE_DECL  mpi_limb_t

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

Summary of changes:
 mpi/mpi-inline.h |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)


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




More information about the Gnupg-commits mailing list