public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
To: Eric Botcazou <ebotcazou@libertysurf.fr>
Cc: gcc@gcc.gnu.org
Subject: Re: Rant about ChangeLog entries and commit messages
Date: Sun, 02 Dec 2007 10:43:00 -0000	[thread overview]
Message-ID: <2007-12-02-11-43-44+trackit+sam@rfc1149.net> (raw)
In-Reply-To: <200712021127.46198.ebotcazou@libertysurf.fr>

On  2/12, Eric Botcazou wrote:

| He indeed cannot, but the ChangeLog is not meant to make it possible either.
| See http://gcc.gnu.org/contribute.html, especially the GNU Coding Standards.

I know this document and I think the part on ChangeLog doesn't achieve
its purpose:

http://www.gnu.org/prep/standards/standards.html#Change-Logs

   Keep a change log to describe all the changes made to program source
   files. The purpose of this is so that people investigating bugs in the
   future will know about the changes that might have introduced the bug.
   Often a new bug can be found by looking at what was recently changed.
   More importantly, change logs can help you eliminate conceptual
   inconsistencies between different parts of a program, by giving you a
   history of how the conflicting concepts arose and who they came from.

This is precisely why I am proposing an evolution in the current
process.

Also, this document states:

   There's no need to describe the full purpose of the changes or how
   they work together. If you think that a change calls for explanation,
   you're probably right. Please do explain it—but please put the
   explanation in comments in the code, where people will see it whenever
   they see the code.

When you fix a bug by changing a constant (for example if there has been
an offset by one error or, as I did a few minutes ago in
config/sh/sh.md, there was an error in the argument to consider), this
doesn't always mandate a comment in the code. For example, I think a
description such as the one I wrote when describing the problem

   cmpgeusi_t splitting code compares operand 0 to 0, while this constant
   value can only be in operand 1. When compiling the Ada runtime, this
   leads to a "cmp/hs #0,r7" instruction which is not valid as "cmp/hs"
   operands must be two registers.

along with the above change would have been a better commit message than
just

    gcc/
        * config/sh/sh.md (cmpgeusi_t): Fix condition.

which I used as suggested.

| That's how it has always worked so it should be more or less practical.

Sure, it works. But this is not a reason not to improve the process.

| For PRs, there is a link (URL: field), maybe we should use PRs more often.

This field is useful to look at the discussion that led to the change,
but PRs often contain no synthetic information on the analysis of the
problem unless when the PR submitter sends a patch himself (in which
case he often includes his analysis to get a better chance to get his
patch checked in).

  reply	other threads:[~2007-12-02 10:43 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-02 10:05 Samuel Tardieu
2007-12-02 10:23 ` Andreas Schwab
2007-12-02 10:52   ` Samuel Tardieu
2007-12-02 12:04     ` Hans-Peter Nilsson
2007-12-02 23:28       ` Robert Dewar
2007-12-03  0:30         ` DJ Delorie
2007-12-03  4:06         ` Richard Kenner
2007-12-03  4:51           ` Daniel Berlin
2007-12-03 14:41             ` Richard Kenner
2007-12-02 11:43   ` Samuel Tardieu
2007-12-02 12:28   ` Richard Kenner
2007-12-02 12:43     ` Bernd Schmidt
2007-12-02 13:05       ` Eric Botcazou
2007-12-02 14:27         ` Robert Kiesling
2007-12-02 20:52           ` tim
2007-12-03  2:41             ` Robert Kiesling
2007-12-02 23:29         ` Robert Dewar
2007-12-02 20:28       ` Daniel Berlin
2007-12-02 20:36         ` Eric Botcazou
2007-12-02 20:40           ` Daniel Berlin
2007-12-02 22:55             ` Eric Botcazou
2007-12-03  0:21               ` Daniel Berlin
2007-12-03  6:16                 ` Eric Botcazou
2007-12-03 13:29                 ` Richard Kenner
2007-12-03 15:48                   ` Daniel Berlin
2007-12-03 16:20                     ` Richard Kenner
2007-12-03 16:50                     ` Robert Kiesling
2007-12-03 17:26                       ` Robert Dewar
2007-12-04 22:10                   ` Jeffrey Law
2007-12-16  3:03                   ` Alexandre Oliva
2007-12-16 10:25                     ` NightStrike
2007-12-16 13:04                       ` Alexandre Oliva
2007-12-16 18:52                         ` NightStrike
2007-12-25 19:35                     ` Tim Josling
2007-12-26  1:05                       ` Daniel Berlin
2007-12-26  2:17                       ` Richard Kenner
2007-12-26  2:31                         ` Robert Dewar
2007-12-26  4:53                           ` Richard Kenner
2007-12-26  6:00                       ` Alexandre Oliva
2007-12-02 20:59           ` tim
2007-12-02 23:32           ` Robert Dewar
2007-12-03  6:02             ` Eric Botcazou
2007-12-03  3:55           ` Richard Kenner
2007-12-02 23:31         ` Joseph S. Myers
2007-12-02 20:23     ` Daniel Berlin
2007-12-03  6:45   ` Nicholas Nethercote
2007-12-03  9:28     ` Andreas Schwab
2007-12-02 10:27 ` Eric Botcazou
2007-12-02 10:43   ` Samuel Tardieu [this message]
2007-12-02 10:50     ` Eric Botcazou
2007-12-02 11:14       ` Samuel Tardieu
2007-12-02 11:32         ` Eric Botcazou
2007-12-02 11:48           ` Samuel Tardieu
2007-12-02 12:25             ` Eric Botcazou
2007-12-02 23:03 ` Ben Elliston
2007-12-02 23:54   ` Daniel Jacobowitz
2007-12-03  4:03   ` Richard Kenner
2007-12-03 17:33 ` Diego Novillo
2007-12-03 17:37   ` Richard Kenner
2007-12-03 17:47   ` Bernd Schmidt
2007-12-03 17:58     ` Ian Lance Taylor
2007-12-03 18:20     ` Diego Novillo
2007-12-03 18:51       ` Richard Kenner
2007-12-03 18:58         ` Diego Novillo
2007-12-03 20:08           ` Tim Josling
2007-12-03 18:49     ` Richard Kenner
2007-12-04 16:45   ` Tom Tromey
2007-12-05 23:16     ` Ben Elliston
2007-12-05 23:35       ` Daniel Berlin
2007-12-06  0:29         ` Ben Elliston
2007-12-06  9:53           ` Andreas Schwab
2007-12-06  0:42       ` Robert Dewar
     [not found] <2007-12-02-11-05-39+trackit+sam@rfc1149.net.suse.lists.egcs>
2007-12-02 18:33 ` Andi Kleen
     [not found] ` <jeodd9l7j1.fsf@sykes.suse.de.suse.lists.egcs>
     [not found]   ` <Pine.GSO.4.61.0712031739500.10932@mulga.csse.unimelb.edu.au.suse.lists.egcs>
2007-12-03 12:20     ` Andi Kleen
2007-12-04  4:03       ` Nicholas Nethercote
2007-12-04 13:05         ` Richard Kenner
2007-12-04 10:19       ` Robert Kiesling
     [not found] ` <200712022136.57819.ebotcazou@libertysurf.fr.suse.lists.egcs>
     [not found]   ` <4aca3dc20712021240k19f3eae5j66453276179c401a@mail.gmail.com.suse.lists.egcs>
     [not found]     ` <200712022355.23871.ebotcazou@libertysurf.fr.suse.lists.egcs>
     [not found]       ` <4aca3dc20712021621n39a036d2u21f471f231dfffe@mail.gmail.com.suse.lists.egcs>
     [not found]         ` <10712031329.AA20246@vlsi1.ultra.nyu.edu.suse.lists.egcs>
2007-12-03 16:34           ` Andi Kleen
2007-12-03 16:38             ` Richard Kenner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2007-12-02-11-43-44+trackit+sam@rfc1149.net \
    --to=sam@rfc1149.net \
    --cc=ebotcazou@libertysurf.fr \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).