summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-22 10:08:36 +0100
committerBruno Haible <bruno@clisp.org>2019-12-22 10:08:36 +0100
commitf181860de413a26827602178f25593c9b14bc1e7 (patch)
tree2c2f79a22f1f996357a045bf0d42830fb1fb82ef
parent91b5a3c3e365de748d740e6a55d7b4ee7713eeef (diff)
downloadgnulib-f181860de413a26827602178f25593c9b14bc1e7.tar.gz
malloca: Assume that the compiler supports 'long long'.
* lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1. * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT. * modules/malloca (Files): Remove longlong.m4. * modules/relocatable-prog-wrapper (Files): Likewise.
-rw-r--r--ChangeLog6
-rw-r--r--lib/malloca.h4
-rw-r--r--m4/malloca.m43
-rw-r--r--modules/malloca1
-rw-r--r--modules/relocatable-prog-wrapper1
5 files changed, 7 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index fa580b51c0..40560e6ab6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2019-12-22 Bruno Haible <bruno@clisp.org>
+ malloca: Assume that the compiler supports 'long long'.
+ * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
+ * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
+ * modules/malloca (Files): Remove longlong.m4.
+ * modules/relocatable-prog-wrapper (Files): Likewise.
+
atoll: Assume that the compiler supports 'long long'.
* m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
* modules/atoll (Files): Remove longlong.m4.
diff --git a/lib/malloca.h b/lib/malloca.h
index 949db555e6..f2448f15b6 100644
--- a/lib/malloca.h
+++ b/lib/malloca.h
@@ -112,14 +112,10 @@ enum
among all elementary types. */
sa_alignment_long = sa_alignof (long),
sa_alignment_double = sa_alignof (double),
-#if HAVE_LONG_LONG_INT
sa_alignment_longlong = sa_alignof (long long),
-#endif
sa_alignment_longdouble = sa_alignof (long double),
sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1)
-#if HAVE_LONG_LONG_INT
| (sa_alignment_longlong - 1)
-#endif
| (sa_alignment_longdouble - 1)
) + 1
};
diff --git a/m4/malloca.m4 b/m4/malloca.m4
index 820f40a8a8..3033c70a99 100644
--- a/m4/malloca.m4
+++ b/m4/malloca.m4
@@ -1,4 +1,4 @@
-# malloca.m4 serial 1
+# malloca.m4 serial 2
dnl Copyright (C) 2003-2004, 2006-2007, 2009-2019 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
@@ -11,5 +11,4 @@ AC_DEFUN([gl_MALLOCA],
dnl @ALLOCA@ and @LTALLOCA@.
dnl gl_FUNC_ALLOCA dnl Already brought in by the module dependencies.
AC_REQUIRE([gl_EEMALLOC])
- AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
])
diff --git a/modules/malloca b/modules/malloca
index 0ae3fe08dc..9b7a3dbd25 100644
--- a/modules/malloca
+++ b/modules/malloca
@@ -6,7 +6,6 @@ lib/malloca.h
lib/malloca.c
m4/malloca.m4
m4/eealloc.m4
-m4/longlong.m4
Depends-on:
alloca-opt
diff --git a/modules/relocatable-prog-wrapper b/modules/relocatable-prog-wrapper
index db451ef333..d70d63e9e6 100644
--- a/modules/relocatable-prog-wrapper
+++ b/modules/relocatable-prog-wrapper
@@ -29,7 +29,6 @@ m4/malloca.m4
m4/canonicalize.m4
m4/eealloc.m4
m4/environ.m4
-m4/longlong.m4
m4/readlink.m4
m4/relocatable-lib.m4
m4/setenv.m4