]> git.ipfire.org Git - thirdparty/gcc.git/commit
Update Copyright for gen-evolution.awk and gen-cxxapi-file.py
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Jan 2026 20:54:38 +0000 (21:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Jan 2026 20:59:16 +0000 (21:59 +0100)
commite153237a3f993475bb5b2e0758db6be9a005d5da
tree9935d6dd737847e045b01017146cf886942933b3
parentbc668cf6c94a2607f280fa2447095e5f7cb81c2e
Update Copyright for gen-evolution.awk and gen-cxxapi-file.py

On Fri, Jan 09, 2026 at 05:54:47PM +0000, Joseph Myers wrote:
> I think updates to gcc/config/loongarch/genopts/gen-evolution.awk's calls
> to copyright_header are needed as well.  At present, building for
> loongarch can result in files in the source tree being reverted to older
> copyright dates because the generation hasn't been updated (discovered via
> my glibc bot with GCC mainline stopping updating its GCC source tree
> because such modifications appeared in the sources).  Of course this also
> shows up missing entries in contrib/gcc_update for the three files
> generated by gen-evolution.awk.

gen-evolution.awk was explicitly blacklisted
and so was gen-cxxapi-file.py, both because update-copyright.py
matched Copyright line also within the printing code but it wasn't
matching the expected form.
Fixed by making sure the printing code doesn't match it by using
print "   Copy" "right (C) " ... in the awk case and
Copy{:s}right in the python case (with "" arg added).

2026-01-09  Jakub Jelinek  <jakub@redhat.com>

contrib/
* update-copyright.py (GCCFilter): Don't filter out
gen-evolution.awk and gen-cxxapi-file.py.
gcc/
* config/loongarch/genopts/gen-evolution.awk: Update
copyright year.
(copyright_header): Separate parts of Copyright word
with " " so that it doesn't get matched by update-copyright.py.
(gen_full_header, gen_full_source, gen_full_def): Include
2026 year in the ranges.
gcc/cp/
* gen-cxxapi-file.py: Update copyright year.  Separate
parts of Copyright word with {:s} so that it doesn't get matched
by update-copyright.py.
contrib/update-copyright.py
gcc/config/loongarch/genopts/gen-evolution.awk
gcc/cp/gen-cxxapi-file.py