From: Jonathan Wakely Date: Wed, 7 Jan 2026 14:29:44 +0000 (+0000) Subject: libstdc++: Allow new-abi-baseline target to overwrite existing file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bec884b2e890ffb950f1a3ccf325d92c3bf8496;p=thirdparty%2Fgcc.git libstdc++: Allow new-abi-baseline target to overwrite existing file There doesn't seem to be much benefit to writing the symbols to baseline_symbols.txt.new when an existing file is already present. It just adds a manual step for maintainers to move the .txt.new file to replace the .txt one. Overwriting the file directly allows you to use git diff to see what changed immediately, and you can easly use git commands to revert to the original file too. libstdc++-v3/ChangeLog: * testsuite/Makefile.am (new-abi-baseline): Overwrite existing file instead of creating baseline_symbols.txt.new. * testsuite/Makefile.in: Regenerate. --- diff --git a/libstdc++-v3/testsuite/Makefile.am b/libstdc++-v3/testsuite/Makefile.am index 270b6886df4..e8b6eb9e8ad 100644 --- a/libstdc++-v3/testsuite/Makefile.am +++ b/libstdc++-v3/testsuite/Makefile.am @@ -84,13 +84,7 @@ baseline_symbols: new-abi-baseline: -@$(mkinstalldirs) ${baseline_dir}/${baseline_subdir} - -@(output=${baseline_dir}/${baseline_subdir}/baseline_symbols.txt; \ - if test -f $${output}; then \ - output=$${output}.new; \ - t=`echo $${output} | sed 's=.*config/abi/=='`; \ - echo "Baseline file already exists, writing to $${t} instead."; \ - fi; \ - ${extract_symvers} ../src/.libs/libstdc++.so $${output}) + -@${extract_symvers} ../src/.libs/libstdc++.so ${baseline_dir}/${baseline_subdir}/baseline_symbols.txt %/site.exp: site.exp -@test -d $* || mkdir $* diff --git a/libstdc++-v3/testsuite/Makefile.in b/libstdc++-v3/testsuite/Makefile.in index 65ec4e7fb14..3aed09d1049 100644 --- a/libstdc++-v3/testsuite/Makefile.in +++ b/libstdc++-v3/testsuite/Makefile.in @@ -645,13 +645,7 @@ baseline_symbols: new-abi-baseline: -@$(mkinstalldirs) ${baseline_dir}/${baseline_subdir} - -@(output=${baseline_dir}/${baseline_subdir}/baseline_symbols.txt; \ - if test -f $${output}; then \ - output=$${output}.new; \ - t=`echo $${output} | sed 's=.*config/abi/=='`; \ - echo "Baseline file already exists, writing to $${t} instead."; \ - fi; \ - ${extract_symvers} ../src/.libs/libstdc++.so $${output}) + -@${extract_symvers} ../src/.libs/libstdc++.so ${baseline_dir}/${baseline_subdir}/baseline_symbols.txt %/site.exp: site.exp -@test -d $* || mkdir $*