diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-10-12 09:46:38 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-10-12 09:46:38 -0700 |
commit | 9cd320ea6572c577cdf17ce1f9ea5230b166af6d (patch) | |
tree | d1c8e7c2e09a91ed75f0e5476c648c2e745aa2de /contrib | |
parent | 4854d721be78358e59367982bdd94461b4be3c5a (diff) | |
parent | 3175d40fc52fb8eb3c3b18cc343d773da24434fb (diff) | |
download | gcc-9cd320ea6572c577cdf17ce1f9ea5230b166af6d.zip gcc-9cd320ea6572c577cdf17ce1f9ea5230b166af6d.tar.gz gcc-9cd320ea6572c577cdf17ce1f9ea5230b166af6d.tar.bz2 |
Merge from trunk revision 3175d40fc52fb8eb3c3b18cc343d773da24434fb.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 33 | ||||
-rw-r--r-- | contrib/clang-format | 2 | ||||
-rw-r--r-- | contrib/config-list.mk | 3 | ||||
-rwxr-xr-x | contrib/gcc-changelog/git_commit.py | 19 | ||||
-rwxr-xr-x | contrib/gcc-changelog/git_update_version.py | 2 | ||||
-rwxr-xr-x | contrib/git-backport.py | 2 | ||||
-rwxr-xr-x | contrib/mklog.py | 9 | ||||
-rw-r--r-- | contrib/vimrc | 2 |
8 files changed, 56 insertions, 16 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 53578ac..113fdc5 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,36 @@ +2020-09-21 Tobias Burnus <tobias@codesourcery.com> + + * mklog.py: Parse first 10 lines for PR/DR number + not only the first line. + +2020-09-17 Dimitrij Mojoski <dmjpp@hotmail.com> + + * clang-format: Autodetect C++ standard in use rather than + forcing C++03. + +2020-08-26 Iain Buclaw <ibuclaw@gdcproject.org> + + * config-list.mk (LIST): Add OPT-enable-obsolete to tilegx-linux-gnu, + tilegxbe-linux-gnu, and tilepro-linux-gnu. + +2020-07-29 Martin Liska <mliska@suse.cz> + + * git-backport.py: fix how are ChangeLog paths combined. + +2020-07-23 Patrick Palka <ppalka@redhat.com> + + * vimrc (SetStyle): Also inspect &filetype to determine whether + a file is C-like. + +2020-07-23 Martin Liska <mliska@suse.cz> + + * gcc-changelog/git_commit.py: When reverting a backport, + we should print only Revert header. + +2020-07-17 Jonathan Wakely <jwakely@redhat.com> + + * gcc-changelog/git_update_version.py: Fix typo. + 2020-07-10 Mike Nolta <mike@nolta.net> * download_prerequisites: Don't pass wget options to curl. diff --git a/contrib/clang-format b/contrib/clang-format index 7a4e96f..ceb5c1d 100644 --- a/contrib/clang-format +++ b/contrib/clang-format @@ -147,4 +147,4 @@ AlignTrailingComments: true AllowShortFunctionsOnASingleLine: All AlwaysBreakTemplateDeclarations: MultiLine KeepEmptyLinesAtTheStartOfBlocks: false -Standard: Cpp03 +Standard: Auto diff --git a/contrib/config-list.mk b/contrib/config-list.mk index 5818f7d..8a4ce8a 100644 --- a/contrib/config-list.mk +++ b/contrib/config-list.mk @@ -93,7 +93,8 @@ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \ sparc64-sun-solaris2.11OPT-with-gnu-ldOPT-with-gnu-asOPT-enable-threads=posix \ sparc-wrs-vxworks sparc64-elf sparc64-rtems sparc64-linux sparc64-freebsd6 \ sparc64-netbsd sparc64-openbsd \ - tilegx-linux-gnu tilegxbe-linux-gnu tilepro-linux-gnu \ + tilegx-linux-gnuOPT-enable-obsolete tilegxbe-linux-gnuOPT-enable-obsolete \ + tilepro-linux-gnuOPT-enable-obsolete \ v850e1-elf v850e-elf v850-elf v850-rtems vax-linux-gnu \ vax-netbsdelf vax-openbsd visium-elf x86_64-apple-darwin \ x86_64-pc-linux-gnuOPT-with-fpmath=avx \ diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 827976c..5a9cc4c 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -628,7 +628,11 @@ class GitCommit: for entry in self.changelog_entries: output = '' timestamp = entry.datetime - if self.cherry_pick_commit: + if self.revert_commit: + timestamp = current_timestamp + orig_date = self.original_info.date + current_timestamp = orig_date.strftime(DATE_FORMAT) + elif self.cherry_pick_commit: info = self.commit_to_info_hook(self.cherry_pick_commit) # it can happen that it is a cherry-pick for a different # repository @@ -636,10 +640,6 @@ class GitCommit: timestamp = info.date.strftime(DATE_FORMAT) else: timestamp = current_timestamp - elif self.revert_commit: - timestamp = current_timestamp - orig_date = self.original_info.date - current_timestamp = orig_date.strftime(DATE_FORMAT) elif not timestamp or use_commit_ts: timestamp = current_timestamp authors = entry.authors if entry.authors else [self.info.author] @@ -649,12 +649,13 @@ class GitCommit: authors.append(author) if self.cherry_pick_commit or self.revert_commit: - output += self.format_authors_in_changelog([self.info.author], + original_author = self.original_info.author + output += self.format_authors_in_changelog([original_author], current_timestamp) - if self.cherry_pick_commit: - output += '\tBackported from master:\n' - else: + if self.revert_commit: output += '\tRevert:\n' + else: + output += '\tBackported from master:\n' output += self.format_authors_in_changelog(authors, timestamp, '\t') else: diff --git a/contrib/gcc-changelog/git_update_version.py b/contrib/gcc-changelog/git_update_version.py index ac1b206..d2cadb8 100755 --- a/contrib/gcc-changelog/git_update_version.py +++ b/contrib/gcc-changelog/git_update_version.py @@ -39,7 +39,7 @@ def prepend_to_changelog_files(repo, folder, git_commit, add_to_git): raise AssertionError() for entry, output in git_commit.to_changelog_entries(use_commit_ts=True): full_path = os.path.join(folder, entry, 'ChangeLog') - print('writting to %s' % full_path) + print('writing to %s' % full_path) if os.path.exists(full_path): with open(full_path) as f: content = f.read() diff --git a/contrib/git-backport.py b/contrib/git-backport.py index 3a9413d..2b8e468 100755 --- a/contrib/git-backport.py +++ b/contrib/git-backport.py @@ -46,7 +46,7 @@ if __name__ == '__main__': conflicts = out.strip().split('\n') changelogs = [c for c in conflicts if c.endswith('ChangeLog')] if changelogs: - cmd = 'git checkout --theirs %s' % '\n'.join(changelogs) + cmd = 'git checkout --theirs %s' % ' '.join(changelogs) subprocess.check_output(cmd, shell=True) # 2) remove all ChangeLog files from index cmd = 'git diff --name-only --diff-filter=M HEAD' diff --git a/contrib/mklog.py b/contrib/mklog.py index 243edbb..1e85dfe 100755 --- a/contrib/mklog.py +++ b/contrib/mklog.py @@ -38,6 +38,7 @@ from unidiff import PatchSet pr_regex = re.compile(r'(\/(\/|\*)|[Cc*!])\s+(?P<pr>PR [a-z+-]+\/[0-9]+)') dr_regex = re.compile(r'(\/(\/|\*)|[Cc*!])\s+(?P<dr>DR [0-9]+)') +dg_regex = re.compile(r'{\s+dg-(error|warning)') identifier_regex = re.compile(r'^([a-zA-Z0-9_#].*)') comment_regex = re.compile(r'^\/\*') struct_regex = re.compile(r'^(class|struct|union|enum)\s+' @@ -137,7 +138,10 @@ def generate_changelog(data, no_functions=False, fill_pr_titles=False): # Extract PR entries from newly added tests if 'testsuite' in file.path and file.is_added_file: - for line in list(file)[0]: + # Only search first ten lines as later lines may + # contains commented code which a note that it + # has not been tested due to a certain PR or DR. + for line in list(file)[0][0:10]: m = pr_regex.search(line.value) if m: pr = m.group('pr') @@ -149,7 +153,8 @@ def generate_changelog(data, no_functions=False, fill_pr_titles=False): dr = m.group('dr') if dr not in prs: prs.append(dr) - else: + elif dg_regex.search(line.value): + # Found dg-warning/dg-error line break if fill_pr_titles: diff --git a/contrib/vimrc b/contrib/vimrc index c207eea..356d455 100644 --- a/contrib/vimrc +++ b/contrib/vimrc @@ -45,7 +45,7 @@ function! SetStyle() setlocal textwidth=80 endif setlocal formatoptions-=ro formatoptions+=cqlt - if index(l:c_exts, l:ext) != -1 + if index(l:c_exts, l:ext) != -1 || &filetype == "c" || &filetype == "cpp" setlocal cindent setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,f0,h2,p4,t0,+2,(0,u0,w1,m0 endif |