This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debug mode maintenance patch

On 26/05/15 09:45 +0100, Pedro Alves wrote:
On 05/25/2015 07:41 PM, Jonathan Wakely wrote:

Index: include/debug/functions.tcc
--- include/debug/functions.tcc	(revision 0)
+++ include/debug/functions.tcc	(working copy)
@@ -0,0 +1,159 @@
+// Debugging support implementation -*- C++ -*-
+// Copyright (C) 2015 Free Software Foundation, Inc.

It worries me when we move existing code to new headers and only give
it the current year as the copyright date. The copyright applies to
the code, which is older than 2015, not to the file itself.

I think I've asked about this before and been told that only adding
the current year is correct, but that seems wrong to me. I'll try to
confirm that.

You should retain the old copyright years in the new file.

Here's FSF's response when inquired about that a while ago:

Thanks, Pedro.

Glad to hear I've been doing it right!

François, therefore please ensure you keep the right copyright years
when moving code to new files (I'm still not convinced a new file is
useful here though).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]