[Gmp-commit] /var/hg/gmp: Removed __GMP_HAVE_PROTOTYPES and GMP_H_ANSI.

mercurial at gmplib.org mercurial at gmplib.org
Thu Mar 8 10:37:23 CET 2012


details:   /var/hg/gmp/rev/b9fdf521d98d
changeset: 14740:b9fdf521d98d
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Thu Mar 08 10:36:05 2012 +0100
description:
Removed __GMP_HAVE_PROTOTYPES and GMP_H_ANSI.

diffstat:

 ChangeLog    |   6 ++++++
 acinclude.m4 |  22 ----------------------
 configure.in |   1 -
 gmp-h.in     |  38 --------------------------------------
 4 files changed, 6 insertions(+), 61 deletions(-)

diffs (104 lines):

diff -r d8195107574f -r b9fdf521d98d ChangeLog
--- a/ChangeLog	Thu Mar 08 09:11:59 2012 +0100
+++ b/ChangeLog	Thu Mar 08 10:36:05 2012 +0100
@@ -1,3 +1,9 @@
+2012-03-08 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* acinclude.m4 (GMP_H_ANSI): Remove.
+	* configure.in: Don't use GMP_H_ANSI.
+	* gmp-h.in (__GMP_HAVE_PROTOTYPES): Remove.
+
 2012-03-08  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpn/x86_64/fat/fat.c (fake_cpuid_table): Recognise "bulldozer".
diff -r d8195107574f -r b9fdf521d98d acinclude.m4
--- a/acinclude.m4	Thu Mar 08 09:11:59 2012 +0100
+++ b/acinclude.m4	Thu Mar 08 10:36:05 2012 +0100
@@ -3599,28 +3599,6 @@
 ])
 
 
-dnl  GMP_H_ANSI
-dnl  ----------
-dnl  Check whether gmp.h recognises the compiler as ANSI capable.
-
-AC_DEFUN([GMP_H_ANSI],
-[AC_REQUIRE([AC_PROG_CC_STDC])
-case $ac_cv_prog_cc_stdc in
-  no)
-    ;;
-  *)
-    AC_TRY_COMPILE(
-GMP_INCLUDE_GMP_H
-[#if ! __GMP_HAVE_PROTOTYPES
-die die die
-#endif
-],,,
-    [AC_MSG_WARN([gmp.h doesnt recognise compiler as ANSI, prototypes and "const" will be unavailable])])
-    ;;
-esac
-])
-
-
 dnl  GMP_H_EXTERN_INLINE
 dnl  -------------------
 dnl  If the compiler has an "inline" of some sort, check whether the
diff -r d8195107574f -r b9fdf521d98d configure.in
--- a/configure.in	Thu Mar 08 09:11:59 2012 +0100
+++ b/configure.in	Thu Mar 08 10:36:05 2012 +0100
@@ -2096,7 +2096,6 @@
 AC_PROG_CC
 AC_PROG_CC_STDC
 AC_PROG_CPP
-GMP_H_ANSI
 
 
 # The C compiler on the build system, and associated tests.
diff -r d8195107574f -r b9fdf521d98d gmp-h.in
--- a/gmp-h.in	Thu Mar 08 09:11:59 2012 +0100
+++ b/gmp-h.in	Thu Mar 08 10:36:05 2012 +0100
@@ -61,44 +61,6 @@
 #endif
 
 
-/* __STDC__ - some ANSI compilers define this only to 0, hence the use of
-       "defined" and not "__STDC__-0".  In particular Sun workshop C 5.0
-       sets __STDC__ to 0, but requires "##" for token pasting.
-
-   _AIX - gnu ansidecl.h asserts that all known AIX compilers are ANSI but
-       don't always define __STDC__.
-
-   __DECC - current versions of DEC C (5.9 for instance) for alpha are ANSI,
-       but don't define __STDC__ in their default mode.  Don't know if old
-       versions might have been K&R, but let's not worry about that unless
-       someone is still using one.
-
-   _mips - gnu ansidecl.h says the RISC/OS MIPS compiler is ANSI in SVR4
-       mode, but doesn't define __STDC__.
-
-   _MSC_VER - Microsoft C is ANSI, but __STDC__ is undefined unless the /Za
-       option is given (in which case it's 1).
-
-   _WIN32 - tested for by gnu ansidecl.h, no doubt on the assumption that
-      all w32 compilers are ansi.
-
-   Note: This same set of tests is used by gen-psqr.c and
-   demos/expr/expr-impl.h, so if anything needs adding, then be sure to
-   update those too.  */
-
-#if  defined (__STDC__)                                 \
-  || defined (__cplusplus)                              \
-  || defined (_AIX)                                     \
-  || defined (__DECC)                                   \
-  || (defined (__mips) && defined (_SYSTYPE_SVR4))      \
-  || defined (_MSC_VER)                                 \
-  || defined (_WIN32)
-#define __GMP_HAVE_PROTOTYPES   1
-#else
-#define __GMP_HAVE_PROTOTYPES   0
-#endif
-
-
 /* __GMP_DECLSPEC supports Windows DLL versions of libgmp, and is empty in
    all other circumstances.
 


More information about the gmp-commit mailing list