From: "Martin Liška" <mliska@suse.cz>
To: "H.J. Lu" <hjl.tools@gmail.com>, Simon Marchi <simark@simark.ca>
Cc: GDB <gdb@sourceware.org>, Binutils <binutils@sourceware.org>
Subject: Re: Auto update ChangeLog for binutils+gdb commits?
Date: Fri, 29 May 2020 10:51:32 +0200 [thread overview]
Message-ID: <da493284-32ad-00e6-d5e3-b9bf0b3ef82b@suse.cz> (raw)
In-Reply-To: <1fb47dab-7a52-524b-17a3-672122277a48@suse.cz>
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]
On 5/29/20 9:45 AM, Martin Liška wrote:
> I briefly looked at binutils commits and I believe the scripts can
> be directly adopted.
Ok, one would need to adjust list of ChangeLog files and bugzilla components. I've changed
that in the attached patch.
With that one can test it:
$ ./contrib/gcc-changelog/git_check_commit.py -g ~/Programming/binutils -n HEAD~300..HEAD
(see the attached output)
So ~250/300 commit messages can be parsed.
And the generated ChangeLog can be seen with:
./contrib/gcc-changelog/git_check_commit.py -g ~/Programming/binutils -n HEAD~300..HEAD -p
(see the attached output)
Would you be interested in adoption of the script?
Martin
[-- Attachment #2: result.txt.bz2 --]
[-- Type: application/x-bzip, Size: 8942 bytes --]
[-- Attachment #3: result-changelog.txt.bz2 --]
[-- Type: application/x-bzip, Size: 24666 bytes --]
[-- Attachment #4: 0001-gcc-changelog-for-binutils.patch --]
[-- Type: text/x-patch, Size: 4643 bytes --]
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index 084e83c18cc..e2be3843c83 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -20,110 +20,149 @@ import os
import re
changelog_locations = set([
+ 'bfd',
+ 'binutils',
'config',
'contrib',
- 'contrib/header-tools',
- 'contrib/reghunt',
- 'contrib/regression',
- 'fixincludes',
- 'gcc/ada',
- 'gcc/analyzer',
- 'gcc/brig',
- 'gcc/c',
- 'gcc/c-family',
- 'gcc',
- 'gcc/cp',
- 'gcc/d',
- 'gcc/fortran',
- 'gcc/go',
- 'gcc/jit',
- 'gcc/lto',
- 'gcc/objc',
- 'gcc/objcp',
- 'gcc/po',
- 'gcc/testsuite',
- 'gnattools',
- 'gotools',
+ 'cpu',
+ 'elfcpp',
+ 'etc',
+ 'gas',
+ 'gdb',
+ 'gdb/doc',
+ 'gdbserver',
+ 'gdb/stubs',
+ 'gdbsupport',
+ 'gdb/testsuite',
+ 'gnulib',
+ 'gold',
+ 'gprof',
'include',
+ 'include/gdb',
'intl',
- 'libada',
- 'libatomic',
- 'libbacktrace',
- 'libcc1',
- 'libcpp',
- 'libcpp/po',
+ 'ld',
+ 'libctf',
'libdecnumber',
- 'libffi',
- 'libgcc',
- 'libgcc/config/avr/libf7',
- 'libgcc/config/libbid',
- 'libgfortran',
- 'libgomp',
- 'libhsail-rt',
'libiberty',
- 'libitm',
- 'libobjc',
- 'liboffloadmic',
- 'libphobos',
- 'libquadmath',
- 'libsanitizer',
- 'libssp',
- 'libstdc++-v3',
- 'libvtv',
- 'lto-plugin',
- 'maintainer-scripts',
- 'zlib'])
+ 'opcodes',
+ 'readline',
+ 'readline/readline/examples/rlfe',
+ 'sim/aarch64',
+ 'sim/arm',
+ 'sim/avr',
+ 'sim/bfin',
+ 'sim',
+ 'sim/common',
+ 'sim/cr16',
+ 'sim/cris',
+ 'sim/d10v',
+ 'sim/erc32',
+ 'sim/frv',
+ 'sim/ft32',
+ 'sim/h8300',
+ 'sim/igen',
+ 'sim/iq2000',
+ 'sim/lm32',
+ 'sim/m32c',
+ 'sim/m32r',
+ 'sim/m68hc11',
+ 'sim/mcore',
+ 'sim/microblaze',
+ 'sim/mips',
+ 'sim/mn10300',
+ 'sim/moxie',
+ 'sim/msp430',
+ 'sim/ppc',
+ 'sim/pru',
+ 'sim/rl78',
+ 'sim/rx',
+ 'sim/sh64',
+ 'sim/sh',
+ 'sim/testsuite',
+ 'sim/testsuite/d10v-elf',
+ 'sim/testsuite/frv-elf',
+ 'sim/testsuite/m32r-elf',
+ 'sim/testsuite/mips64el-elf',
+ 'sim/testsuite/sim/aarch64',
+ 'sim/testsuite/sim/arm',
+ 'sim/testsuite/sim/avr',
+ 'sim/testsuite/sim/bfin',
+ 'sim/testsuite/sim/cr16',
+ 'sim/testsuite/sim/cris',
+ 'sim/testsuite/sim/fr30',
+ 'sim/testsuite/sim/frv',
+ 'sim/testsuite/sim/ft32',
+ 'sim/testsuite/sim/h8300',
+ 'sim/testsuite/sim/iq2000',
+ 'sim/testsuite/sim/lm32',
+ 'sim/testsuite/sim/m32c',
+ 'sim/testsuite/sim/m32r',
+ 'sim/testsuite/sim/m68hc11',
+ 'sim/testsuite/sim/mcore',
+ 'sim/testsuite/sim/microblaze',
+ 'sim/testsuite/sim/mips',
+ 'sim/testsuite/sim/mn10300',
+ 'sim/testsuite/sim/moxie',
+ 'sim/testsuite/sim/msp430',
+ 'sim/testsuite/sim/or1k',
+ 'sim/testsuite/sim/pru',
+ 'sim/testsuite/sim/sh64',
+ 'sim/testsuite/sim/sh64/compact',
+ 'sim/testsuite/sim/sh64/media',
+ 'sim/testsuite/sim/sh',
+ 'sim/testsuite/sim/v850',
+ 'sim/v850',
+ 'zlib'
+])
bug_components = set([
+ # GDB components
'ada',
- 'analyzer',
- 'boehm-gc',
- 'bootstrap',
- 'c',
+ 'backtrace',
+ 'breakpoints',
+ 'build',
'c++',
+ 'cli',
+ 'compile',
+ 'corefiles',
'd',
- 'debug',
- 'demangler',
- 'driver',
- 'fastjar',
+ 'exp',
+ 'external',
'fortran',
- 'gcov-profile',
+ 'gdb',
'go',
- 'hsa',
- 'inline-asm',
- 'ipa',
+ 'guile',
+ 'i18n',
'java',
- 'jit',
- 'libbacktrace',
- 'libf2c',
- 'libffi',
- 'libfortran',
- 'libgcc',
- 'libgcj',
- 'libgomp',
- 'libitm',
- 'libobjc',
- 'libquadmath',
- 'libstdc++',
- 'lto',
- 'middle-end',
- 'modula2',
+ 'm2',
+ 'm3',
+ 'macros',
+ 'mi',
'objc',
- 'objc++',
- 'other',
- 'pch',
- 'pending',
- 'plugins',
- 'preprocessor',
- 'regression',
- 'rtl-optimization',
- 'sanitizer',
- 'spam',
- 'target',
+ 'pascal',
+ 'python',
+ 'record',
+ 'remote',
+ 'rust',
+ 'server',
+ 'shlibs',
+ 'sim',
+ 'symtab',
+ 'tdep',
'testsuite',
- 'translation',
- 'tree-optimization',
- 'web'])
+ 'threads',
+ 'tui',
+ 'varobj',
+ 'web',
+ 'win32',
+ # Binutils components
+ 'admin',
+ 'binutils',
+ 'gas',
+ 'gold',
+ 'gprof',
+ 'ld',
+ 'libctf'])
ignored_prefixes = [
'gcc/d/dmd/',
next prev parent reply other threads:[~2020-05-29 8:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-26 17:07 Auto generate ChangeLog for binutils commits? H.J. Lu
2020-05-27 14:10 ` Simon Marchi
2020-05-27 14:20 ` H.J. Lu
2020-05-27 14:29 ` Simon Marchi
2020-05-27 15:10 ` Auto update ChangeLog for binutils+gdb commits? H.J. Lu
2020-05-29 7:45 ` Martin Liška
2020-05-29 8:51 ` Martin Liška [this message]
2020-05-29 12:15 ` Tom Tromey
2020-05-29 12:25 ` Martin Liška
2020-05-29 12:44 ` Tom Tromey
2020-05-29 13:56 ` Martin Liška
2020-05-30 10:23 ` Aktemur, Tankut Baris
2020-05-30 11:22 ` Martin Liška
2020-05-30 19:41 ` Tom Tromey
2020-05-31 4:40 ` Fangrui Song
2020-05-31 7:41 ` Jan Vrany
2020-06-01 7:51 ` Martin Liška
2020-05-29 12:28 ` Martin Liška
2020-05-29 13:57 ` Eli Zaretskii
2020-05-30 19:23 ` Tom Tromey
2020-05-30 19:35 ` Eli Zaretskii
2020-06-01 7:39 ` Martin Liška
2020-06-01 14:59 ` Eli Zaretskii
2020-06-02 6:49 ` Martin Liška
2021-01-15 1:18 ` Fangrui Song
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=da493284-32ad-00e6-d5e3-b9bf0b3ef82b@suse.cz \
--to=mliska@suse.cz \
--cc=binutils@sourceware.org \
--cc=gdb@sourceware.org \
--cc=hjl.tools@gmail.com \
--cc=simark@simark.ca \
/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).