Hi!

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.

Committed to trunk as obvious and additionally committed
r16-8097 with the actual contrib/update-copyright.py --this-year
changes because clearly lots of people committed in January or later
new files written in the previous year without updating their
copyrights.

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 --git a/contrib/update-copyright.py b/contrib/update-copyright.py
index b19a9404155..4cc04784f99 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 e3aacf968a4..11d2207f11d 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 ""

        Jakub

Reply via email to