1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

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.
This commit is contained in:
Bruno Haible
2019-12-22 10:08:36 +01:00
parent 91b5a3c3e3
commit f181860de4
5 changed files with 7 additions and 8 deletions

View File

@@ -1,5 +1,11 @@
2019-12-22 Bruno Haible <bruno@clisp.org> 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'. atoll: Assume that the compiler supports 'long long'.
* m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT. * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
* modules/atoll (Files): Remove longlong.m4. * modules/atoll (Files): Remove longlong.m4.

View File

@@ -112,14 +112,10 @@ enum
among all elementary types. */ among all elementary types. */
sa_alignment_long = sa_alignof (long), sa_alignment_long = sa_alignof (long),
sa_alignment_double = sa_alignof (double), sa_alignment_double = sa_alignof (double),
#if HAVE_LONG_LONG_INT
sa_alignment_longlong = sa_alignof (long long), sa_alignment_longlong = sa_alignof (long long),
#endif
sa_alignment_longdouble = sa_alignof (long double), sa_alignment_longdouble = sa_alignof (long double),
sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1) sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1)
#if HAVE_LONG_LONG_INT
| (sa_alignment_longlong - 1) | (sa_alignment_longlong - 1)
#endif
| (sa_alignment_longdouble - 1) | (sa_alignment_longdouble - 1)
) + 1 ) + 1
}; };

View File

@@ -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 Copyright (C) 2003-2004, 2006-2007, 2009-2019 Free Software Foundation,
dnl Inc. dnl Inc.
dnl This file is free software; the Free Software Foundation dnl This file is free software; the Free Software Foundation
@@ -11,5 +11,4 @@ AC_DEFUN([gl_MALLOCA],
dnl @ALLOCA@ and @LTALLOCA@. dnl @ALLOCA@ and @LTALLOCA@.
dnl gl_FUNC_ALLOCA dnl Already brought in by the module dependencies. dnl gl_FUNC_ALLOCA dnl Already brought in by the module dependencies.
AC_REQUIRE([gl_EEMALLOC]) AC_REQUIRE([gl_EEMALLOC])
AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
]) ])

View File

@@ -6,7 +6,6 @@ lib/malloca.h
lib/malloca.c lib/malloca.c
m4/malloca.m4 m4/malloca.m4
m4/eealloc.m4 m4/eealloc.m4
m4/longlong.m4
Depends-on: Depends-on:
alloca-opt alloca-opt

View File

@@ -29,7 +29,6 @@ m4/malloca.m4
m4/canonicalize.m4 m4/canonicalize.m4
m4/eealloc.m4 m4/eealloc.m4
m4/environ.m4 m4/environ.m4
m4/longlong.m4
m4/readlink.m4 m4/readlink.m4
m4/relocatable-lib.m4 m4/relocatable-lib.m4
m4/setenv.m4 m4/setenv.m4