Commit graph

1283 commits

Author SHA1 Message Date
GCC Administrator
7814ce44f2 Daily bump. 2023-02-18 00:17:20 +00:00
Rainer Orth
ae2c1d0a9d contrib: Fix make_sunver.pl warning
Petr informed me that perl 5.32 bundled with Solaris 11.4 warns about
make_sunver.pl:

Unescaped left brace in regex is passed through in regex; marked by <-- HERE in m/^([ \t]*){ <-- HERE $/ at /vol/gcc/src/hg/master/local/libgomp/../contrib/make_sunver.pl line 216.

I didn't notice since I'm using a common installation of perl 5.12
across Solaris versions that doesn't show that warning.

His patch fixes the issue.  Tested on Solaris 11.3 (perl 5.12) and 11.4
(perl 5.32).

2023-01-20  Petr Sumbera  <petr.sumbera@oracle.com>

	contrib:
	* make_sunver.pl: Escape brace.
2023-02-17 13:33:25 +01:00
GCC Administrator
88cc449525 Daily bump. 2023-02-17 00:17:49 +00:00
Hans-Peter Nilsson
384dedaf65 objs-gcc.sh: Only bootstrap if source-directory contains gcc
I use objs-gcc.sh as a preparatory step before calling
btest-gcc.sh in my scripts, for example my cris-elf
autotester.  I thought, why not use it for native builds
too.  Except that use, with binutils release-style tarballs
and a x86_64-pc-linux-gnu host, was broken.  Now that I look
at it, the script seems to have aged poorly...  Still,
there's a need for such a script to install stuff needed for
btest-gcc.sh (and to fix up stuff if needed), and this can
still be that script.  So, I prefer to fix show-stoppers for
common uses, while taking care to retain compatibility for
use that could possibly still work, with current sources.

A long time ago (before 2011, but after this script was
created in 2002, and used for a few years), the binutils
(and gdb and gcc) toplevel Makefile may have had a bootstrap
target that worked with binutils but didn't require gcc
sources to be present.  Now, you'll get an error (see
configure.ac line 1366 and on).  Let's just build the
default make-target when "bootstrap" is known to fail.
An alternative would be to fold this native
non-i686-pc-linux-gnu clause into the native
i686-pc-linux-gnu clause, as that seems to have been
originally intended as *the* single native clause, but
that'd require further edits (e.g. to remove install-dejagnu
and make gdb build conditional on gdb sources presence, to
work with binutils tarballs, and I'd also then prefer to
build not just ld, but also gas and binutils).

As it's a minimal obvious change required for current native
use with release-tarballs and git-checkout use(*), I'm
installing this as obvious.

*) Native i686-pc-linux-gnu remains broken for other use
than specially constructed combined trees where dejagnu is
included at the toplevel (i.e. historic Cygnus devo-type).

contrib/regression:
	* objs-gcc.sh: Only bootstrap if source-directory contains gcc.
2023-02-16 01:26:45 +01:00
GCC Administrator
d7a47ed17a Daily bump. 2023-02-11 00:17:31 +00:00
Flavio Cruz
e635681dd2 Add x86_64-gnu target to contrib/config-list.mk
contrib/ChangeLog:
	* config-list.mk: Add x86_64-gnu to list of archs.

Signed-off-by: Flavio Cruz <flaviocruz@gmail.com>
2023-02-10 09:33:22 +01:00
GCC Administrator
0846336de5 Daily bump. 2023-01-20 00:17:40 +00:00
Gaius Mulley
5115508919 PR-108373 Update contrib/gcc_update:files_and_dependencies for Modula-2
This patch adds the dependencies for automatically generated files used
by the Modula-2 front end.

contrib/ChangeLog:

	* gcc_update (files_and_dependencies): Add dependencies for
	gcc/m2/gm2config.h.in, gcc/m2/configure,
	gcc/m2/gm2-libs/config-host, libgm2/Makefile.in,
	libgm2/aclocal.m4, libgm2/libm2cor/Makefile.in,
	libgm2/libm2pim/Makefile.in, libgm2/libm2iso/Makefile.in,
	libgm2/libm2log/Makefile.in and libgm2/libm2min/Makefile.in.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2023-01-19 15:00:19 +00:00
GCC Administrator
8d07b193d7 Daily bump. 2023-01-18 00:17:21 +00:00
Martin Liska
be6d1a76d7 Ignore test_patches.txt in update-copyright.py.
contrib/ChangeLog:

	* update-copyright.py: Ignore test_patches.txt.
2023-01-17 14:01:24 +01:00
Martin Liska
6da37b4227 contrib: revert removal of CR character
contrib/ChangeLog:

	* gcc-changelog/test_patches.txt: The CR character was removed
	with ./contrib/update-copyright.py which I'm going to change.
2023-01-17 12:55:43 +01:00
GCC Administrator
f457a62e63 Daily bump. 2023-01-17 00:18:06 +00:00
Jakub Jelinek
83ffe9cde7 Update copyright years. 2023-01-16 11:52:17 +01:00
Jakub Jelinek
3e087d9ab8 contrib: Yet another update-copyright.py tweak [PR108413]
Ignore __builtins.di like object.d is already ignored.

2023-01-16  Jakub Jelinek  <jakub@redhat.com>

	PR other/108413
	* update-copyright.py (LibPhobosFilter): Add __builtins.di to
	skipped files.
2023-01-16 11:38:33 +01:00
Jakub Jelinek
d1c6a352ca contrib: Partial fix for failed update-copyright --this year [PR108413]
As mentioned on IRC or in PR108413, the last update-copyright.py --this year
failed and that is why we are in a strange state where some copyrights have
been updated and others have not.
The full list of errors I got was I think:
gcc/m2/mc-boot/GmcOptions.c: unrecognised copyright: comment (f, (const char *) "Copyright (C) ''2021'' Free Software Foundation, Inc.", 53);
gcc/m2/mc-boot/GmcOptions.c: unrecognised copyright: comment (f, (const char *) "Copyright (C) ''2021'' Free Software Foundation, Inc.", 53);
gcc/testsuite/gm2/switches/pedantic-params/pass/Strings.mod: unrecognised copyright holder: Faculty of Information Technology,
gcc/testsuite/gm2/switches/pedantic-params/pass/Strings2.mod: unrecognised copyright holder: Faculty of Information Technology,
libphobos/libdruntime/__builtins.di: unrecognised copyright: * Copyright: Copyright Digital Mars 2022
libstdc++-v3/src/c++17/fast_float/fast_float.h: unrecognised copyright holder: The fast_float authors
libstdc++-v3/include/c_compatibility/stdatomic.h: unrecognised copyright holder: The GCC developers

The following patch deals with the gcc/testsuite/gm2 ones and
with the fast_float.h one, ok for trunk?

Not really sure what we should do in the GmcOptions.c case
(perhaps obfuscate it in the source somehow by splitting
the string literals into different substrings
Perhaps "Copy" "right (" "C) ''..." would do it?  Or do we want
to bump there each year (manually or by the script)?
E.g. in gcc.cc we have
      printf ("Copyright %s 2023 Free Software Foundation, Inc.\n",
              _("(C)"));
which also prints (C) nicer in Unicode if possible and is updated
by hand each year.

I have no idea about the libphobos case, we have tons of
libphobos/src/std/format/spec.d:Copyright: Copyright The D Language Foundation 2000-2013.
libphobos/src/std/random.d:Copyright: Copyright Andrei Alexandrescu 2008 - 2009, Joseph Rushton Wakeling 2012.
etc. lines and those aren't reported as errors.

And the last one is that I think for The GCC developers we should treat it
similarly like FSF and bump copyright on it.
Would
        canon_gcc = 'The GCC developers'
        self.add_package_author ('The GCC developers', canon_gcc)
        self.add_package_author ('The GCC Developers', canon_gcc)
or something similar do the trick?

2023-01-16  Jakub Jelinek  <jakub@redhat.com>

	PR other/108413
	* update-copyright.py (TestsuiteFilter): Add .mod and .rs extensions.
	(GCCCopyright): Add 'The fast_float authors' as external author.
2023-01-16 11:03:30 +01:00
GCC Administrator
cc44e55e55 Daily bump. 2023-01-16 00:17:33 +00:00
Gerald Pfeifer
b92e553558 config-list.mk: Modernize FreeBSD targets towards version 13
contrib/ChangeLog:

2023-01-15  Gerald Pfeifer  <gerald@pfeifer.com>

	* config-list.mk: Update FreeBSD targets to version 13.
	Add aarch64-freebsd13.
2023-01-15 14:38:32 +01:00
GCC Administrator
81ed98bc57 Daily bump. 2023-01-12 00:18:07 +00:00
Gerald Pfeifer
306ff653a3 config-list.mk: Remove obsolete FreeBSD targets
ia64-freebsd is officially dead, and sparc64-freebsd has not been able
to build GCC for half a dozen years (or so) and is essentially end of
life.

The default per gcc/config/i386/freebsd.h has been i586 for a while,
so i486-freebsd can go as well. (We still have i686-freebsd.)

contrib/ChangeLog:

	* config-list.mk: Remove i486-freebsd4, ia64-freebsd6, and
	sparc64-freebsd6.
2023-01-12 01:08:45 +01:00
GCC Administrator
d808db1f7b Daily bump. 2023-01-07 00:17:28 +00:00
Martin Liska
55f813f5cd contrib: add 'contrib' to default dirs in update-copyright.py
contrib/ChangeLog:

	* update-copyright.py: Add contrib as a default dir.
2023-01-06 08:45:24 +01:00
GCC Administrator
9b111debbf Daily bump. 2022-12-29 00:17:39 +00:00
Martin Liska
d898a17b92 contrib: add contrib to update-copyright.py script
contrib/ChangeLog:

	* update-copyright.py: Add contrib folder.
2022-12-28 10:22:38 +01:00
GCC Administrator
376d6b8c6a Daily bump. 2022-12-24 00:17:19 +00:00
Arsen Arsenović
e70380f454 contrib: Add dg-out-generator.pl
This script is a helper used to generate dg-output lines from an existing
program output conveniently.  It takes care of escaping Tcl and ARE stuff.

contrib/ChangeLog:

	* dg-out-generator.pl: New file.
2022-12-22 19:44:07 -05:00
GCC Administrator
de282a2012 Daily bump. 2022-12-22 00:17:29 +00:00
Martin Liska
af49fd41ab contrib: simplify filter-clang-warnings.py
contrib/ChangeLog:

	* filter-clang-warnings.py: Simplify.
2022-12-21 09:10:34 +01:00
Martin Liska
0d1b5446bf contrib: filter out more unrelated warnings
contrib/ChangeLog:

	* filter-clang-warnings.py: Skip Makefile and libffi warnings.
2022-12-21 09:08:24 +01:00
GCC Administrator
d2ef2327bb Daily bump. 2022-12-20 00:17:00 +00:00
Martin Liska
a9f6a2b7f5 gcc-changelog: support digits in PR's component in subject
contrib/ChangeLog:

	* gcc-changelog/git_commit.py: Support digits in PR's
	component in subject.
2022-12-19 14:55:39 +01:00
Martin Liska
7e9ec734f9 gcc-changelog: allow digit in component name
contrib/ChangeLog:

	* gcc-changelog/git_commit.py: Allow digit in component name.

contrib/ChangeLog:

	* gcc-changelog/test_email.py: Add new test.
	* gcc-changelog/test_patches.txt: Add new patch.
2022-12-19 14:39:25 +01:00
Tobias Burnus
2b2cec58ff gcc-changelog: Add warning for auto-added files
git_email.py prints now a warning for files added automatically.
git_check_commit.py does likewise but only with --verbose.
It prints one line per ChangeLog file, either stating the file
or if more than one the number of files.

contrib/ChangeLog:

	* gcc-changelog/git_check_commit.py (__main__): With -v print a
	warning for the auto-added files.
	* gcc-changelog/git_commit.py (GitCommit.__init__): Add self.warnings.
	(GitCommit.check_mentioned_files): Add warning for auto-added files.
	(GitCommit.print_warnings): New function.
	* gcc-changelog/git_email.py (__main__): Remove bogus argument to
	GitEmail constructor; print auto-added-files warning.
	* gcc-changelog/test_email.py (test_auto_add_file_1,
	test_auto_add_file_2): New tests.
	* gcc-changelog/test_patches.txt: Add two test cases.
2022-12-19 12:12:16 +01:00
Martin Liska
17b41a2839 gcc-changelog: stop using --flake8
The flake8 pytest plug-in is broken and we should not use it.

contrib/ChangeLog:

	* gcc-changelog/setup.cfg: Do not use flake8 pytest plug-in.
2022-12-19 10:02:38 +01:00
GCC Administrator
5fb1e67453 Daily bump. 2022-12-17 00:17:56 +00:00
Martin Liska
d386d39920 contrib: make warnings unique in filter-clang-warnings.py
contrib/ChangeLog:

	* filter-clang-warnings.py: Print each warning only one time.
2022-12-16 13:07:27 +01:00
Martin Liska
66c2f03d4c gcc-changelog: do not use PatchSet.from_filename
Use rather PatchSet constructor where we can pass
properly opened file with newline='\n'.

contrib/ChangeLog:

	* gcc-changelog/git_email.py: Use PatchSet constructor
	as newline argument is not supported with older unidiff
	library.
2022-12-16 12:21:59 +01:00
Tobias Burnus
8f2a8be579 gcc-changelog/git_email.py: Support older unidiff.PatchSet
Commit "unidiff: use newline='\n' argument",
r13-4603-gb045179973161115c7ea029b2788f5156fc55cda, added support CR
on a line, but that broke support for older unidiff.PatchSet.

This patch uses a fallback for git_email.py (drop argument) if not
available (TypeError exception) but keeps using it in test_email.py
unconditionally.

contrib/ChangeLog:

	* gcc-changelog/git_email.py (GitEmail:__init__): Support older
	unidiff.PatchSet that do not have a newline= argument
	of from_filename.
2022-12-16 11:02:24 +01:00
GCC Administrator
26f4aefaeb Daily bump. 2022-12-15 00:17:29 +00:00
Martin Liska
81f86cb969 contrib: add copyright for my scripts
contrib/ChangeLog:

	* analyze_brprob.py: Add copyright header.
	* analyze_brprob_spec.py: Likewise.
	* check-params-in-docs.py: Likewise.
	* check_GNU_style.py: Likewise.
	* check_GNU_style_lib.py: Likewise.
	* filter-clang-warnings.py: Likewise.
	* gcc-changelog/git_check_commit.py: Likewise.
	* gcc-changelog/git_commit.py: Likewise.
	* gcc-changelog/git_email.py: Likewise.
	* gcc-changelog/git_repository.py: Likewise.
	* gcc-changelog/git_update_version.py: Likewise.
	* gcc-changelog/test_email.py: Likewise.
	* mark_spam.py: Likewise.
2022-12-14 14:06:58 +01:00
Martin Liska
e165214777 mklog: do not depend on recent unidiff version
contrib/ChangeLog:

	* mklog.py: Check for number of hunks and not if a modified
	file is binary.
2022-12-14 11:33:25 +01:00
GCC Administrator
1728c537b4 Daily bump. 2022-12-13 00:18:07 +00:00
Martin Liska
14d0f82cab mklog: do not parse binary file for PR entry
contrib/ChangeLog:

	* mklog.py: Do not search PR entry in a file that is binary.
2022-12-12 13:24:25 +01:00
GCC Administrator
324e995340 Daily bump. 2022-12-12 00:22:21 +00:00
Martin Liska
b045179973 unidiff: use newline='\n' argument
In order to support CR on a line, we need to open files
with newline='\n' as our line endings supposed to be of UNIX style.

contrib/ChangeLog:

	* check_GNU_style.py: Use newline=\n.
	* check_GNU_style_lib.py: Simplify.
	* gcc-changelog/git_commit.py: Fix issues seen
	Rust patchset.
	* gcc-changelog/git_email.py: Use newline argument.
	* gcc-changelog/test_email.py: New test.
	* gcc-changelog/test_patches.txt: New test.
	* mklog.py: Use newline argument.
2022-12-11 17:22:25 +01:00
GCC Administrator
c6b12b802c Daily bump. 2022-12-11 00:17:43 +00:00
Thomas Schwinge
325529e21e Prepare 'contrib/gcc-changelog/git_commit.py' for GCC/Rust
contrib/
	* gcc-changelog/git_commit.py (default_changelog_locations): Add
	'gcc/rust'.
	(bug_components): Add 'rust'.
2022-12-10 07:29:22 +01:00
Gaius Mulley
7e4aa71043 Add ChangeLog directories for modula2 into git_commit.py.
Prepare to add changelogs for the Modula2 front end by changing
the contrib git_commit.py script.

contrib/ChangeLog:

	* gcc-changelog/git_commit.py (default_changelog_locations):
	New entry for gcc/m2.  New entry for libgm2.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2022-12-10 02:21:53 +00:00
GCC Administrator
3fe66f7f9f Daily bump. 2022-12-07 00:18:44 +00:00
David Malcolm
fa19bfbb0a contrib: doxygen: add gcc/analyzer subdirectory to INPUT
contrib/ChangeLog:
	* gcc.doxy (INPUT): Add gcc/analyzer subdirectory.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
2022-12-06 13:26:56 -05:00
GCC Administrator
d769c50408 Daily bump. 2022-11-26 00:17:08 +00:00