https://gcc.gnu.org/g:70e36d8d0429ba9474501d79eaf630764f77efc4
commit 70e36d8d0429ba9474501d79eaf630764f77efc4 Author: Thomas Schwinge <tschwi...@baylibre.com> Date: Wed Apr 2 11:05:08 2025 +0200 libstdc++, nvptx: Remove machinery to inject per-file flags Not used anymore. libstdc++-v3/ * config/cpu/nvptx/t-nvptx: Remove. * configure.host [nvptx]: Adjust. (cherry picked from commit 287f360b3e75a19c48ee14c71f51b6e7968474ef) Diff: --- libstdc++-v3/ChangeLog.omp | 6 ++++++ libstdc++-v3/config/cpu/nvptx/t-nvptx | 1 - libstdc++-v3/configure.host | 5 ----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/ChangeLog.omp b/libstdc++-v3/ChangeLog.omp index dd14652de22b..daca152e84a5 100644 --- a/libstdc++-v3/ChangeLog.omp +++ b/libstdc++-v3/ChangeLog.omp @@ -3,6 +3,12 @@ Backported from trunk: 2025-04-03 Thomas Schwinge <tschwi...@baylibre.com> + * config/cpu/nvptx/t-nvptx: Remove. + * configure.host [nvptx]: Adjust. + + Backported from trunk: + 2025-04-03 Thomas Schwinge <tschwi...@baylibre.com> + PR target/119573 * config/cpu/nvptx/t-nvptx (AM_MAKEFLAGS): Don't amend. diff --git a/libstdc++-v3/config/cpu/nvptx/t-nvptx b/libstdc++-v3/config/cpu/nvptx/t-nvptx deleted file mode 100644 index eacc5468d627..000000000000 --- a/libstdc++-v3/config/cpu/nvptx/t-nvptx +++ /dev/null @@ -1 +0,0 @@ -# Per-file flags, see '../../../configure.host', "inject per-file flags". diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host index 0bed9dfff957..8375764bf4dc 100644 --- a/libstdc++-v3/configure.host +++ b/libstdc++-v3/configure.host @@ -374,11 +374,6 @@ case "${host}" in port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver" ;; nvptx-*-none) - # For 'make all-target-libstdc++-v3', we need to inject per-file flags: - OPTIMIZE_CXXFLAGS="${OPTIMIZE_CXXFLAGS} \$(CXXFLAGS-\$(subdir)/\$@)" - # ..., see: - tmake_file="$tmake_file cpu/nvptx/t-nvptx" - # For 'make all-target-libstdc++-v3', re 'alloca'/VLA usage: EXTRA_CFLAGS="${EXTRA_CFLAGS} -mfake-ptx-alloca" OPTIMIZE_CXXFLAGS="${OPTIMIZE_CXXFLAGS} -mfake-ptx-alloca"