https://gcc.gnu.org/g:88f0a85d706e7c7a2a1808ff06760d6b128c82e5
commit r16-8096-g88f0a85d706e7c7a2a1808ff06760d6b128c82e5 Author: Jakub Jelinek <[email protected]> Date: Sat Mar 14 19:28:17 2026 +0100 Make it possible to run contrib/update-copyright.py --this-year again gcc/algol68/a68-moids-sorting.cc got a copyright not recognized by the script and loongarch gen-evolution.awk keeps being a problem. This patch tweaks those so that contrib/update-copyright.py --this-year can be run successfully again. 2026-03-14 Jakub Jelinek <[email protected]> PR other/124508 * update-copyright.py: Add James Bohl. as another copyright. * config/loongarch/genopts/gen-evolution.awk: Rename copyright_header routine so that update-copyright.py isn't upset about it. Diff: --- contrib/update-copyright.py | 1 + gcc/config/loongarch/genopts/gen-evolution.awk | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/contrib/update-copyright.py b/contrib/update-copyright.py index b19a9404155a..4cc04784f99e 100755 --- a/contrib/update-copyright.py +++ b/contrib/update-copyright.py @@ -749,6 +749,7 @@ class GCCCopyright (Copyright): self.add_external_author ('Hewlett-Packard Company') self.add_external_author ('Intel Corporation') self.add_external_author ('Information Technology Industry Council.') + self.add_external_author ('James Bohl.') self.add_external_author ('James Theiler, Brian Gough') self.add_external_author ('Jose E. Marchesi') self.add_external_author ('Jose E. Marchesi.') diff --git a/gcc/config/loongarch/genopts/gen-evolution.awk b/gcc/config/loongarch/genopts/gen-evolution.awk index e3aacf968a46..11d2207f11dc 100644 --- a/gcc/config/loongarch/genopts/gen-evolution.awk +++ b/gcc/config/loongarch/genopts/gen-evolution.awk @@ -46,7 +46,9 @@ BEGIN { comment[NR] = $0 } -function copyright_header(from_year,to_year) +# copy_right rather than copyright also to make contrib/update_copyright.py +# happy. +function copy_right_header(from_year,to_year) { if (to_year == "") # The weird " " in the middle of a word is to make @@ -167,7 +169,7 @@ function gen_full_header() print " Please do not edit this file directly." print "" - copyright_header(2023, 2026) + copy_right_header(2023, 2026) print "*/" print "" @@ -203,7 +205,7 @@ function gen_full_source() print " Please do not edit this file directly." print "" - copyright_header(2023, 2026) + copy_right_header(2023, 2026) print "*/" print "" @@ -246,7 +248,7 @@ function gen_full_def() print " Please do not edit this file directly." print "" - copyright_header(2025, 2026) + copy_right_header(2025, 2026) print "*/" print ""
