Skip to content
Snippets Groups Projects
  1. Dec 14, 2023
  2. Dec 13, 2023
  3. Dec 03, 2023
  4. Dec 02, 2023
    • Richard Sandiford's avatar
      Tweak language choice in config-list.mk · 301dec85
      Richard Sandiford authored
      When I tried to use config-list.mk, the build for every triple except
      the build machine's failed for m2.  This is because, unlike other
      languages, m2 builds target objects during all-gcc.  The build will
      therefore fail unless you have access to an appropriate binutils
      (or an equivalent).  That's quite a big ask for over 100 targets. :)
      
      This patch therefore makes m2 an optional inclusion.
      
      Doing that wasn't entirely straightforward though.  The current
      configure line includes "--enable-languages=all,...", which means
      that the "..." can only force languages to be added that otherwise
      wouldn't have been.  (I.e. the only effect of the "..." is to
      override configure autodetection.)
      
      The choice of all,ada and:
      
        # Make sure you have a recent enough gcc (with ada support) in your path so
        # that --enable-werror-always will work.
      
      make it clear that lack of GNAT should be a build failure rather than
      silently ignored.  This predates the D frontend, which requires GDC
      in the same way that Ada requires GNAT.  I don't know of a reason
      why D should be treated differently.
      
      The patch therefore expands the "all" into a specific list of
      languages.
      
      That in turn meant that Fortran had to be handled specially,
      since bpf and mmix don't support Fortran.
      
      Perhaps there's an argument that m2 shouldn't build target objects
      during all-gcc, but (a) it works for practical usage and (b) the
      patch is an easy workaround.  I'd be happy for the patch to be
      reverted if the build system changes.
      
      contrib/
      	* config-list.mk (OPT_IN_LANGUAGES): New variable.
      	($(LIST)): Replace --enable-languages=all with a specifc list.
      	Disable fortran on bpf and mmix.  Enable the languages in
      	OPT_IN_LANGUAGES.
      301dec85
  5. Nov 24, 2023
  6. Nov 23, 2023
    • Hans-Peter Nilsson's avatar
      contrib/regression/btest-gcc.sh: Optionally handle XPASS. · 4eafb974
      Hans-Peter Nilsson authored
      Tests with keys that match both PASS, FAIL (or now
      optionally XPASS), count as fail.  XPASSes were previously
      ignored.  Handling them as FAIL seems the most useful
      alternative, but not counting XPASSes may be deliberate.
      It's also a matter of compatibility, so make it optional.
      
      Attempts to use --handle-xpass-as-fail was previously
      flagged as a usage error.  If you pass it now, on state with
      previous mixed XPASS and PASS results but doesn't change in
      this run, the XPASS is discovered as a (new) regression.
      For new XPASSing tests, it's handled as a new FAIL.
      
      	* btest-gcc.sh (--handle-xpass-as-fail): New option.
      4eafb974
    • Hans-Peter Nilsson's avatar
      contrib/regression/btest-gcc.sh: Simplify option handling. · 071dadb7
      Hans-Peter Nilsson authored
      	* btest-gcc.sh (Option handling): Break out shifts from each
      	option alternative.
      071dadb7
    • Hans-Peter Nilsson's avatar
      contrib/regression/btest-gcc.sh: Handle multiple options. · 0ca1e90a
      Hans-Peter Nilsson authored
      This is a long-standing bug: passing "-j --add-passes-despite-regression"
      or "--add-passes-despite-regression -j" caused the second option to be
      treated as TARGET; the first non-option parameter.
      
      	* btest-gcc.sh (Option handling): Handle multiple options.
      0ca1e90a
  7. Nov 15, 2023
  8. Nov 14, 2023
    • Jakub Jelinek's avatar
      libcpp, contrib: Update to Unicode 15.1 · d64b7c82
      Jakub Jelinek authored
      The following patch (in plaintext just a pseudo-patch where I've left out
      the too big parts of either wget downloaded or regenerated files out with
      ..., full patch attached compressed) updates to Unicode 15.1 from 15.0
      we had last year.  Apparently Unicode forgot to add a new range to 4-8 Table
      we are using, but from the other files it is clear what should have been
      added; I've filed a bugreport against Unicode.
      
      2023-11-14  Jakub Jelinek  <jakub@redhat.com>
      
      contrib/
      	* unicode/README: Adjust glibc git commit hash, number of Unicode
      	data files to be updated and latest Unicode version.
      	* unicode/from_glibc/utf8_gen.py: Update from glibc.
      	* unicode/UnicodeData.txt: Update from Unicode 15.1.
      	* unicode/EastAsianWidth.txt: Likewise.
      	* unicode/DerivedNormalizationProps.txt: Likewise.
      	* unicode/NameAliases.txt: Likewise.
      	* unicode/DerivedCoreProperties.txt: Likewise.
      	* unicode/PropList.txt: Likewise.
      libcpp/
      	* makeucnid.cc (write_copyright): Update copyright year.
      	* makeuname2c.cc (write_copyright): Likewise.
      	(struct generated): Update latest Unicode version.
      	(generated_ranges): Add 2ebf0-2ee5d CJK UNIFIED IDEOGRAPH
      	range which was forgotten to be added to 4-8 table, but
      	clearly is expected to be there from the 15.1 additions.
      	* ucnid.h: Regenerated.
      	* uname2c.h: Regenerated.
      	* generated_cpp_wcwidth.h: Regenerated.
      d64b7c82
    • GCC Administrator's avatar
      Daily bump. · b9fd8399
      GCC Administrator authored
      b9fd8399
    • Jakub Jelinek's avatar
      contrib: Ignore the r14-5312-g040e5b0edbca861196d9e2ea2af5e805769c8d5d bogus commit · 0a1dd8b5
      Jakub Jelinek authored
      The r14-5312-g040e5b0edbca861196d9e2ea2af5e805769c8d5d commit log contains
      a line from git revert with correct hash, but unfortunately hand ammended
      with explanation, so it got through the pre-commit hook but failed during
      update_version_git generation.  Please don't do this.
      
      2023-11-14  Jakub Jelinek  <jakub@redhat.com>
      
      contrib/ChangeLog:
      	* gcc-changelog/git_update_version.py: Add
      	040e5b0e to ignored commits.
      0a1dd8b5
  9. Nov 13, 2023
    • Arsen Arsenović's avatar
      *: add modern gettext · db50aea6
      Arsen Arsenović authored
      This patch updates gettext.m4 and related .m4 files and adds
      gettext-runtime as a gmp/mpfr/... style host library, allowing newer
      libintl to be used.
      
      This patch /does not/ add build-time tools required for
      internationalizing (msgfmt et al), instead, it just updates the runtime
      library.  The result should be a distribution that acts exactly the same
      when a copy of gettext is present, and disables internationalization
      otherwise.
      
      There should be no changes in behavior when gettext is included in-tree.
      When gettext is not included in tree, nor available on the system, the
      programs will be built without localization.
      
      ChangeLog:
      
      	PR bootstrap/12596
      	* .gitignore: Add '/gettext*'.
      	* configure.ac (host_libs): Replace intl with gettext.
      	(hbaseargs, bbaseargs, baseargs): Split baseargs into
      	{h,b}baseargs.
      	(skip_barg): New flag.  Skips appending current flag to
      	bbaseargs.
      	<library exemptions>: Exempt --with-libintl-{type,prefix} from
      	target and build machine argument passing.
      	* configure: Regenerate.
      	* Makefile.def (host_modules): Replace intl module with gettext
      	module.
      	(configure-ld): Depend on configure-gettext.
      	* Makefile.in: Regenerate.
      
      config/ChangeLog:
      
      	* intlmacosx.m4: Import from gettext-0.22 (serial 8).
      	* gettext.m4: Sync with gettext-0.22 (serial 77).
      	* gettext-sister.m4 (ZW_GNU_GETTEXT_SISTER_DIR): Load gettext's
      	uninstalled-config.sh, or call AM_GNU_GETTEXT if missing.
      	* iconv.m4: Sync with gettext-0.22 (serial 26).
      
      contrib/ChangeLog:
      
      	* prerequisites.sha512: Add gettext.
      	* prerequisites.md5: Add gettext.
      	* download_prerequisites: Add gettext.
      
      gcc/ChangeLog:
      
      	* configure: Regenerate.
      	* aclocal.m4: Regenerate.
      	* Makefile.in (LIBDEPS): Remove (potential) ./ prefix from
      	LIBINTL_DEP.
      	* doc/install.texi: Document new (notable) flags added by the
      	optional gettext tree and by AM_GNU_GETTEXT.  Document libintl/libc
      	with gettext dependency.
      
      libcpp/ChangeLog:
      
      	* configure: Regenerate.
      	* aclocal.m4: Regenerate.
      
      libstdc++-v3/ChangeLog:
      
      	* configure: Regenerate.
      db50aea6
  10. Oct 06, 2023
  11. Oct 05, 2023
    • Andrea Corallo's avatar
      contrib: add mdcompact · e866d08d
      Andrea Corallo authored
      Hello all,
      
      this patch checks in mdcompact, the tool written in elisp that I used
      to mass convert all the multi choice pattern in the aarch64 back-end to
      the new compact syntax.
      
      I tested it on Emacs 29 (might run on older versions as well not
      sure), also I verified it runs cleanly on a few other back-ends (arm,
      loongarch).
      
      The tool can be used to convert a single pattern, an open buffer or
      all md files in a directory.
      
      The tool might need further adjustment to run on some specific
      back-end, in case very happy to help.
      
      This patch was pre-approved here [1].
      
      Best Regards
      
        Andrea Corallo
      
      [1] <https://gcc.gnu.org/pipermail/gcc-patches/2023-October/631830.html>
      
      contrib/ChangeLog
      
      	* mdcompact/mdcompact-testsuite.el: New file.
      	* mdcompact/mdcompact.el: Likewise.
      	* mdcompact/tests/1.md: Likewise.
      	* mdcompact/tests/1.md.out: Likewise.
      	* mdcompact/tests/2.md: Likewise.
      	* mdcompact/tests/2.md.out: Likewise.
      	* mdcompact/tests/3.md: Likewise.
      	* mdcompact/tests/3.md.out: Likewise.
      	* mdcompact/tests/4.md: Likewise.
      	* mdcompact/tests/4.md.out: Likewise.
      	* mdcompact/tests/5.md: Likewise.
      	* mdcompact/tests/5.md.out: Likewise.
      	* mdcompact/tests/6.md: Likewise.
      	* mdcompact/tests/6.md.out: Likewise.
      	* mdcompact/tests/7.md: Likewise.
      	* mdcompact/tests/7.md.out: Likewise.
      e866d08d
  12. Oct 04, 2023
  13. Oct 03, 2023
    • Martin Jambor's avatar
      contrib/mklog.py: Fix issues reported by flake8 · 5f187974
      Martin Jambor authored
      The testing infrastructure built by Martin Liška contains checking a
      few python scripts in contrib witha tool flake8.  That tool recently
      complains that:
      
        contrib/mklog.py:360:45: E711 comparison to None should be 'if cond is None:'
        contrib/mklog.py:362:1: E305 expected 2 blank lines after class or function definition, found 1
      
      I'd like to silence these with the following, hopefully trivial,
      changes.  However, I have only tested the changes by running flake8
      again and running ./contrib/mklog.py --help.
      
      Is this good for trunk?  (Or should I stop using flake8 instead?)
      
      Thanks,
      
      Martin
      
      contrib/ChangeLog:
      
      2023-10-03  Martin Jambor  <mjambor@suse.cz>
      
      	* mklog.py (skip_line_in_changelog): Compare to None using is instead
      	of ==, add an extra newline after the function.
      5f187974
    • GCC Administrator's avatar
      Daily bump. · 41d1c9a9
      GCC Administrator authored
      41d1c9a9
  14. Oct 02, 2023
    • Iain Sandoe's avatar
      contrib: Update Darwin entries in config-list.mk · 594fe745
      Iain Sandoe authored
      
      This list was out of date, and included cases that are not well-supported
      for cross-compilers.
      
      This updates the list to bracket the range of OS versions we support and
      to drop one earlier case where GCC will no longer build with native tools.
      
      contrib/ChangeLog:
      
      	* config-list.mk: Add newer Darwin versions, trim one older.
      	Remove cases with no OS version, which is not supported for cross-
      	compilers.
      
      Signed-off-by: default avatarIain Sandoe <iain@sandoe.co.uk>
      594fe745
  15. Sep 30, 2023
  16. Sep 29, 2023
    • Patrick O'Neill's avatar
      check_GNU_style.py: Skip .md square bracket linting · 895ec195
      Patrick O'Neill authored
      
      This testcase causes lots of false-positives for machine description files.
      
      contrib/ChangeLog:
      
      	* check_GNU_style_lib.py: Skip machine description file bracket linting.
      
      Signed-off-by: default avatarPatrick O'Neill <patrick@rivosinc.com>
      895ec195
    • Paul Iannetta's avatar
      Harmonize headers between both dg-extract-results scripts · 346f5991
      Paul Iannetta authored
          The header of the python version looked like:
          Target is ...
          Host   is ...
          The header of the bash version looked like:
          Test run by ... on ...
          Target is ...
      
          After this change both headers look like:
          Test run by ... on ...
          Target is ...
          Host   is ...
      
          The order of the tests is not the same but since dg-cmp-results.sh it
          does not matter much.
      
      contrib/ChangeLog:
      
      	* dg-extract-results.py: Print the "Test run" line.
      	* dg-extract-results.sh: Print the "Host" line.
      346f5991
  17. Sep 13, 2023
  18. Sep 12, 2023
  19. Sep 11, 2023
  20. Sep 08, 2023
    • Tobias Burnus's avatar
      Update contrib + libgomp ChangeLogs for failed reject-commit testing · 478c37e7
      Tobias Burnus authored
      The following commit should have enabled checking for invalid revert hashes;
      it worked locally - but did work as pre-commit hook on sourceware
      as it wasn't copied to the hook directory:
      r14-3777-gff20bce9f58 contrib/gcc-changelog: Check whether revert-commit exists
      
      Hence, the following revert commit was wrongly applied:
      r14-3778-gfbbd9001e9b Revert "contrib/gcc-changelog: Check whether revert-commit exists"
      (In this commit: contrib/ChangeLog update for the revert.)
      
      r14-3779-g69e83181ebc contrib/gcc-changelog: Check whether revert-commit exists
      Re-applied the commit with a commit-log typo fixed but missing a late commit.
      
      r14-3780-g1b0934b7276 Revert "contrib/gcc-changelog: Check whether revert-commit exists"
      This commit still came through but re-instated the late wording fix in
      contrib/gcc-changelog/git_commit.py.
      (In this commit: contrib/ChangeLog update for the wording change.)
      
      r14-3781-gd22cd7745ff Revert: "Another revert test with a bogus hash"
      Another attempt to get a reject, but it still came through.
      It removed tailing whitespace in libgomp/target.c
      (In this commit: libgomp/ChangeLog was for the whitespace removal.)
      478c37e7
    • GCC Administrator's avatar
      Daily bump. · 109c11f6
      GCC Administrator authored
      109c11f6
  21. Sep 07, 2023
    • Tobias Burnus's avatar
      Revert "contrib/gcc-changelog: Check whether revert-commit exists" · 1b0934b7
      Tobias Burnus authored
      This reverts commit ffffffffffffffffffffffffffffffffffffffff.
      
      This checks whether the pre-commit hook of the mentioned commit
      triggers and rejects this commit due to the bogus commit hash.
      
      This commit actually does not revert that patch but fixes that
      patch as 'technically' was accidently re-added in the second
      commit.
      1b0934b7
    • Tobias Burnus's avatar
      contrib/gcc-changelog: Check whether revert-commit exists · 69e83181
      Tobias Burnus authored
      This is the identical (except for a ChangeLog typo) to
        commit r14-3777-gff20bce9f5879878f352f1fcd6ade023a2067598
      
      It reverts the test revert in commit
        r14-3778-gfbbd9001e9b6f2c59b542cc53a8f9183514091ce
      which has a bogus commit hash and should have been rejected,
      but we missed that - before testing - the script had to be
      manually copied to the right place on sourceware to be
      affective as pre-commit hook.
      
      Thus, the r14-3777 commit had to be reinstate by this commit ...
      
      contrib/ChangeLog:
      
      	* gcc-changelog/git_commit.py (GitCommit.__init__):
      	Handle commit_to_info_hook = None; otherwise, if None,
      	regard it as error.
      	(to_changelog_entries): Handle commit_to_info_hook = None;
      	if info is None, create a warning for it.
      	* gcc-changelog/git_email.py (GitEmail.__init__):
      	call super() with commit_to_info_hook=None instead
      	of a lambda function.
      69e83181
    • Tobias Burnus's avatar
      Revert "contrib/gcc-changelog: Check whether revert-commit exists" · fbbd9001
      Tobias Burnus authored
      This reverts commit ffffffffffffffffffffffffffffffffffffffff.
      fbbd9001
    • Tobias Burnus's avatar
      contrib/gcc-changelog: Check whether revert-commit exists · ff20bce9
      Tobias Burnus authored
      contrib/ChangeLog:
      
      	* gcc-changelog/git_commit.py (GitCommit.__init__):
      	Handle commit_to_info_hook = None; otherwise, if None,
      	regard it as error.
      	(to_changelog_entries): Handle commit_to_info_hook = None;
      	if info is None, create a warning for it.
      	* gcc-changelog/git_email.py (GitEmail.__init__):
      	call super() with commit_to_info_hook=None instead
      	of a lamda function.
      ff20bce9
  22. Sep 05, 2023
  23. Sep 04, 2023
    • Marc Poulhiès's avatar
      mklog: handle Signed-off-by, minor cleanup · f3f6ff7b
      Marc Poulhiès authored
      
      Consider Signed-off-by lines as part of the ending of the initial
      commit to avoid having these in the middle of the log when the
      changelog part is injected after.
      
      This is particularly usefull with:
      
       $ git gcc-commit-mklog --amend -s
      
      that can be used to create the changelog and add the Signed-off-by line.
      
      Also applies most of the shellcheck suggestions on the
      prepare-commit-msg hook.
      
      contrib/ChangeLog:
      
      	* mklog.py: Leave SOB lines after changelog.
      	* prepare-commit-msg: Apply most shellcheck suggestions.
      
      Signed-off-by: default avatarMarc Poulhiès <dkm@kataplop.net>
      f3f6ff7b
  24. Aug 30, 2023
  25. Aug 29, 2023
    • Lehua Ding's avatar
      mklog: fix bugs of --append option · ebffc840
      Lehua Ding authored
      This little patch fix two bugs of mklog.py with --append option.
      The first bug is that the regexp used is not accurate enough to
      determine the top of diff area. The second bug is that if `---`
      is not a true start, it needs to be added back to the patch file.
      And with additional fix Python code format error, which Martin reported.
      
      contrib/ChangeLog:
      
      	* mklog.py: Fix bugs.
      ebffc840
  26. Aug 17, 2023
  27. Aug 16, 2023
  28. Jul 14, 2023
  29. Jul 13, 2023
    • Lehua Ding's avatar
      mklog: Add --append option to auto add generate ChangeLog to patch file · 7f0700a6
      Lehua Ding authored
      
      This tiny patch add --append option to mklog.py that support add generated
      change-log to the corresponding patch file. With this option there is no need
      to manually copy the generated change-log to the patch file. e.g.:
      
      Run `mklog.py --append /path/to/this/patch` will add the generated change-log
      to the right place of the /path/to/this/patch file.
      
      contrib/ChangeLog:
      
      	* mklog.py: Add --append option.
      
      Signed-off-by: default avatarLehua Ding <lehua.ding@rivai.ai>
      7f0700a6
Loading