Martin Liska
617c564bf0
Make mklog more robust.
...
2019-11-08 Martin Liska <mliska@suse.cz>
* mklog: The script fails for patches that contain:
'---param=foo=bar xyz'.
From-SVN: r277952
2019-11-08 08:39:17 +00:00
Martin Liska
bc7f7ff954
mklog: Do not print changed functions in testsuite
...
2019-09-04 Martin Liska <mliska@suse.cz>
* mklog: Do not print changed functions for
testsuite files.
From-SVN: r275369
2019-09-04 08:08:20 +00:00
Martin Liska
a45de90e56
mklog: parse PR references from new test files
...
2019-09-04 Martin Liska <mliska@suse.cz>
* mklog: Parse PR references from newly added
test files.
From-SVN: r275368
2019-09-04 08:08:06 +00:00
Martin Liska
e94e92dcda
Use argparse.ArgumentParser for mklog.
...
2019-09-04 Martin Liska <mliska@suse.cz>
* mklog: Use argparse instead of getopt.
From-SVN: r275367
2019-09-04 08:07:37 +00:00
Janne Blomqvist
6d64cee84b
mklog/91048: Open ~/.mklog in string mode.
...
2019-07-02 Janne Blomqvist <jb@gcc.gnu.org>
PR other/91048
* mklog (read_user_info): Open ~/.mklog in string mode.
From-SVN: r272921
2019-07-02 08:54:31 +03:00
Janne Blomqvist
36902ed6bd
contrib/mklog: Open files in text mode
...
Due to the python 3 conversion, files should be opened in text mode,
matching stdin/stdout.
2019-05-21 Janne Blomqvist <jb@gcc.gnu.org>
* mklog: Open files in text mode.
From-SVN: r271459
2019-05-21 11:37:05 +03:00
Janne Blomqvist
eaa6a39d42
Convert contrib/mklog script to Python 3
...
Upstream will drop support for Python 2.x on January 1, 2020. This
patch converts the contrib/mklog script to Python 3. The process for
the conversion was as follows.
- Use the futurize tool (https://python-future.org ) to apply the
print_with_import, except, and dict transformations.
- Remove the "from __future__ import print_function".
- Change the shebang line to search for python3 in the environment.
- Modify the run() function to return a str instead of bytes.
- Update the copyright year.
contrib/ChangeLog:
2019-05-21 Janne Blomqvist <jb@gcc.gnu.org>
* mklog: Convert to Python 3.
From-SVN: r271456
2019-05-21 09:59:16 +03:00
Sandra Loosemore
6791469314
PR other/16615 [1/5]
...
2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
PR other/16615 [1/5]
contrib/
* mklog: Mechanically replace "can not" with "cannot".
gcc/
* Makefile.in: Mechanically replace "can not" with "cannot".
* alias.c: Likewise.
* builtins.c: Likewise.
* calls.c: Likewise.
* cgraph.c: Likewise.
* cgraph.h: Likewise.
* cgraphclones.c: Likewise.
* cgraphunit.c: Likewise.
* combine-stack-adj.c: Likewise.
* combine.c: Likewise.
* common/config/i386/i386-common.c: Likewise.
* config/aarch64/aarch64.c: Likewise.
* config/alpha/sync.md: Likewise.
* config/arc/arc.c: Likewise.
* config/arc/predicates.md: Likewise.
* config/arm/arm-c.c: Likewise.
* config/arm/arm.c: Likewise.
* config/arm/arm.h: Likewise.
* config/arm/arm.md: Likewise.
* config/arm/cortex-r4f.md: Likewise.
* config/csky/csky.c: Likewise.
* config/csky/csky.h: Likewise.
* config/darwin-f.c: Likewise.
* config/epiphany/epiphany.md: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/sol2.h: Likewise.
* config/m68k/m68k.c: Likewise.
* config/mcore/mcore.h: Likewise.
* config/microblaze/microblaze.md: Likewise.
* config/mips/20kc.md: Likewise.
* config/mips/sb1.md: Likewise.
* config/nds32/nds32.c: Likewise.
* config/nds32/predicates.md: Likewise.
* config/pa/pa.c: Likewise.
* config/rs6000/e300c2c3.md: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/s390/s390.h: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/sh.md: Likewise.
* config/spu/vmx2spu.h: Likewise.
* cprop.c: Likewise.
* dbxout.c: Likewise.
* df-scan.c: Likewise.
* doc/cfg.texi: Likewise.
* doc/extend.texi: Likewise.
* doc/fragments.texi: Likewise.
* doc/gty.texi: Likewise.
* doc/invoke.texi: Likewise.
* doc/lto.texi: Likewise.
* doc/md.texi: Likewise.
* doc/objc.texi: Likewise.
* doc/rtl.texi: Likewise.
* doc/tm.texi: Likewise.
* dse.c: Likewise.
* emit-rtl.c: Likewise.
* emit-rtl.h: Likewise.
* except.c: Likewise.
* expmed.c: Likewise.
* expr.c: Likewise.
* fold-const.c: Likewise.
* genautomata.c: Likewise.
* gimple-fold.c: Likewise.
* hard-reg-set.h: Likewise.
* ifcvt.c: Likewise.
* ipa-comdats.c: Likewise.
* ipa-cp.c: Likewise.
* ipa-devirt.c: Likewise.
* ipa-fnsummary.c: Likewise.
* ipa-icf.c: Likewise.
* ipa-inline-transform.c: Likewise.
* ipa-inline.c: Likewise.
* ipa-polymorphic-call.c: Likewise.
* ipa-profile.c: Likewise.
* ipa-prop.c: Likewise.
* ipa-pure-const.c: Likewise.
* ipa-reference.c: Likewise.
* ipa-split.c: Likewise.
* ipa-visibility.c: Likewise.
* ipa.c: Likewise.
* ira-build.c: Likewise.
* ira-color.c: Likewise.
* ira-conflicts.c: Likewise.
* ira-costs.c: Likewise.
* ira-int.h: Likewise.
* ira-lives.c: Likewise.
* ira.c: Likewise.
* ira.h: Likewise.
* loop-invariant.c: Likewise.
* loop-unroll.c: Likewise.
* lower-subreg.c: Likewise.
* lra-assigns.c: Likewise.
* lra-constraints.c: Likewise.
* lra-eliminations.c: Likewise.
* lra-lives.c: Likewise.
* lra-remat.c: Likewise.
* lra-spills.c: Likewise.
* lra.c: Likewise.
* lto-cgraph.c: Likewise.
* lto-streamer-out.c: Likewise.
* postreload-gcse.c: Likewise.
* predict.c: Likewise.
* profile-count.h: Likewise.
* profile.c: Likewise.
* recog.c: Likewise.
* ree.c: Likewise.
* reload.c: Likewise.
* reload1.c: Likewise.
* reorg.c: Likewise.
* resource.c: Likewise.
* rtl.def: Likewise.
* rtl.h: Likewise.
* rtlanal.c: Likewise.
* sched-deps.c: Likewise.
* sched-ebb.c: Likewise.
* sched-rgn.c: Likewise.
* sel-sched-ir.c: Likewise.
* sel-sched.c: Likewise.
* shrink-wrap.c: Likewise.
* simplify-rtx.c: Likewise.
* symtab.c: Likewise.
* target.def: Likewise.
* toplev.c: Likewise.
* tree-call-cdce.c: Likewise.
* tree-cfg.c: Likewise.
* tree-complex.c: Likewise.
* tree-core.h: Likewise.
* tree-eh.c: Likewise.
* tree-inline.c: Likewise.
* tree-loop-distribution.c: Likewise.
* tree-nrv.c: Likewise.
* tree-profile.c: Likewise.
* tree-sra.c: Likewise.
* tree-ssa-alias.c: Likewise.
* tree-ssa-dce.c: Likewise.
* tree-ssa-dom.c: Likewise.
* tree-ssa-forwprop.c: Likewise.
* tree-ssa-loop-im.c: Likewise.
* tree-ssa-loop-ivcanon.c: Likewise.
* tree-ssa-loop-ivopts.c: Likewise.
* tree-ssa-loop-niter.c: Likewise.
* tree-ssa-phionlycprop.c: Likewise.
* tree-ssa-phiopt.c: Likewise.
* tree-ssa-propagate.c: Likewise.
* tree-ssa-threadedge.c: Likewise.
* tree-ssa-threadupdate.c: Likewise.
* tree-ssa-uninit.c: Likewise.
* tree-ssanames.c: Likewise.
* tree-streamer-out.c: Likewise.
* tree.c: Likewise.
* tree.h: Likewise.
* vr-values.c: Likewise.
gcc/ada/
* exp_ch9.adb: Mechanically replace "can not" with "cannot".
* libgnat/s-regpat.ads: Likewise.
* par-ch4.adb: Likewise.
* set_targ.adb: Likewise.
* types.ads: Likewise.
gcc/cp/
* cp-tree.h: Mechanically replace "can not" with "cannot".
* parser.c: Likewise.
* pt.c: Likewise.
gcc/fortran/
* class.c: Mechanically replace "can not" with "cannot".
* decl.c: Likewise.
* expr.c: Likewise.
* gfc-internals.texi: Likewise.
* intrinsic.texi: Likewise.
* invoke.texi: Likewise.
* io.c: Likewise.
* match.c: Likewise.
* parse.c: Likewise.
* primary.c: Likewise.
* resolve.c: Likewise.
* symbol.c: Likewise.
* trans-array.c: Likewise.
* trans-decl.c: Likewise.
* trans-intrinsic.c: Likewise.
* trans-stmt.c: Likewise.
gcc/go/
* go-backend.c: Mechanically replace "can not" with "cannot".
* go-gcc.cc: Likewise.
gcc/lto/
* lto-partition.c: Mechanically replace "can not" with "cannot".
* lto-symtab.c: Likewise.
* lto.c: Likewise.
gcc/objc/
* objc-act.c: Mechanically replace "can not" with "cannot".
libbacktrace/
* backtrace.h: Mechanically replace "can not" with "cannot".
libgcc/
* config/c6x/libunwind.S: Mechanically replace "can not" with
"cannot".
* config/tilepro/atomic.h: Likewise.
* config/vxlib-tls.c: Likewise.
* generic-morestack-thread.c: Likewise.
* generic-morestack.c: Likewise.
* mkmap-symver.awk: Likewise.
libgfortran/
* caf/single.c: Mechanically replace "can not" with "cannot".
* io/unit.c: Likewise.
libobjc/
* class.c: Mechanically replace "can not" with "cannot".
* objc/runtime.h: Likewise.
* sendmsg.c: Likewise.
liboffloadmic/
* include/coi/common/COIResult_common.h: Mechanically replace
"can not" with "cannot".
* include/coi/source/COIBuffer_source.h: Likewise.
libstdc++-v3/
* include/ext/bitmap_allocator.h: Mechanically replace "can not"
with "cannot".
From-SVN: r267783
2019-01-09 16:37:45 -05:00
Yury Gribov
01f5295df1
Added Python implementation of mklog.
...
From-SVN: r250836
2017-08-02 21:01:08 +00:00
Yury Gribov
e1df0c9134
Renamed original mklog to mklog.pl.
...
From-SVN: r250835
2017-08-02 20:58:23 +00:00
Yury Gribov
883b0e467a
mklog: Fix extraction of changed file name.
...
2017-07-17 Yury Gribov <tetra2005@gmail.com>
* mklog: Fix extraction of changed file name.
From-SVN: r250314
2017-07-18 18:39:39 +03:00
Trevor Saunders
1f347c50ef
teach mklog to look in the current directory for ChangeLog files
...
when run in repos other than gcc mklog fails to find ChangeLog files
because it looks for $0/../$dir/ChangeLog, but of course if the diff is
for a project other than gcc that might not exist. It should be fine to
also look for $cwd/$dir/ChangeLog, and use that if we find it. This
means that for example in binutils-gdb.git you can do git commit,
and then in your editor read git diff HEAD~ | mklog - to generate a
template ChangeLog for that commit.
contrib/ChangeLog:
2016-03-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* mklog: Look for the ChangeLog file in $cwd.
From-SVN: r234014
2016-03-06 17:36:19 +00:00
Yury Gribov
a92a1c274c
mklog: Ignore preprocessor directives.
...
2015-05-12 Yury Gribov <y.gribov@samsung.com>
* mklog: Ignore preprocessor directives.
From-SVN: r223081
2015-05-12 15:31:02 +00:00
Tom de Vries
fdb424cfea
Use .mklog name and email settings, or git settings
...
2014-11-25 Tom de Vries <tom@codesourcery.com>
Peter Bergner <bergner@vnet.ibm.com>
* mklog: Handle .mklog. Use git setting independent of presence .git
directory.
Co-Authored-By: Peter Bergner <bergner@vnet.ibm.com>
From-SVN: r218050
2014-11-25 16:45:13 +00:00
Tom de Vries
78d7f09fff
Fix patch mangling with --inline option
...
2014-11-14 Tom de Vries <tom@codesourcery.com>
* mklog: Move reading of .diff file up and add comment. Copy diff_lines
to orig_diff_lines. Use orig_diff_lines when appending patch.
From-SVN: r217558
2014-11-14 12:09:45 +00:00
Marat Zakirov
67183c4d78
mklog: Symbol '}' stops search for changes.
...
contrib/
2014-11-11 Marat Zakirov <m.zakirov@samsung.com>
* mklog: Symbol '}' stops search for changes.
From-SVN: r217357
2014-11-11 15:26:03 +00:00
Marat Zakirov
a8cfbbdc74
mklog: Always doubt in functions.
...
contrib/
2014-11-07 Marat Zakirov <m.zakirov@samsung.com>
* mklog: Always doubt in functions.
Add EOF protection.
From-SVN: r217212
2014-11-07 08:15:19 +00:00
Tom de Vries
38278d8a9c
Add --inline option to contrib/mklog
...
2014-09-22 Tom de Vries <tom@codesourcery.com>
* mklog: Add --inline option.
From-SVN: r215462
2014-09-22 12:53:12 +00:00
Yury Gribov
649aa8c183
mklog: Allow running from arbitrary folder.
...
2014-08-01 Yury Gribov <y.gribov@samsung.com>
* mklog: Allow running from arbitrary folder.
From-SVN: r213401
2014-08-01 04:19:59 +00:00
Trevor Saunders
633e5fbb24
mklog: Run mklog as a filter.
...
contrib/
2014-07-21 Trevor Saunders <tsaunders@mozilla.com>
Yury Gribov <y.gribov@samsung.com>
* mklog: Run mklog as a filter.
Co-Authored-By: Yury Gribov <y.gribov@samsung.com>
From-SVN: r212884
2014-07-21 07:45:45 +00:00
Trevor Saunders
863aa163a0
contrib/
...
2014-07-21 Trevor Saunders <tsaunders@mozilla.com>
mklog: Read name and email from git config when available.
From-SVN: r212883
2014-07-21 07:39:40 +00:00
Yury Gribov
69b0996357
mklog: Improve support of context diffs.
...
2014-01-29 Yury Gribov <y.gribov@samsung.com>
* mklog: Improve support of context diffs.
From-SVN: r207265
2014-01-29 16:17:22 +00:00
Jonathan Wakely
6468818948
mklog: Fix description at top of file.
...
2014-01-27 Jonathan Wakely <jwakely@redhat.com>
* mklog: Fix description at top of file.
From-SVN: r207153
2014-01-27 21:43:09 +00:00
Tatiana Udalova
e8b37cb6d5
* mklog: Avoid adding falsely changed functions to ChangeLog.
...
From-SVN: r206875
2014-01-21 16:07:22 +06:00
Yury Gribov
b654717c8d
mklog: Automatically insert comments in trivial cases.
...
2013-12-23 Yury Gribov <y.gribov@samsung.com>
* mklog: Automatically insert comments in trivial cases.
From-SVN: r206175
2013-12-23 07:17:52 +00:00
Yury Gribov
26b086810a
mklog: Split generated message in parts.
...
2013-12-19 Yury Gribov <y.gribov@samsung.com>
* mklog: Split generated message in parts.
From-SVN: r206116
2013-12-19 14:50:05 +00:00
Marek Polacek
9adf6490fc
The new mklog script prints three spaces after the date part, which is wrong.
...
The new mklog script prints three spaces after the date part, which
is wrong. Thus fixed by adjusting the split pattern. Tested manually.
2012-05-31 Marek Polacek <polacek@redhat.com>
* mklog: Prevent printing three spaces after the date.
From-SVN: r188265
2012-06-06 08:50:55 -04:00
Diego Novillo
ba0d684ecd
Add new skeleton ChangeLog file generator to contrib/
...
This script analyzes a .diff file and generates a skeleton ChangeLog
entry for it. It tries fairly hard to find function names, so it's
important to use the -p switch with diff.
I wrote the initial code a while ago. Cary added a bunch of smarts to
make it understand C++ and guess the function names better than the
original version.
2012-05-31 Diego Novillo <dnovillo@google.com>
Cary Coutant <ccoutant@google.com>
* mklog: New.
Co-Authored-By: Cary Coutant <ccoutant@google.com>
From-SVN: r188072
2012-05-31 14:01:15 -04:00