summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-03-08 10:36:05 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-03-08 10:36:05 +0100
commite967e86cd73d9c8aaba12d1dd533d9a74d6a5cf7 (patch)
tree0407084b0e2626002f0391e7e289870b8bbb600f
parent45ede9dfae145b6a181fce72b8c964d8387b8809 (diff)
downloadgmp-e967e86cd73d9c8aaba12d1dd533d9a74d6a5cf7.tar.gz
Removed __GMP_HAVE_PROTOTYPES and GMP_H_ANSI.
-rw-r--r--ChangeLog6
-rw-r--r--acinclude.m422
-rw-r--r--configure.in1
-rw-r--r--gmp-h.in38
4 files changed, 6 insertions, 61 deletions
diff --git a/ChangeLog b/ChangeLog
index e73248193..46e519349 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-08 Marco Bodrato <bodrato@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@gmplib.org>
* mpn/x86_64/fat/fat.c (fake_cpuid_table): Recognise "bulldozer".
diff --git a/acinclude.m4 b/acinclude.m4
index dfb270f00..f1f071f12 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -3599,28 +3599,6 @@ fi
])
-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 --git a/configure.in b/configure.in
index 3d0f029f5..b22dbce36 100644
--- a/configure.in
+++ b/configure.in
@@ -2096,7 +2096,6 @@ AC_SUBST(DEFN_LONG_LONG_LIMB)
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_CPP
-GMP_H_ANSI
# The C compiler on the build system, and associated tests.
diff --git a/gmp-h.in b/gmp-h.in
index 78d5ba45a..a922ccdc7 100644
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -61,44 +61,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#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.