Sync top-level with GCC

This just brings in the following two changes:

commit 04df8fa9e73e612f978fff35a97841703b872f6c
Author:     Thomas Schwinge <tschwinge@baylibre.com>
AuthorDate: Tue Oct 21 09:46:32 2025 +0200
Commit:     Thomas Schwinge <tschwinge@baylibre.com>
CommitDate: Fri Oct 24 12:40:22 2025 +0200

    Simplify 'Makefile' dependencies for libatomic [PR81358]

    ...

commit e63cf4b130b86dd7dde1bf499d3d40faca10ea2e
Author:     Prathamesh Kulkarni <prathameshk@nvidia.com>
AuthorDate: Thu Oct 9 07:07:24 2025 +0000
Commit:     Prathamesh Kulkarni <prathameshk@nvidia.com>
CommitDate: Thu Oct 9 07:26:51 2025 +0000

    PR81358: Enable automatic linking of libatomic.

    ...

ChangeLog:

	* Makefile.def: Sync with GCC.
	* configure.ac: Ditto.
	* configure: Regenerate.
This commit is contained in:
Sam James
2025-11-03 09:53:04 +00:00
parent ef442f8e7f
commit f5bee9f31b
3 changed files with 16 additions and 5 deletions

View File

@@ -650,14 +650,15 @@ dependencies = { module=all-m4; on=all-build-texinfo; };
// on libgcc and newlib/libgloss. // on libgcc and newlib/libgloss.
lang_env_dependencies = { module=libitm; cxx=true; }; lang_env_dependencies = { module=libitm; cxx=true; };
lang_env_dependencies = { module=libffi; cxx=true; }; lang_env_dependencies = { module=libffi; cxx=true; };
lang_env_dependencies = { module=newlib; no_c=true; }; lang_env_dependencies = { module=newlib; no_c=true; no_atomic=true; };
lang_env_dependencies = { module=libgloss; no_c=true; }; lang_env_dependencies = { module=libgloss; no_c=true; no_atomic=true; };
lang_env_dependencies = { module=libgcc; no_gcc=true; no_c=true; }; lang_env_dependencies = { module=libgcc; no_gcc=true; no_c=true; no_atomic=true; };
// libiberty does not depend on newlib or libgloss because it must be // libiberty does not depend on newlib or libgloss because it must be
// built newlib on some targets (e.g. Cygwin). It still needs // built newlib on some targets (e.g. Cygwin). It still needs
// a dependency on libgcc for native targets to configure. // a dependency on libgcc for native targets to configure.
lang_env_dependencies = { module=libiberty; no_c=true; }; lang_env_dependencies = { module=libiberty; no_c=true; no_atomic=true; };
lang_env_dependencies = { module=libgcobol; cxx=true; }; lang_env_dependencies = { module=libgcobol; cxx=true; no_atomic=true; };
lang_env_dependencies = { module=libatomic; no_atomic=true; };
dependencies = { module=configure-target-fastjar; on=configure-target-zlib; }; dependencies = { module=configure-target-fastjar; on=configure-target-zlib; };
dependencies = { module=all-target-fastjar; on=all-target-zlib; }; dependencies = { module=all-target-fastjar; on=all-target-zlib; };

5
configure vendored
View File

@@ -11075,6 +11075,11 @@ if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
fi fi
# If we are building libatomic, bootstrap it.
if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1 ; then
bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
fi
# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
# or bootstrap-ubsan, bootstrap it. # or bootstrap-ubsan, bootstrap it.
if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then

View File

@@ -3251,6 +3251,11 @@ if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
fi fi
# If we are building libatomic, bootstrap it.
if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1 ; then
bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
fi
# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
# or bootstrap-ubsan, bootstrap it. # or bootstrap-ubsan, bootstrap it.
if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then