mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
Sync toplevel files from gcc
commit bab1b2488e2a01b311d584bbecbc6834194e30ed Author: Nicolas Boulenguez <nicolas@debian.org> Date: Sun Jun 22 19:23:11 2025 +0200 Ada: Introduce GNATMAKE_FOR_BUILD Makefile variable This gets rid of the hardcoded 'gnatmake' command used during the build. commit 79091220da796a4b60561a7bf2e9e8f5e5276bc4 Author: Kugan Vivekanandarajah <kvivekananda@nvidia.com> Date: Tue Jun 10 09:19:37 2025 +1000 [AutoFDO] Fix profile bootstrap for x86_64 This patch fixes profile bootstrap for x86_64 by special caseing cpu_type for x86_64 as it shares AUTO_PROFILE from i386. commit fcb60292984fa7181ec91d7f81fd18549d1aaf39 Author: Kugan Vivekanandarajah <kvivekananda@nvidia.com> Date: Thu May 29 08:47:19 2025 +1000 [AUTOFDO] Fix autogen remake issue Fix autogen issue introduced by commit commit 86dc974cf30f926a014438a5fccdc9d41e26282b commit 86dc974cf30f926a014438a5fccdc9d41e26282b Author: Kugan Vivekanandarajah <kvivekananda@nvidia.com> Date: Mon May 26 11:41:59 2025 +1000 [AUTOFDO][AARCH64] Add support for profilebootstrap Add support for autoprofiledbootstrap in aarch64. This is similar to what is done for i386. Added gcc/config/aarch64/gcc-auto-profile for aarch64 profile creation. How to run: configure --with-build-config=bootstrap-lto make autoprofiledbootstrap commit dff727b2c28c52e90e0bd61957d15f907494b245 Author: Stephanos Ioannidis <root@stephanos.io> Date: Wed May 21 17:28:36 2025 -0600 [PATCH] configure: Always add pre-installed header directories to search path configure script was adding the target directory flags, including the '-B' flags for the executable prefix and the '-isystem' flags for the pre-installed header directories, to the target flags only for non-Canadian builds under the premise that the host binaries under the executable prefix will not be able to execute on the build system for Canadian builds. While that is true for the '-B' flags specifying the executable prefix, the '-isystem' flags specifying the pre-installed header directories are not affected by this and do not need special handling. This patch updates the configure script to always add the 'include' and 'sys-include' pre-installed header directories to the target search path, in order to ensure that the availability of the pre-installed header directories in the search path is consistent across non-Canadian and Canadian builds. When '--with-headers' flag is specified, this effectively ensures that the libc headers, that are copied from the specified header directory to the sys-include directory, are used by libstdc++. commit 6390fc86995fbd5239497cb9e1797a3af51d3936 Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> Date: Tue Apr 22 13:47:17 2025 +0200 cobol: Restrict COBOL to supported Linux arches [PR119217] The COBOL frontend is currently built on all x86_64 and aarch64 hosts although the code contains some Linux/glibc specifics that break the build e.g. on Solaris/amd64. Tested on Linux/x86_64 and Solaris/amd64. commit 17ed44c96f6e5c0cc02d8cb29ff5943dd30ab3c1 Author: Iain Sandoe <iain@sandoe.co.uk> Date: Mon Mar 31 07:02:54 2025 +0100 config, toplevel, Darwin: Pass -B instead of -L to C++ commands. Darwin from 10.11 needs embedded rpaths to find the correct libraries at runtime. Recent increases in hardening have made it such that the dynamic loader will no longer fall back to using an installed libstdc++ when the (new) linked one is not found. This means we fail configure tests (that should pass) for runtimes that use C++. We can resolve this by passing '-B' to the C++ command lines instead of '-L' (-B implies -L on Darwin, but also causes a corresponding embedded rpath). commit dcb7009efc5358207d1b0612732a0608915a3ef7 Author: Richard Biener <rguenther@suse.de> Date: Fri Mar 28 13:48:36 2025 +0100 bootstrap/119513 - fix cobol bootstrap with --enable-generated-files-in-srcdir This adds gcc/cobol/parse.o to compare_exclusions and makes sure to ignore errors when copying generated files, like it's done when copying gengtype-lex.cc. commit 0fb10aca02852b2e8d78a78c07aa2f62aec6a07e Author: Iain Sandoe <iain@sandoe.co.uk> Date: Tue Mar 25 16:20:58 2025 +0000 toplevel, libcobol: Add dependency on libquadmath build [PR119244]. For the configuration of libgcobol to be correct for targets that need to use libquadmath for 128b FP support, we must be able to find the quadmath library (or not, for targets that have the support in libc). commit 70bc553e1b565d2e162894ea29a223b44e9133e3 Author: Iain Sandoe <iain@sandoe.co.uk> Date: Sun Mar 23 11:45:17 2025 +0000 toplevel, Makefile: Add missing CXX_FOR_TARGET export [PR88319]. Actually, the issue is not local to the libitm case, it currently affects any 'cxx=true' top-level configured target library. The issue is a missing export of CXX_FOR_TARGET. commit c650b557cb01f97bebb894aa68e5e74c2147c395 Author: Thomas Schwinge <thomas@codesourcery.com> Date: Mon Jul 11 22:36:39 2022 +0200 GCN, nvptx: Don't default-disable libstdc++ build In addition to making libstdc++ itself available, this, via enabling 'build-gcc/*/libstdc++-v3/scripts/testsuite_flags', in particular also makes the standard C++ headers available to 'make check-gcc-c++'. With that, there are a lot of FAIL/UNRESOLVED -> PASS progressions, where we previously ran into, for example: FAIL: g++.dg/coroutines/co-await-syntax-00-needs-expr.C (test for errors, line 6) FAIL: g++.dg/coroutines/co-await-syntax-00-needs-expr.C (test for excess errors) Excess errors: [...]/gcc/testsuite/g++.dg/coroutines/coro.h:132:10: fatal error: cstdlib: No such file or directory Similarly, there are a lot of FAIL/UNRESOLVED -> UNSUPPORTED "progressions" due to 'sorry, unimplemented: exception handling not supported'. The 'make check-target-libstdc++-v3' results don't look too bad, either. This also reverts Subversion r221362 (Git commit d94fae044da071381b73a2ee8afa874b14fa3820) "No libstdc++ for nvptx", and commit 2f4f3c0e9345805160ecacd6de527b519a8c9206 "No libstdc++ for GCN". With libstdc++ now available, libgrust gets enabled, which we in turn again have to disable, for 'sorry, unimplemented: exception handling not supported' reasons. commit 09c2a0ab94e1e731433eb2687ad16a9c79617e14 Author: Jakub Jelinek <jakub@redhat.com> Date: Tue Mar 11 14:34:01 2025 +0100 cobol: Fix up libgcobol configure [PR119216] Sorry, seems I've screwed up the earlier libgcobol/configure.tgt change. Looking in more detail, the way e.g. libsanitizer/configure.tgt works is that it is sourced twice, once at toplevel and there it just sets UNSUPPORTED=1 for fully unsupported triplets, and then inside of libsanitizer/configure where it decides to include or not include the various sublibraries depending on the *_SUPPORTED flags. So, the following patch attempts to do the same for libgcobol as well. The BIULD_LIBGCOBOL automake conditional was unused, this patch guards it on LIBGCOBOL_SUPPORTED as well and guards with it toolexeclib_LTLIBRARIES = libgcobol.la Also, AM_CFLAGS has been changed to AM_CXXFLAGS as there are just C++ sources in the library. commit 6a3f9f30d93c376a8a5e98be888da14923b85e63 Author: Iain Sandoe <iain@sandoe.co.uk> Date: Tue Mar 11 09:56:18 2025 +0000 configure, Darwin: Require explicit selection of COBOL. By defult, Darwin does not have sufficient tools to build COBOL so we do not want to include it in --enable-languages=all since this will break regular testing of all supported languages. However, we do want to be able to build it on demand (where the build system has sufficiently new tools) and so do not want to disable it permanently. commit 45c281deb7a2e24a21f2f68a2a3652e30f27f953 Author: James K. Lowden <jklowden@symas.com> Date: Mon Mar 10 16:04:49 2025 +0100 COBOL: config and build machinery commit ab35fc0d897011c6de075e000d1e0388e6359d4e Author: Thomas Schwinge <tschwinge@baylibre.com> Date: Wed Feb 19 09:30:45 2025 +0100 GCN, nvptx: Support '--enable-languages=all' ..., where "support" means that the build doesn't fail, but it doesn't mean that all target libraries get built and we get pretty test results for the additional languages. commit bc3597635a708cd91d742c91c6050829cfb4062a Author: David Malcolm <dmalcolm@redhat.com> Date: Fri Nov 29 18:13:22 2024 -0500 Rename "libdiagnostics" to "libgdiagnostics" "libdiagnostics" clashes with an existing soname in Debian, as per: https://gcc.gnu.org/pipermail/gcc/2024-November/245175.html Rename it to "libgdiagnostics" for uniqueness. I am being deliberately vague about what the "g" stands for: it could be "gnu", "gcc", or "gpl-licensed" as the reader desires. commit fc59a3995cb46c190c0efb0431ad204e399975c4 Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> Date: Wed May 3 18:43:10 2023 +0200 gccrs: Fix bootstrap build This commit fixes bootstrapping for future additions to libgrust/ commit 7a6906c8d80e437a97c780370a8fec4e00561c7b Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> Date: Mon Jun 12 10:51:49 2023 +0200 gccrs: Fix missing build dependency Fix the missing dependency between the gcc and libgrust. * Makefile.def: Synced from gcc. * Makefile.tpl: Likewise. * configure.ac: Likewise. * Makefile.in: Regenerated. * configure: Likewise. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
176
configure.ac
176
configure.ac
@@ -163,6 +163,7 @@ target_libraries="target-libgcc \
|
||||
target-libgfortran \
|
||||
target-libffi \
|
||||
target-libobjc \
|
||||
target-libgcobol \
|
||||
target-libada \
|
||||
target-libgm2 \
|
||||
target-libgo \
|
||||
@@ -622,6 +623,13 @@ case "${target}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
cpu_type=`echo ${host} | sed 's/-.*$//'`
|
||||
# Special case cpu_type for x86_64 as it shares AUTO_PROFILE from i386.
|
||||
if test "${cpu_type}" = "x86_64" ; then
|
||||
cpu_type="i386"
|
||||
fi
|
||||
AC_SUBST(cpu_type)
|
||||
|
||||
# Disable libssp for some systems.
|
||||
case "${target}" in
|
||||
avr-*-*)
|
||||
@@ -658,10 +666,6 @@ if test "${ENABLE_LIBSTDCXX}" = "default" ; then
|
||||
# VxWorks uses the Dinkumware C++ library.
|
||||
noconfigdirs="$noconfigdirs target-libstdc++-v3"
|
||||
;;
|
||||
amdgcn*-*-*)
|
||||
# Not ported/fails to build when using newlib.
|
||||
noconfigdirs="$noconfigdirs target-libstdc++-v3"
|
||||
;;
|
||||
arm*-wince-pe*)
|
||||
# the C++ libraries don't build on top of CE's C libraries
|
||||
noconfigdirs="$noconfigdirs target-libstdc++-v3"
|
||||
@@ -678,6 +682,21 @@ if test "${ENABLE_LIBSTDCXX}" = "default" ; then
|
||||
esac
|
||||
fi
|
||||
|
||||
# Disable Ada/GNAT on systems where it is known to not work.
|
||||
# For testing, you can override this with --enable-languages=ada.
|
||||
case ,${enable_languages}, in
|
||||
*,ada,*)
|
||||
;;
|
||||
*)
|
||||
case "${target}" in
|
||||
amdgcn*-*-* \
|
||||
| nvptx*-*-* )
|
||||
unsupported_languages="$unsupported_languages ada"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
# Disable C++ on systems where it is known to not work.
|
||||
# For testing, you can override this with --enable-languages=c++.
|
||||
case ,${enable_languages}, in
|
||||
@@ -706,6 +725,16 @@ case ,${enable_languages}, in
|
||||
;;
|
||||
esac
|
||||
|
||||
# Disable libobjc for some systems where it is known to not work.
|
||||
case "${target}" in
|
||||
amdgcn*-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libobjc"
|
||||
;;
|
||||
nvptx*-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libobjc"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Disable D on systems where it is known to not work.
|
||||
# For testing, you can override this with --enable-languages=d.
|
||||
case ,${enable_languages}, in
|
||||
@@ -737,6 +766,23 @@ if test -d ${srcdir}/libphobos; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Disable libgcobol on unsupported systems.
|
||||
# For testing, you can override this with --enable-libgcobol.
|
||||
if test -d ${srcdir}/libgcobol; then
|
||||
if test x$enable_libgcobol = x; then
|
||||
AC_MSG_CHECKING([for libgcobol support])
|
||||
if (srcdir=${srcdir}/libgcobol; \
|
||||
. ${srcdir}/configure.tgt; \
|
||||
test -n "$UNSUPPORTED")
|
||||
then
|
||||
AC_MSG_RESULT([no])
|
||||
noconfigdirs="$noconfigdirs target-libgcobol"
|
||||
else
|
||||
AC_MSG_RESULT([yes])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Disable Fortran for some systems.
|
||||
case "${target}" in
|
||||
mmix-*-*)
|
||||
@@ -748,6 +794,38 @@ case "${target}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
# Always enable COBOL for --enable-languages=*cobol*
|
||||
# Otherwise, enable COBOL only for known architectures
|
||||
case ,${enable_languages}, in
|
||||
*,cobol,*)
|
||||
case ,${enable_languages}, in
|
||||
*,c++,*)
|
||||
;;
|
||||
*)
|
||||
# We have an explicit cobol, but no c++. We need c++, because cobol
|
||||
# requires libstdc++
|
||||
enable_languages="$enable_languages,c++"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
case "${target}" in
|
||||
aarch64-*-linux*|x86_64-*-linux*)
|
||||
;;
|
||||
*-*-*)
|
||||
unsupported_languages="$unsupported_languages cobol"
|
||||
;;
|
||||
esac
|
||||
case "${host}" in
|
||||
aarch64-*-linux*|x86_64-*-linux*)
|
||||
;;
|
||||
*-*-*)
|
||||
unsupported_languages="$unsupported_languages cobol"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
# Disable libffi for some systems.
|
||||
case "${target}" in
|
||||
powerpc-*-darwin*)
|
||||
@@ -783,6 +861,9 @@ case "${target}" in
|
||||
alpha*-*-*vms*)
|
||||
noconfigdirs="$noconfigdirs target-libffi"
|
||||
;;
|
||||
amdgcn*-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libffi"
|
||||
;;
|
||||
arm*-*-freebsd*)
|
||||
noconfigdirs="$noconfigdirs target-libffi"
|
||||
;;
|
||||
@@ -826,6 +907,9 @@ case "${target}" in
|
||||
mmix-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libffi"
|
||||
;;
|
||||
nvptx*-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libffi"
|
||||
;;
|
||||
powerpc-*-aix*)
|
||||
;;
|
||||
rs6000-*-aix*)
|
||||
@@ -873,9 +957,15 @@ if test x$enable_libgo = x; then
|
||||
*-*-cygwin* | *-*-mingw*)
|
||||
noconfigdirs="$noconfigdirs target-libgo"
|
||||
;;
|
||||
amdgcn*-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libgo"
|
||||
;;
|
||||
bpf-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libgo"
|
||||
;;
|
||||
nvptx*-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libgo"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
@@ -1273,7 +1363,7 @@ case "${target}" in
|
||||
noconfigdirs="$noconfigdirs gprof"
|
||||
;;
|
||||
nvptx*-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
|
||||
noconfigdirs="$noconfigdirs target-libssp"
|
||||
;;
|
||||
sh-*-*)
|
||||
case "${target}" in
|
||||
@@ -1358,11 +1448,12 @@ if test "${build}" != "${host}" ; then
|
||||
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
|
||||
CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
|
||||
CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
|
||||
DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
|
||||
DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
|
||||
GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
|
||||
GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
|
||||
GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
|
||||
DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
|
||||
GNATMAKE_FOR_BUILD=${GNATMAKE_FOR_BUILD-gnatmake}
|
||||
LD_FOR_BUILD=${LD_FOR_BUILD-ld}
|
||||
NM_FOR_BUILD=${NM_FOR_BUILD-nm}
|
||||
RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
|
||||
@@ -1373,11 +1464,12 @@ else
|
||||
AS_FOR_BUILD="\$(AS)"
|
||||
CC_FOR_BUILD="\$(CC)"
|
||||
CXX_FOR_BUILD="\$(CXX)"
|
||||
DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
|
||||
DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
|
||||
GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
|
||||
GOC_FOR_BUILD="\$(GOC)"
|
||||
GDC_FOR_BUILD="\$(GDC)"
|
||||
DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
|
||||
GNATMAKE_FOR_BUILD="\$(GNATMAKE)"
|
||||
LD_FOR_BUILD="\$(LD)"
|
||||
NM_FOR_BUILD="\$(NM)"
|
||||
RANLIB_FOR_BUILD="\$(RANLIB)"
|
||||
@@ -2056,16 +2148,16 @@ fi
|
||||
AC_SUBST(PICFLAG)
|
||||
|
||||
|
||||
# Check for libdiagnostics support.
|
||||
AC_MSG_CHECKING([whether to enable libdiagnostics])
|
||||
AC_ARG_ENABLE(libdiagnostics,
|
||||
[AS_HELP_STRING([--enable-libdiagnostics],
|
||||
[build libdiagnostics shared library])],
|
||||
enable_libdiagnostics=$enableval,
|
||||
enable_libdiagnostics=no)
|
||||
# Check for libgdiagnostics support.
|
||||
AC_MSG_CHECKING([whether to enable libgdiagnostics])
|
||||
AC_ARG_ENABLE(libgdiagnostics,
|
||||
[AS_HELP_STRING([--enable-libgdiagnostics],
|
||||
[build libgdiagnostics shared library])],
|
||||
enable_libgdiagnostics=$enableval,
|
||||
enable_libgdiagnostics=no)
|
||||
|
||||
if test x$enable_libdiagnostics = xyes; then
|
||||
# Disable libdiagnostics if -enable-host-shared not specified
|
||||
if test x$enable_libgdiagnostics = xyes; then
|
||||
# Disable libgdiagnostics if -enable-host-shared not specified
|
||||
# but not if building for Mingw. All code in Windows
|
||||
# is position independent code (PIC).
|
||||
case $target in
|
||||
@@ -2073,12 +2165,12 @@ if test x$enable_libdiagnostics = xyes; then
|
||||
*)
|
||||
if test x$host_shared != xyes; then
|
||||
AC_MSG_ERROR([
|
||||
Enabling libdiagnostics requires --enable-host-shared.
|
||||
Enabling libgdiagnostics requires --enable-host-shared.
|
||||
|
||||
--enable-host-shared typically slows the rest of the compiler down by
|
||||
a few %, so you must explicitly enable it.
|
||||
|
||||
If you want to build both libdiagnostics and the regular compiler, it is often
|
||||
If you want to build both libgdiagnostics and the regular compiler, it is often
|
||||
best to do this via two separate configure/builds, in separate
|
||||
directories, to avoid imposing the performance cost of
|
||||
--enable-host-shared on the regular compiler.])
|
||||
@@ -2086,8 +2178,8 @@ directories, to avoid imposing the performance cost of
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
AC_MSG_RESULT($enable_libdiagnostics)
|
||||
AC_SUBST(enable_libdiagnostics)
|
||||
AC_MSG_RESULT($enable_libgdiagnostics)
|
||||
AC_SUBST(enable_libgdiagnostics)
|
||||
|
||||
|
||||
# Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
|
||||
@@ -2604,6 +2696,16 @@ case ,${enable_languages}, in
|
||||
# Disable target libgrust if we're not building target libstdc++.
|
||||
noconfigdirs="$noconfigdirs target-libgrust"
|
||||
;;
|
||||
*)
|
||||
case "${target}" in
|
||||
amdgcn*-*-* \
|
||||
| nvptx*-*-* )
|
||||
# Build fails in 'libgrust/libproc_macro_internal/':
|
||||
# sorry, unimplemented: exception handling not supported
|
||||
noconfigdirs="$noconfigdirs target-libgrust"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
@@ -3727,13 +3829,17 @@ if test x"${build}" = x"${host}" ; then
|
||||
LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
|
||||
fi
|
||||
|
||||
# On Canadian crosses, we'll be searching the right directories for
|
||||
# the previously-installed cross compiler, so don't bother to add
|
||||
# flags for directories within the install tree of the compiler
|
||||
# being built; programs in there won't even run.
|
||||
if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
|
||||
if test -d ${srcdir}/gcc; then
|
||||
# On Canadian crosses, we'll be searching the right directories for the
|
||||
# previously-installed cross compiler, so don't bother to add flags for
|
||||
# executable directories within the install tree of the compiler being built;
|
||||
# programs in there won't even run.
|
||||
if test "${build}" = "${host}"; then
|
||||
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/'
|
||||
fi
|
||||
|
||||
# Search for pre-installed headers if nothing else fits.
|
||||
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
|
||||
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
|
||||
fi
|
||||
|
||||
if test "x${use_gnu_ld}" = x &&
|
||||
@@ -3809,6 +3915,7 @@ AC_SUBST(DSYMUTIL_FOR_BUILD)
|
||||
AC_SUBST(GFORTRAN_FOR_BUILD)
|
||||
AC_SUBST(GOC_FOR_BUILD)
|
||||
AC_SUBST(GDC_FOR_BUILD)
|
||||
AC_SUBST(GNATMAKE_FOR_BUILD)
|
||||
AC_SUBST(LDFLAGS_FOR_BUILD)
|
||||
AC_SUBST(LD_FOR_BUILD)
|
||||
AC_SUBST(NM_FOR_BUILD)
|
||||
@@ -3975,12 +4082,24 @@ GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar])
|
||||
GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new])
|
||||
GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/])
|
||||
dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS
|
||||
GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX,
|
||||
case $target in
|
||||
*-*-darwin*)
|
||||
GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX,
|
||||
[gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs],
|
||||
c++)
|
||||
GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX,
|
||||
[gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs],
|
||||
c++)
|
||||
;;
|
||||
*)
|
||||
GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX,
|
||||
[gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs],
|
||||
c++)
|
||||
GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX,
|
||||
GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX,
|
||||
[gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs],
|
||||
c++)
|
||||
;;
|
||||
esac
|
||||
GCC_TARGET_TOOL(dlltool, DLLTOOL_FOR_TARGET, DLLTOOL, [binutils/dlltool])
|
||||
GCC_TARGET_TOOL(dsymutil, DSYMUTIL_FOR_TARGET, DSYMUTIL)
|
||||
GCC_TARGET_TOOL(gcc, GCC_FOR_TARGET, , [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/])
|
||||
@@ -4142,6 +4261,7 @@ compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
|
||||
compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
|
||||
compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
|
||||
compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
|
||||
compare_exclusions="$compare_exclusions | gcc/cobol/parse\$(objext)"
|
||||
case "$target" in
|
||||
hppa*64*-*-hpux*) ;;
|
||||
powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
|
||||
|
||||
Reference in New Issue
Block a user