2012-11-12 23:53:47 +08:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_INIT(package-unused, version-unused, libsanitizer)
|
|
|
|
AC_CONFIG_SRCDIR([include/sanitizer/common_interface_defs.h])
|
2012-11-15 08:03:37 +08:00
|
|
|
|
2015-01-27 20:50:46 +08:00
|
|
|
AM_ENABLE_MULTILIB(, ..)
|
|
|
|
|
2012-11-15 08:03:37 +08:00
|
|
|
AC_MSG_CHECKING([for --enable-version-specific-runtime-libs])
|
|
|
|
AC_ARG_ENABLE(version-specific-runtime-libs,
|
|
|
|
[ --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory ],
|
|
|
|
[case "$enableval" in
|
|
|
|
yes) version_specific_libs=yes ;;
|
|
|
|
no) version_specific_libs=no ;;
|
|
|
|
*) AC_MSG_ERROR([Unknown argument to enable/disable version-specific libs]);;
|
|
|
|
esac],
|
|
|
|
[version_specific_libs=no])
|
|
|
|
AC_MSG_RESULT($version_specific_libs)
|
|
|
|
|
2014-01-10 02:13:39 +08:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
2012-11-15 08:03:37 +08:00
|
|
|
# Do not delete or change the following two lines. For why, see
|
|
|
|
# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
target_alias=${target_alias-$host_alias}
|
|
|
|
AC_SUBST(target_alias)
|
2012-12-12 05:32:11 +08:00
|
|
|
GCC_LIBSTDCXX_RAW_CXX_FLAGS
|
2012-11-15 08:03:37 +08:00
|
|
|
|
2013-03-22 22:14:42 +08:00
|
|
|
AM_INIT_AUTOMAKE(foreign no-dist)
|
2012-11-16 23:19:15 +08:00
|
|
|
AM_MAINTAINER_MODE
|
2012-11-15 08:03:37 +08:00
|
|
|
|
2020-01-24 19:24:25 +08:00
|
|
|
GCC_WITH_TOOLEXECLIBDIR
|
|
|
|
|
2012-11-15 08:03:37 +08:00
|
|
|
# Calculate toolexeclibdir
|
|
|
|
# Also toolexecdir, though it's only used in toolexeclibdir
|
|
|
|
case ${version_specific_libs} in
|
|
|
|
yes)
|
|
|
|
# Need the gcc compiler version to know where to install libraries
|
|
|
|
# and header files if --enable-version-specific-runtime-libs option
|
|
|
|
# is selected.
|
|
|
|
toolexecdir='$(libdir)/gcc/$(target_alias)'
|
|
|
|
toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
|
|
|
|
;;
|
|
|
|
no)
|
|
|
|
if test -n "$with_cross_host" &&
|
|
|
|
test x"$with_cross_host" != x"no"; then
|
|
|
|
# Install a library built with a cross compiler in tooldir, not libdir.
|
|
|
|
toolexecdir='$(exec_prefix)/$(target_alias)'
|
2020-01-24 19:24:25 +08:00
|
|
|
case ${with_toolexeclibdir} in
|
|
|
|
no)
|
|
|
|
toolexeclibdir='$(toolexecdir)/lib'
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
toolexeclibdir=${with_toolexeclibdir}
|
|
|
|
;;
|
|
|
|
esac
|
2012-11-15 08:03:37 +08:00
|
|
|
else
|
|
|
|
toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
|
|
|
|
toolexeclibdir='$(libdir)'
|
|
|
|
fi
|
|
|
|
multi_os_directory=`$CC -print-multi-os-directory`
|
|
|
|
case $multi_os_directory in
|
|
|
|
.) ;; # Avoid trailing /.
|
|
|
|
*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(toolexecdir)
|
|
|
|
AC_SUBST(toolexeclibdir)
|
2012-11-12 23:53:47 +08:00
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AM_PROG_AS
|
2014-01-10 02:13:39 +08:00
|
|
|
AC_PROG_RANLIB
|
2012-11-12 23:53:47 +08:00
|
|
|
|
|
|
|
AC_LIBTOOL_DLOPEN
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
2014-01-10 02:13:39 +08:00
|
|
|
AC_PROG_AWK
|
|
|
|
case "$AWK" in
|
|
|
|
"") AC_MSG_ERROR([can't build without awk]) ;;
|
|
|
|
esac
|
|
|
|
|
2012-11-12 23:53:47 +08:00
|
|
|
AC_SUBST(enable_shared)
|
|
|
|
AC_SUBST(enable_static)
|
|
|
|
|
2012-11-23 08:31:54 +08:00
|
|
|
AC_CHECK_SIZEOF([void *])
|
|
|
|
|
2012-11-15 08:03:37 +08:00
|
|
|
if test "${multilib}" = "yes"; then
|
|
|
|
multilib_arg="--enable-multilib"
|
|
|
|
else
|
|
|
|
multilib_arg=
|
|
|
|
fi
|
2012-11-23 08:31:54 +08:00
|
|
|
|
|
|
|
# Get target configury.
|
|
|
|
unset TSAN_SUPPORTED
|
re PR sanitizer/59061 (Port leaksanitizer)
PR sanitizer/59061
* common.opt (static-liblsan): Add.
* config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
Define.
* flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
SANITIZE_RETURN.
* opts.c (common_handle_option): Handle -fsanitize=leak.
* gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
(LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
(LIBUBSAN_EARLY_SPEC): Remove.
(SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
(SANITIZER_SPEC): Add -fsanitize=leak handling.
(sanitize_spec_function): Handle %sanitize(leak).
* doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
* c-c++-common/asan/no-redundant-instrumentation-7.c: Fix
cleanup-tree-dump directive.
* configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
* configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
* configure: Regenerated.
* lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
* lsan/Makefile.in: Regenerated.
From-SVN: r205290
2013-11-23 05:13:08 +08:00
|
|
|
unset LSAN_SUPPORTED
|
2020-11-26 00:31:39 +08:00
|
|
|
unset HWASAN_SUPPORTED
|
2012-11-23 08:31:54 +08:00
|
|
|
. ${srcdir}/configure.tgt
|
|
|
|
AM_CONDITIONAL(TSAN_SUPPORTED, [test "x$TSAN_SUPPORTED" = "xyes"])
|
re PR sanitizer/59061 (Port leaksanitizer)
PR sanitizer/59061
* common.opt (static-liblsan): Add.
* config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
Define.
* flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
SANITIZE_RETURN.
* opts.c (common_handle_option): Handle -fsanitize=leak.
* gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
(LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
(LIBUBSAN_EARLY_SPEC): Remove.
(SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
(SANITIZER_SPEC): Add -fsanitize=leak handling.
(sanitize_spec_function): Handle %sanitize(leak).
* doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
* c-c++-common/asan/no-redundant-instrumentation-7.c: Fix
cleanup-tree-dump directive.
* configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
* configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
* configure: Regenerated.
* lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
* lsan/Makefile.in: Regenerated.
From-SVN: r205290
2013-11-23 05:13:08 +08:00
|
|
|
AM_CONDITIONAL(LSAN_SUPPORTED, [test "x$LSAN_SUPPORTED" = "xyes"])
|
2020-11-26 00:31:39 +08:00
|
|
|
AM_CONDITIONAL(HWASAN_SUPPORTED, [test "x$HWASAN_SUPPORTED" = "xyes"])
|
2012-11-12 23:53:47 +08:00
|
|
|
|
2013-11-29 20:30:36 +08:00
|
|
|
# Check for functions needed.
|
2018-06-14 03:51:42 +08:00
|
|
|
AC_CHECK_FUNCS(clock_getres clock_gettime clock_settime lstat readlink)
|
2013-11-29 20:30:36 +08:00
|
|
|
|
|
|
|
# Common libraries that we need to link against for all sanitizer libs.
|
2016-01-15 04:27:49 +08:00
|
|
|
link_sanitizer_common='-lpthread -lm'
|
2015-10-22 17:47:17 +08:00
|
|
|
|
|
|
|
# At least for glibc, shm_open is in librt. But don't pull that
|
|
|
|
# in if it still doesn't give us the function we want. This
|
|
|
|
# test is copied from libgomp.
|
|
|
|
AC_CHECK_LIB(rt, shm_open,
|
|
|
|
[link_sanitizer_common="-lrt $link_sanitizer_common"])
|
2013-11-29 20:30:36 +08:00
|
|
|
|
2016-01-15 04:27:49 +08:00
|
|
|
# Do a configure time check for -ldl
|
|
|
|
AC_CHECK_LIB(dl, dlsym,
|
|
|
|
[link_sanitizer_common="-ldl $link_sanitizer_common"])
|
|
|
|
|
2013-11-29 20:30:36 +08:00
|
|
|
# Set up the set of additional libraries that we need to link against for libasan.
|
|
|
|
link_libasan=$link_sanitizer_common
|
|
|
|
AC_SUBST(link_libasan)
|
|
|
|
|
2020-11-26 00:31:37 +08:00
|
|
|
# Set up the set of additional libraries that we need to link against for libhwasan.
|
|
|
|
link_libhwasan=$link_sanitizer_common
|
|
|
|
AC_SUBST(link_libhwasan)
|
|
|
|
|
2013-11-29 20:30:36 +08:00
|
|
|
# Set up the set of additional libraries that we need to link against for libtsan.
|
|
|
|
link_libtsan=$link_sanitizer_common
|
|
|
|
AC_SUBST(link_libtsan)
|
|
|
|
|
|
|
|
# Set up the set of additional libraries that we need to link against for libubsan.
|
|
|
|
link_libubsan=$link_sanitizer_common
|
|
|
|
AC_SUBST(link_libubsan)
|
|
|
|
|
|
|
|
# Set up the set of additional libraries that we need to link against for liblsan.
|
|
|
|
link_liblsan=$link_sanitizer_common
|
|
|
|
AC_SUBST(link_liblsan)
|
|
|
|
|
2015-10-22 17:47:17 +08:00
|
|
|
|
|
|
|
# At least for glibc, clock_gettime is in librt. But don't pull that
|
|
|
|
# in if it still doesn't give us the function we want. This
|
|
|
|
# test is copied from libgomp.
|
|
|
|
AC_CHECK_LIB(rt, clock_gettime,
|
|
|
|
[link_libasan="-lrt $link_libasan"
|
|
|
|
link_libtsan="-lrt $link_libtsan"
|
|
|
|
# Other sanitizers do not override clock_* API
|
|
|
|
])
|
|
|
|
|
2012-11-25 02:24:13 +08:00
|
|
|
case "$host" in
|
2015-10-22 17:47:17 +08:00
|
|
|
*-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
|
|
|
|
*) MAC_INTERPOSE=false ;;
|
2012-11-25 02:24:13 +08:00
|
|
|
esac
|
2012-12-04 15:00:35 +08:00
|
|
|
AM_CONDITIONAL(USING_MAC_INTERPOSE, $MAC_INTERPOSE)
|
2012-11-25 02:24:13 +08:00
|
|
|
|
2014-01-10 02:13:39 +08:00
|
|
|
backtrace_supported=yes
|
|
|
|
|
2014-01-23 22:32:05 +08:00
|
|
|
AC_MSG_CHECKING([for necessary platform features])
|
|
|
|
case "$target" in
|
|
|
|
*-*-linux*)
|
|
|
|
# Some old Linux distributions miss required syscalls.
|
|
|
|
sanitizer_supported=no
|
|
|
|
AC_TRY_COMPILE([#include <sys/syscall.h>],[
|
|
|
|
syscall (__NR_gettid);
|
|
|
|
syscall (__NR_futex);
|
|
|
|
syscall (__NR_exit_group);
|
|
|
|
], [sanitizer_supported=yes])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
sanitizer_supported=yes
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_MSG_RESULT($sanitizer_supported)
|
|
|
|
AM_CONDITIONAL(SANITIZER_SUPPORTED, test "$sanitizer_supported" = yes)
|
|
|
|
|
2014-01-10 02:13:39 +08:00
|
|
|
# Test for __sync support.
|
|
|
|
AC_CACHE_CHECK([__sync extensions],
|
|
|
|
[libsanitizer_cv_sys_sync],
|
|
|
|
[if test -n "${with_target_subdir}"; then
|
|
|
|
libsanitizer_cv_sys_sync=yes
|
|
|
|
else
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([int i;],
|
|
|
|
[__sync_bool_compare_and_swap (&i, i, i);
|
|
|
|
__sync_lock_test_and_set (&i, 1);
|
|
|
|
__sync_lock_release (&i);])],
|
|
|
|
[libsanitizer_cv_sys_sync=yes],
|
|
|
|
[libsanitizer_cv_sys_sync=no])
|
|
|
|
fi])
|
|
|
|
if test "$libsanitizer_cv_sys_sync" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE_SYNC_FUNCTIONS], 1,
|
|
|
|
[Define to 1 if you have the __sync functions])
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Test for __atomic support.
|
|
|
|
AC_CACHE_CHECK([__atomic extensions],
|
|
|
|
[libsanitizer_cv_sys_atomic],
|
|
|
|
[if test -n "${with_target_subdir}"; then
|
|
|
|
libsanitizer_cv_sys_atomic=yes
|
|
|
|
else
|
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([int i;],
|
|
|
|
[__atomic_load_n (&i, __ATOMIC_ACQUIRE);
|
|
|
|
__atomic_store_n (&i, 1, __ATOMIC_RELEASE);])],
|
|
|
|
[libsanitizer_cv_sys_atomic=yes],
|
|
|
|
[libsanitizer_cv_sys_atomic=no])
|
|
|
|
fi])
|
|
|
|
if test "$libsanitizer_cv_sys_atomic" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE_ATOMIC_FUNCTIONS], 1,
|
|
|
|
[Define to 1 if you have the __atomic functions])
|
|
|
|
fi
|
|
|
|
|
|
|
|
# The library needs to be able to read the executable itself. Compile
|
|
|
|
# a file to determine the executable format. The awk script
|
|
|
|
# filetype.awk prints out the file type.
|
|
|
|
AC_CACHE_CHECK([output filetype],
|
|
|
|
[libsanitizer_cv_sys_filetype],
|
|
|
|
[filetype=
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([int i;], [int j;])],
|
|
|
|
[filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`],
|
|
|
|
[AC_MSG_FAILURE([compiler failed])])
|
|
|
|
libsanitizer_cv_sys_filetype=$filetype])
|
|
|
|
|
|
|
|
# Match the file type to decide what files to compile.
|
|
|
|
FORMAT_FILE=
|
|
|
|
case "$libsanitizer_cv_sys_filetype" in
|
|
|
|
elf*) FORMAT_FILE="elf.lo" ;;
|
|
|
|
*) AC_MSG_WARN([could not determine output file type])
|
|
|
|
FORMAT_FILE="unknown.lo"
|
|
|
|
backtrace_supported=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(FORMAT_FILE)
|
|
|
|
|
|
|
|
# ELF defines.
|
|
|
|
elfsize=
|
|
|
|
case "$libsanitizer_cv_sys_filetype" in
|
|
|
|
elf32) elfsize=32 ;;
|
|
|
|
elf64) elfsize=64 ;;
|
|
|
|
esac
|
|
|
|
AC_DEFINE_UNQUOTED([BACKTRACE_ELF_SIZE], [$elfsize], [ELF size: 32 or 64])
|
|
|
|
|
|
|
|
BACKTRACE_SUPPORTED=0
|
|
|
|
if test "$backtrace_supported" = "yes"; then
|
|
|
|
BACKTRACE_SUPPORTED=1
|
|
|
|
fi
|
|
|
|
AC_SUBST(BACKTRACE_SUPPORTED)
|
|
|
|
|
|
|
|
GCC_HEADER_STDINT(gstdint.h)
|
|
|
|
|
* sanitizer_common/sanitizer_symbolizer_libbacktrace.h
(LibbacktraceSymbolizer::Demangle): New declaration.
* sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
(POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
method if possible.
* sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
"demangle.h" if SANITIZE_CP_DEMANGLE is defined.
(struct CplusV3DemangleData): New type.
(CplusV3DemangleCallback, CplusV3Demangle): New functions.
(SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
SymbolizeDataCallback): Use CplusV3Demangle.
* sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
-DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
* libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
cplus_demangle_init_info, cplus_demangle_mangled_name,
cplus_demangle_operators, cplus_demangle_print,
cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
Define.
(__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
(memcmp, strncmp): Redefine.
* libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
../../libiberty/cp-demangle.c.
* libbacktrace/bridge.cc (__asan_internal_memcmp,
__asan_internal_strncmp): New functions.
* sanitizer_common/Makefile.in: Regenerated.
* libbacktrace/Makefile.in: Regenerated.
* configure: Regenerated.
* configure.ac: Regenerated.
* config.h.in: Regenerated.
From-SVN: r206477
2014-01-10 02:16:40 +08:00
|
|
|
AC_CHECK_HEADERS(sys/mman.h alloca.h)
|
2014-01-10 02:13:39 +08:00
|
|
|
if test "$ac_cv_header_sys_mman_h" = "no"; then
|
|
|
|
have_mmap=no
|
|
|
|
else
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
# When built as a GCC target library, we can't do a link test. We
|
|
|
|
# simply assume that if we have mman.h, we have mmap.
|
|
|
|
have_mmap=yes
|
|
|
|
else
|
|
|
|
AC_CHECK_FUNC(mmap, [have_mmap=yes], [have_mmap=no])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$have_mmap" = "no"; then
|
|
|
|
VIEW_FILE=read.lo
|
|
|
|
ALLOC_FILE=alloc.lo
|
|
|
|
else
|
|
|
|
VIEW_FILE=mmapio.lo
|
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
This patch updates GCC to use autoconf 2.69 and automake 1.15.1.
(That's not the latest automake version, but it's the one used by
binutils-gdb, with which consistency is desirable, and in any case
seems a useful incremental update that should make a future update to
1.16.1 easier.)
The changes are generally similar to the binutils-gdb ones, and are
copied from there where shared files and directories are involved
(there are some further changes to such shared directories, however,
which I'd expect to apply to binutils-gdb once this patch is in GCC).
Largely, obsolete AC_PREREQ calls are removed, while many
AC_LANG_SOURCE calls are added to avoid warnings from aclocal and
autoconf. Multilib support is no longer included in core automake,
meaning that multilib.am needs copying from automake's contrib
directory into the GCC source tree. Autoconf 2.69 has Go support, so
local copies of that support are removed. I hope the D support will
soon be submitted to upstream autoconf so the local copy of that can
be removed in a future update. Changes to how automake generates
runtest calls mean quotes are removed from RUNTEST definitions in five
lib*/testsuite/Makefile.am files (libatomic, libgomp, libitm,
libphobos, libvtv; some others have RUNTEST definitions without
quotes, which are still OK); libgo and libphobos also get
-Wno-override added to AM_INIT_AUTOMAKE so those overrides of RUNTEST
do not generate automake warnings.
Note that the regeneration did not include regeneration of
fixincludes/config.h.in (attempting such regeneration resulted in all
the USED_FOR_TARGET conditionals disappearing; and I don't see
anything in the fixincludes/ directory that would result in such
conditionals being generated, unlike in the gcc/ directory). Also
note that libvtv/testsuite/other-tests/Makefile.in was not
regenerated; that directory is not listed as a subdirectory for which
Makefile.in gets regenerated by calling "automake" in libvtv/, so I'm
not sure how it's meant to be regenerated.
While I mostly fixed warnings should running aclocal / automake /
autoconf, there were various such warnings from automake in the
libgfortran, libgo, libgomp, liboffloadmic, libsanitizer, libphobos
directories that I did not fix, preferring to leave those to the
relevant subsystem maintainers. Specifically, most of those warnings
were of the following form (example from libgfortran):
Makefile.am:48: warning: source file 'caf/single.c' is in a subdirectory,
Makefile.am:48: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they
will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
I think it's best for the relevant maintainers to add subdir-objects
and do any other associated Makefile.am changes needed. In some cases
the paths in the warnings involved ../; I don't know if that adds any
extra complications to the use of subdir-objects.
I've tested this with native, cross and Canadian cross builds. The
risk of any OS-specific issues should I hope be rather lower than if a
libtool upgrade were included (we *should* do such an upgrade at some
point, but it's more complicated - it involves identifying all our
local libtool changes to see if any aren't included in the upstream
version we update to, and reverting an upstream libtool patch that's
inappropriate for use in GCC); I think it would be better to get this
update into GCC so that people can test in different configurations
and we can fix any issues found, rather than to try to get more and
more testing done before it goes in.
top level:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* multilib.am: New file. From automake.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ, use AC_LANG_SOURCE.
* ar-lib: New file.
* test-driver: New file.
* configure: Re-generate.
config:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* math.m4, tls.m4: Use AC_LANG_SOURCE.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* override.m4 (_GCC_AUTOCONF_VERSION): Bump from 2.64 to 2.69.
fixincludes:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, configure: Regenerate.
gcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use single
line for second argument of AC_DEFINE_UNQUOTED.
* doc/install.texi (Tools/packages necessary for modifying GCC):
Update to autoconf 2.69 and automake 1.15.1.
* aclocal.m4, config.in, configure: Regenerate.
gnattools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
gotools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* config/go.m4: Remove file.
* Makefile.am (ACLOCAL_AMFLAGS): Do not use -I ./config.
* configure.ac: Remove AC_PREREQ. Do not include config/go.m4.
* Makefile.in, aclocal.m4, configure: Regenerate.
intl:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS, remove AC_PREREQ.
* configure: Re-generate.
* config.h.in: Re-generate.
* aclocal.m4: Re-generate.
libada:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
libatomic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* acinclude.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libbacktrace:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libcc1:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libcpp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* aclocal.m4, config.in, configure: Regenerate.
libdecnumber:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* aclocal.m4.
libffi:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove doc/libffi.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, fficonfig.h.in,
include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
Regenerate.
libgcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* configure: Regenerate.
libgfortran:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libgo [logically part of this change but omitted from the commit]:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* config/go.m4: Remove file.
* config/libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use
-Wno-override in AM_INIT_AUTOMAKE call.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libgomp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libgomp.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libhsail-rt:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libiberty:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* config.in: Re-generate.
libitm:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libitm.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libobjc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, config.h.in, configure: Regenerate.
liboffloadmic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* plugin/Makefile.am: Include multilib.am.
* plugin/configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, plugin/Makefile.in,
plugin/aclocal.m4, plugin/configure: Regenerate.
libphobos:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use -Wno-override in
AM_INIT_AUTOMAKE call.
* m4/autoconf.m4: Add extra argument to AC_LANG_DEFINE call.
* m4/druntime/os.m4: Use AC_LANG_SOURCE.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, libdruntime/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
libquadmath:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.8. Add info-in-builddir.
(all-local): Define outside conditional code.
(CLEANFILES): Remove libquadmath.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libsanitizer:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, asan/Makefile.in, configure,
interception/Makefile.in, libbacktrace/Makefile.in,
lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
ubsan/Makefile.in: Regenerate.
libssp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.9.5.
* configure.ac: Remove AC_PREREQ. Quote argument to
AC_RUN_IFELSE.
* Makefile.in, aclocal.m4, configure: Regenerate.
libstdc++-v3:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, doc/Makefile.in,
include/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
python/Makefile.in, src/Makefile.in, src/c++11/Makefile.in,
src/c++17/Makefile.in, src/c++98/Makefile.in,
src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
libvtv:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
lto-plugin:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
zlib:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Modernize AC_INIT call, remove AC_PREREQ.
* Makefile.am (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add foreign.
* Makefile.in: Re-generate.
* aclocal.m4: Re-generate.
* configure: Re-generate.
From-SVN: r265695
2018-11-01 01:03:16 +08:00
|
|
|
AC_PREPROC_IFELSE([AC_LANG_SOURCE([
|
2014-01-10 02:13:39 +08:00
|
|
|
#include <sys/mman.h>
|
|
|
|
#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
|
|
|
|
#error no MAP_ANONYMOUS
|
|
|
|
#endif
|
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
This patch updates GCC to use autoconf 2.69 and automake 1.15.1.
(That's not the latest automake version, but it's the one used by
binutils-gdb, with which consistency is desirable, and in any case
seems a useful incremental update that should make a future update to
1.16.1 easier.)
The changes are generally similar to the binutils-gdb ones, and are
copied from there where shared files and directories are involved
(there are some further changes to such shared directories, however,
which I'd expect to apply to binutils-gdb once this patch is in GCC).
Largely, obsolete AC_PREREQ calls are removed, while many
AC_LANG_SOURCE calls are added to avoid warnings from aclocal and
autoconf. Multilib support is no longer included in core automake,
meaning that multilib.am needs copying from automake's contrib
directory into the GCC source tree. Autoconf 2.69 has Go support, so
local copies of that support are removed. I hope the D support will
soon be submitted to upstream autoconf so the local copy of that can
be removed in a future update. Changes to how automake generates
runtest calls mean quotes are removed from RUNTEST definitions in five
lib*/testsuite/Makefile.am files (libatomic, libgomp, libitm,
libphobos, libvtv; some others have RUNTEST definitions without
quotes, which are still OK); libgo and libphobos also get
-Wno-override added to AM_INIT_AUTOMAKE so those overrides of RUNTEST
do not generate automake warnings.
Note that the regeneration did not include regeneration of
fixincludes/config.h.in (attempting such regeneration resulted in all
the USED_FOR_TARGET conditionals disappearing; and I don't see
anything in the fixincludes/ directory that would result in such
conditionals being generated, unlike in the gcc/ directory). Also
note that libvtv/testsuite/other-tests/Makefile.in was not
regenerated; that directory is not listed as a subdirectory for which
Makefile.in gets regenerated by calling "automake" in libvtv/, so I'm
not sure how it's meant to be regenerated.
While I mostly fixed warnings should running aclocal / automake /
autoconf, there were various such warnings from automake in the
libgfortran, libgo, libgomp, liboffloadmic, libsanitizer, libphobos
directories that I did not fix, preferring to leave those to the
relevant subsystem maintainers. Specifically, most of those warnings
were of the following form (example from libgfortran):
Makefile.am:48: warning: source file 'caf/single.c' is in a subdirectory,
Makefile.am:48: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they
will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
I think it's best for the relevant maintainers to add subdir-objects
and do any other associated Makefile.am changes needed. In some cases
the paths in the warnings involved ../; I don't know if that adds any
extra complications to the use of subdir-objects.
I've tested this with native, cross and Canadian cross builds. The
risk of any OS-specific issues should I hope be rather lower than if a
libtool upgrade were included (we *should* do such an upgrade at some
point, but it's more complicated - it involves identifying all our
local libtool changes to see if any aren't included in the upstream
version we update to, and reverting an upstream libtool patch that's
inappropriate for use in GCC); I think it would be better to get this
update into GCC so that people can test in different configurations
and we can fix any issues found, rather than to try to get more and
more testing done before it goes in.
top level:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* multilib.am: New file. From automake.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ, use AC_LANG_SOURCE.
* ar-lib: New file.
* test-driver: New file.
* configure: Re-generate.
config:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* math.m4, tls.m4: Use AC_LANG_SOURCE.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* override.m4 (_GCC_AUTOCONF_VERSION): Bump from 2.64 to 2.69.
fixincludes:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, configure: Regenerate.
gcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use single
line for second argument of AC_DEFINE_UNQUOTED.
* doc/install.texi (Tools/packages necessary for modifying GCC):
Update to autoconf 2.69 and automake 1.15.1.
* aclocal.m4, config.in, configure: Regenerate.
gnattools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
gotools:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* config/go.m4: Remove file.
* Makefile.am (ACLOCAL_AMFLAGS): Do not use -I ./config.
* configure.ac: Remove AC_PREREQ. Do not include config/go.m4.
* Makefile.in, aclocal.m4, configure: Regenerate.
intl:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS, remove AC_PREREQ.
* configure: Re-generate.
* config.h.in: Re-generate.
* aclocal.m4: Re-generate.
libada:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* configure: Regenerate.
libatomic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* acinclude.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libbacktrace:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libcc1:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libcpp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* aclocal.m4, config.in, configure: Regenerate.
libdecnumber:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* aclocal.m4.
libffi:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove doc/libffi.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, fficonfig.h.in,
include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
Regenerate.
libgcc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* configure: Regenerate.
libgfortran:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libgo [logically part of this change but omitted from the commit]:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* config/go.m4: Remove file.
* config/libtool.m4: Use AC_LANG_SOURCE.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. Use
-Wno-override in AM_INIT_AUTOMAKE call.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libgomp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libgomp.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libhsail-rt:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure: Regenerate.
libiberty:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Remove AC_PREREQ.
* configure: Re-generate.
* config.in: Re-generate.
libitm:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Add info-in-builddir.
(CLEANFILES): Remove libitm.info.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
libobjc:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ.
* aclocal.m4, config.h.in, configure: Regenerate.
liboffloadmic:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* plugin/Makefile.am: Include multilib.am.
* plugin/configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, plugin/Makefile.in,
plugin/aclocal.m4, plugin/configure: Regenerate.
libphobos:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use -Wno-override in
AM_INIT_AUTOMAKE call.
* m4/autoconf.m4: Add extra argument to AC_LANG_DEFINE call.
* m4/druntime/os.m4: Use AC_LANG_SOURCE.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, libdruntime/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
libquadmath:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.8. Add info-in-builddir.
(all-local): Define outside conditional code.
(CLEANFILES): Remove libquadmath.info.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
libsanitizer:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, asan/Makefile.in, configure,
interception/Makefile.in, libbacktrace/Makefile.in,
lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
ubsan/Makefile.in: Regenerate.
libssp:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
(AUTOMAKE_OPTIONS): Remove 1.9.5.
* configure.ac: Remove AC_PREREQ. Quote argument to
AC_RUN_IFELSE.
* Makefile.in, aclocal.m4, configure: Regenerate.
libstdc++-v3:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* Makefile.in, aclocal.m4, configure, doc/Makefile.in,
include/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
python/Makefile.in, src/Makefile.in, src/c++11/Makefile.in,
src/c++17/Makefile.in, src/c++98/Makefile.in,
src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
libvtv:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
* configure.ac: Remove AC_PREREQ.
* testsuite/Makefile.am (RUNTEST): Remove quotes.
* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
Regenerate.
lto-plugin:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
zlib:
2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856
* Makefile.am: Include multilib.am.
Merge from binutils-gdb:
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
* configure.ac: Modernize AC_INIT call, remove AC_PREREQ.
* Makefile.am (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add foreign.
* Makefile.in: Re-generate.
* aclocal.m4: Re-generate.
* configure: Re-generate.
From-SVN: r265695
2018-11-01 01:03:16 +08:00
|
|
|
])], [ALLOC_FILE=mmap.lo], [ALLOC_FILE=alloc.lo])
|
2014-01-10 02:13:39 +08:00
|
|
|
fi
|
|
|
|
AC_SUBST(VIEW_FILE)
|
|
|
|
AC_SUBST(ALLOC_FILE)
|
|
|
|
|
|
|
|
BACKTRACE_USES_MALLOC=0
|
|
|
|
if test "$ALLOC_FILE" = "alloc.lo"; then
|
|
|
|
BACKTRACE_USES_MALLOC=1
|
|
|
|
fi
|
|
|
|
AC_SUBST(BACKTRACE_USES_MALLOC)
|
|
|
|
|
|
|
|
# Don't care about thread support
|
|
|
|
BACKTRACE_SUPPORTS_THREADS=0
|
|
|
|
AC_SUBST(BACKTRACE_SUPPORTS_THREADS)
|
|
|
|
|
|
|
|
# Check for dl_iterate_phdr.
|
|
|
|
AC_CHECK_HEADERS(link.h)
|
|
|
|
if test "$ac_cv_header_link_h" = "no"; then
|
|
|
|
have_dl_iterate_phdr=no
|
|
|
|
else
|
|
|
|
# When built as a GCC target library, we can't do a link test.
|
|
|
|
AC_EGREP_HEADER([dl_iterate_phdr], [link.h], [have_dl_iterate_phdr=yes],
|
|
|
|
[have_dl_iterate_phdr=no])
|
|
|
|
fi
|
|
|
|
if test "$have_dl_iterate_phdr" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_DL_ITERATE_PHDR, 1, [Define if dl_iterate_phdr is available.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check for the fcntl function.
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
case "${host}" in
|
|
|
|
*-*-mingw*) have_fcntl=no ;;
|
|
|
|
*) have_fcntl=yes ;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
AC_CHECK_FUNC(fcntl, [have_fcntl=yes], [have_fcntl=no])
|
|
|
|
fi
|
|
|
|
if test "$have_fcntl" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE_FCNTL], 1,
|
|
|
|
[Define to 1 if you have the fcntl function])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_DECLS(strnlen)
|
|
|
|
|
|
|
|
# Check for getexecname function.
|
|
|
|
if test -n "${with_target_subdir}"; then
|
|
|
|
case "${host}" in
|
|
|
|
*-*-solaris2*) have_getexecname=yes ;;
|
|
|
|
*) have_getexecname=no ;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
AC_CHECK_FUNC(getexecname, [have_getexecname=yes], [have_getexecname=no])
|
|
|
|
fi
|
|
|
|
if test "$have_getexecname" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_GETEXECNAME, 1, [Define if getexecname is available.])
|
|
|
|
fi
|
|
|
|
|
2015-04-13 16:59:55 +08:00
|
|
|
# Check for rpc/xdr.h
|
|
|
|
AC_CHECK_HEADERS(rpc/xdr.h)
|
|
|
|
if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
|
|
|
|
rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
|
|
|
|
else
|
|
|
|
rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check for tirpc/rpc/xdr.h
|
|
|
|
AC_CHECK_HEADERS(tirpc/rpc/xdr.h)
|
|
|
|
if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
|
|
|
|
rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
|
|
|
|
else
|
|
|
|
rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST([RPC_DEFS], [$rpc_defs])
|
|
|
|
|
2014-01-10 02:13:39 +08:00
|
|
|
AM_CONDITIONAL(LIBBACKTRACE_SUPPORTED,
|
|
|
|
[test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"])
|
|
|
|
|
|
|
|
AH_BOTTOM([#include "libbacktrace/backtrace-rename.h"])
|
|
|
|
AC_CONFIG_FILES([Makefile libsanitizer.spec libbacktrace/backtrace-supported.h])
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
2012-11-12 23:53:47 +08:00
|
|
|
|
2020-11-26 00:31:39 +08:00
|
|
|
AC_CONFIG_FILES(AC_FOREACH([DIR], [interception sanitizer_common libbacktrace lsan asan ubsan], [DIR/Makefile ]),
|
2012-11-12 23:53:47 +08:00
|
|
|
[cat > vpsed$$ << \_EOF
|
|
|
|
s!`test -f '$<' || echo '$(srcdir)/'`!!
|
|
|
|
_EOF
|
|
|
|
sed -f vpsed$$ $ac_file > tmp$$
|
|
|
|
mv tmp$$ $ac_file
|
|
|
|
rm vpsed$$
|
|
|
|
echo 'MULTISUBDIR =' >> $ac_file
|
2012-11-16 00:00:47 +08:00
|
|
|
ml_norecursion=yes
|
|
|
|
. ${multi_basedir}/config-ml.in
|
|
|
|
AS_UNSET([ml_norecursion])
|
2012-11-12 23:53:47 +08:00
|
|
|
])
|
|
|
|
|
2012-11-23 08:31:54 +08:00
|
|
|
if test "x$TSAN_SUPPORTED" = "xyes"; then
|
2012-11-23 06:03:11 +08:00
|
|
|
AC_CONFIG_FILES(AC_FOREACH([DIR], [tsan], [DIR/Makefile ]),
|
|
|
|
[cat > vpsed$$ << \_EOF
|
|
|
|
s!`test -f '$<' || echo '$(srcdir)/'`!!
|
|
|
|
_EOF
|
|
|
|
sed -f vpsed$$ $ac_file > tmp$$
|
|
|
|
mv tmp$$ $ac_file
|
|
|
|
rm vpsed$$
|
|
|
|
echo 'MULTISUBDIR =' >> $ac_file
|
|
|
|
ml_norecursion=yes
|
|
|
|
. ${multi_basedir}/config-ml.in
|
|
|
|
AS_UNSET([ml_norecursion])
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
|
2020-11-26 00:31:39 +08:00
|
|
|
if test "x$HWASAN_SUPPORTED" = "xyes"; then
|
|
|
|
AC_CONFIG_FILES(AC_FOREACH([DIR], [hwasan], [DIR/Makefile ]),
|
|
|
|
[cat > vpsed$$ << \_EOF
|
|
|
|
s!`test -f '$<' || echo '$(srcdir)/'`!!
|
|
|
|
_EOF
|
|
|
|
sed -f vpsed$$ $ac_file > tmp$$
|
|
|
|
mv tmp$$ $ac_file
|
|
|
|
rm vpsed$$
|
|
|
|
echo 'MULTISUBDIR =' >> $ac_file
|
|
|
|
ml_norecursion=yes
|
|
|
|
. ${multi_basedir}/config-ml.in
|
|
|
|
AS_UNSET([ml_norecursion])
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
|
2015-01-23 19:53:04 +08:00
|
|
|
AC_SUBST([TSAN_TARGET_DEPENDENT_OBJECTS])
|
2016-11-09 06:04:09 +08:00
|
|
|
AC_SUBST([SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS])
|
2015-01-23 19:53:04 +08:00
|
|
|
|
2022-02-03 22:47:10 +08:00
|
|
|
AC_ARG_ENABLE([werror],
|
|
|
|
[AS_HELP_STRING([--disable-werror], [disable building with -Werror])])
|
|
|
|
|
|
|
|
ACX_PROG_CC_WARNING_OPTS([-Wextra -Wall -Wwrite-strings \
|
|
|
|
-Wmissing-format-attribute -Wcast-qual],
|
|
|
|
[WARN_FLAGS])
|
|
|
|
AS_IF([test "x$enable_werror" != "xno"],
|
|
|
|
[WARN_FLAGS="$WARN_FLAGS -Werror"])
|
|
|
|
AC_SUBST([WARN_FLAGS])
|
|
|
|
|
2017-01-17 17:38:48 +08:00
|
|
|
# Determine what GCC version number to use in filesystem paths.
|
|
|
|
GCC_BASE_VER
|
|
|
|
|
2017-11-18 05:34:50 +08:00
|
|
|
# Add CET specific flags if Intel CET is enabled.
|
|
|
|
GCC_CET_FLAGS(CET_FLAGS)
|
|
|
|
EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
|
|
|
|
EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS"
|
|
|
|
EXTRA_ASFLAGS=$CET_FLAGS
|
|
|
|
AC_SUBST(EXTRA_ASFLAGS)
|
|
|
|
AC_SUBST(EXTRA_CFLAGS)
|
|
|
|
AC_SUBST(EXTRA_CXXFLAGS)
|
|
|
|
|
2012-11-12 23:53:47 +08:00
|
|
|
AC_OUTPUT
|