configure.ac (GCC_HEADER_STDINT): Invoke.
* configure.ac (GCC_HEADER_STDINT): Invoke. * backtrace.h: If we can't find <stdint.h>, use "gstdint.h". * btest.c: Don't include <stdint.h>. * dwarf.c: Likewise. * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild. Co-Authored-By: Ian Lance Taylor <iant@google.com> From-SVN: r191474
This commit is contained in:
parent
fb522d96cc
commit
768505569c
@ -1,3 +1,12 @@
|
||||
2012-09-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* configure.ac (GCC_HEADER_STDINT): Invoke.
|
||||
* backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
|
||||
* btest.c: Don't include <stdint.h>.
|
||||
* dwarf.c: Likewise.
|
||||
* configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
|
||||
|
||||
2012-09-18 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
PR bootstrap/54623
|
||||
|
@ -79,6 +79,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
|
||||
$(top_srcdir)/../config/lead-dot.m4 \
|
||||
$(top_srcdir)/../config/multi.m4 \
|
||||
$(top_srcdir)/../config/override.m4 \
|
||||
$(top_srcdir)/../config/stdint.m4 \
|
||||
$(top_srcdir)/../config/unwind_ipinfo.m4 \
|
||||
$(top_srcdir)/../config/warnings.m4 \
|
||||
$(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
|
||||
|
1
libbacktrace/aclocal.m4
vendored
1
libbacktrace/aclocal.m4
vendored
@ -972,6 +972,7 @@ m4_include([../config/depstand.m4])
|
||||
m4_include([../config/lead-dot.m4])
|
||||
m4_include([../config/multi.m4])
|
||||
m4_include([../config/override.m4])
|
||||
m4_include([../config/stdint.m4])
|
||||
m4_include([../config/unwind_ipinfo.m4])
|
||||
m4_include([../config/warnings.m4])
|
||||
m4_include([../libtool.m4])
|
||||
|
@ -34,9 +34,26 @@ POSSIBILITY OF SUCH DAMAGE. */
|
||||
#define BACKTRACE_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* We want to get a definition for uintptr_t, but we still care about
|
||||
systems that don't have <stdint.h>. */
|
||||
#if defined(__GLIBC__) && __GLIBC__ >= 2
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#elif defined(HAVE_STDINT_H)
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#else
|
||||
|
||||
/* Systems that don't have <stdint.h> must provide gstdint.h, e.g.,
|
||||
from GCC_HEADER_STDINT in configure.ac. */
|
||||
#include "gstdint.h"
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -34,7 +34,6 @@ POSSIBILITY OF SUCH DAMAGE. */
|
||||
libbacktrace library. */
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -71,6 +71,21 @@
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* The size of `char', as computed by sizeof. */
|
||||
#undef SIZEOF_CHAR
|
||||
|
||||
/* The size of `int', as computed by sizeof. */
|
||||
#undef SIZEOF_INT
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
#undef SIZEOF_LONG
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
#undef SIZEOF_SHORT
|
||||
|
||||
/* The size of `void *', as computed by sizeof. */
|
||||
#undef SIZEOF_VOID_P
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
|
1034
libbacktrace/configure
vendored
1034
libbacktrace/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -168,6 +168,8 @@ if test "$backtrace_supported" = "yes"; then
|
||||
fi
|
||||
AC_SUBST(BACKTRACE_SUPPORTED)
|
||||
|
||||
GCC_HEADER_STDINT(gstdint.h)
|
||||
|
||||
AC_CHECK_HEADERS(sys/mman.h)
|
||||
if test "$ac_cv_header_sys_mman_h" = "no"; then
|
||||
have_mmap=no
|
||||
|
@ -33,7 +33,6 @@ POSSIBILITY OF SUCH DAMAGE. */
|
||||
#include "config.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
|
Loading…
Reference in New Issue
Block a user