diff --git a/htdocs/codingconventions.html b/htdocs/codingconventions.html index f4732ef6..d2e73962 100644 --- a/htdocs/codingconventions.html +++ b/htdocs/codingconventions.html @@ -112,9 +112,14 @@ maintained and kept up to date. In particular:
GCC requires ChangeLog entries for documentation changes; for the web
-pages (apart from java/
and libstdc++/
) the CVS
-commit logs are sufficient.
+ChangeLog entries are part of git commit messages and are automatically put
+into a corresponding ChangeLog file. A ChangeLog template can be easily generated
+with ./contrib/mklog
script. GCC offers a checking script that
+verifies a proper ChangeLog formatting (see git gcc-verify
git alias).
+for a particular git commit. The checking script covers most commonly used ChangeLog
+formats and the following paragraphs explain what it supports.
+
For changes that are ported from another branch, we recommend to -use a single entry whose body contains a verbatim copy of the original -entries describing the changes on that branch, possibly preceded by a -single-line overall description of the changes.
+git_description
- a leading text with git commit descriptioncommitter_timestamp
- line with timestamp and an author name and email (2 spaces before and after name) 2020-04-23␣␣Martin Liska␣␣<mliska@suse.cz>
additional_author
- line with additional commit author name and email (starting with a tabular and 4 spaces) \t␣␣␣␣Martin Liska␣␣<mliska@suse.cz>
changelog_location
- a location to a ChangeLog file a/b/c/ChangeLog
, a/b/c/ChangeLog:
, a/b/c/
(where ChangeLog file lives in the folder), \ta/b/c/
and a/b/c
pr_entry
- bug report reference \tPR component/12345
changelog_file
- a modified file mentined in a ChangeLog:
+ supported formats: \t* a/b/c/file.c:
, \t* a/b/c/file.c (function):
, \t* a/b/c/file1.c, a/b/c/file2.c:
changelog_file_comment
- line that follows a changelog_file
with description of changes in the file;
+ must start with \t
co_authored_by
- GitHub format for a Co-Authored-Bygit_description
- optional; ends right before one of the other compoments is foundcommitter_timestamp
- optional; when found before a changelog_file
, then it is added
+ to each changelog entryadditional_author
- optionalchangelog_location
- optional; parser attempts to identify ChangeLog file based
+ on modified files; $changelog_location
belonging to a different ChangeLog must
+ be separated with an empty linepr_entry
- optional; can contain any number of PR entrieschangelog_file
- each changelog_location
must contain at least one filechangelog_file_comment
- optionalco_authored_by
- optional, can contain more than onechangelog_location
file location can be deduced based on group of changelog_file
sco_authored_by
is added to each ChangeLog entryChangeLog
files, DATESTAMP
, BASE-VER
and DEV-PHASE
can be modified only separately from other filesThere is no established convention on when ChangeLog entries are to -be made for testsuite changes; see messages 1 and 2.
+If your change fixes a PR, put PR java/58
(where
-java/58
is the actual number of the PR) at the top
-of the ChangeLog entry.
This patch adds a second movk pattern that models the instruction
+as a "normal" and/ior operation rather than an insertion. It fixes
+the third insv_1.c failure in PR87763, which was a regression from
+GCC 8.
+
+2020-02-06 John Foo <john@example.com>
+
+gcc/
+ PR target/87763
+ * config/aarch64/aarch64-protos.h (aarch64_movk_shift): Declare.
+ * config/aarch64/aarch64.c (aarch64_movk_shift): New function.
+ * config/aarch64/aarch64.md (aarch64_movk<mode>): New pattern.
+
+gcc/testsuite/
+ PR target/87763
+ * gcc.target/aarch64/movk_2.c: New test.
+
+Co-Authored-By: Jack Bar <jack@example.com>
+
+
+
+$git_description
+
+$committer_timestamp
+
+$changelog_location
+$pr_entry
+$changelog_file
+$changelog_file
+$changelog_file
+
+$changelog_location
+$pr_entry
+$changelog_file
+
+$co_authored_by
+
touch
should never be used in GCC Makefiles. Instead
diff --git a/htdocs/contribute.html b/htdocs/contribute.html
index 3d03b9d1..80a4470e 100644
--- a/htdocs/contribute.html
+++ b/htdocs/contribute.html
@@ -177,22 +177,10 @@ testcases cannot be added.
PR java/2369
is
-valid. Multiple PRs can be mentioned in a single message.
-merge --squash
squash, but still need to make sure
the commits on the branch satisfy the above rules for commits.
--And then to enable it, do --git clone git://git.savannah.gnu.org/gnulib.git -cd gnulib -./gnulib-tool --create-testdir --dir=/tmp/testdir123 git-merge-changelog -cd /tmp/testdir123 -./configure -make -make install -
--git config --global merge.merge-changelog.name "GNU-style ChangeLog merge driver" -git config --global merge.merge-changelog.driver "git-merge-changelog %O %A %B" -echo "ChangeLog* merge=merge-changelog" >> $GCCSRCDIR/.git/info/attributes -
The final customization that the script makes is to add a diff rule so