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 11:14:00 -0000	[thread overview]
Message-ID: <2007-12-02-12-14-00+trackit+sam@rfc1149.net> (raw)
In-Reply-To: <200712021151.08971.ebotcazou@libertysurf.fr>

On  2/12, Eric Botcazou wrote:

| > 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.
| 
| Could you elaborate?

I'll take an example from one of your recent changes in gcc/ChangeLog:

   2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>

           * stor-layout.c (lang_adjust_rli): Delete.
           (set_lang_adjust_rli): Likewise.
           (layout_type): Do not call lang_adjust_rli hook.
           * tree.h (set_lang_adjust_rli): Delete.

Without digging in the mailing-list archives to see why you made the
change, if something new breaks on a STABS platform I will have no hint
that this change was in any way related to STABS.

If we didn't use ChangeLogs and if commit logs contained the information
you gave on the mailing-list, this would be much easier:

   The compiler has been broken on STABS platform since mapped locations
   were enabled by default.  The Ada front-end is emitting debug info too
   early.  The patch also reorganizes a little the front-end's initialization
   and gets rid of dead code in the process, which in turn enables a further
   cleanup in the middle-end.

Also note that the ChangeLog doesn't give any hint that changes in the
ada directory have been made at the same time, only "svn log" reveals
that. So far for the "The purpose of this is so that people investigating
bugs in the future will know about the changes that might have introduced
the bug." sentence.

I would prefer that information which is deemed necessary for
peer-review when a patch is sent to gcc-patches@ is also included in
GCC log history.

| > [sh.md fix]
|
| Not really in my opinion, it's a trivial fix and totally unrelated to Ada in 
| itself, "Fix typo" or "Fix obvious mistake" would have been just fine too.

Well, I find it useful to know which part of the compiler has exercized
this code path (as obviously there was no test associated with this
optimization) and uncovered the bug, but I agree that this was an obvious
typo fix.

  reply	other threads:[~2007-12-02 11:14 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
2007-12-02 10:50     ` Eric Botcazou
2007-12-02 11:14       ` Samuel Tardieu [this message]
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-12-14-00+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).