aboutsummaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)AuthorFilesLines
2024-04-16Rust: Move 'libformat_parser' build into libgrustThomas Schwinge1-0/+1
Addresses #2883. contrib/ * gcc_update (files_and_dependencies): Update for 'libformat_parser' in libgrust. gcc/rust/ * Make-lang.in (LIBFORMAT_PARSER): Point to 'libformat_parser' build in libgrust. (%.toml:, $(LIBFORMAT_PARSER):): Remove. libgrust/ * libformat_parser/Makefile.am: New. * Makefile.am [!TARGET_LIBRARY] (SUBDIRS): Add 'libformat_parser'. * configure.ac: Handle it. (TARGET_LIBRARY): New 'AM_CONDITIONAL'. * libformat_parser/Makefile.in: Generate. * Makefile.in: Regenerate. * configure: Likewise.
2024-04-10Merge commit 'f5a805d82902fe2d6e0a7af8c0e6519f9d25a8f3' into HEADThomas Schwinge6-11/+39
2024-04-10Merge commit 'f89186f962421f6d972035fc4b4c20490e7b1c5b^' into HEADThomas Schwinge3-1/+43
2024-04-10Merge commit 'fc59a3995cb46c190c0efb0431ad204e399975c4^' into HEADThomas Schwinge3-2/+16
2024-03-22Merge commit '9f7afa99c67f039e43019ebd08d14a7f01e2d89c' into HEADThomas Schwinge1-0/+7
2024-03-22Merge commit 'cde6f1085b7027f6a42fdb71c786d422606a8765^' into HEADThomas Schwinge23-21/+3071
2024-03-22Merge commit '00dea7e8c41b672730d6e2c891b6012a83d8842c^' into HEADThomas Schwinge1-0/+5
2024-03-22Merge commit 'a945c346f57ba40fc80c14ac59be0d43624e559d' into HEAD [#2842]Thomas Schwinge77-79/+79
2024-03-22Merge commit 'a945c346f57ba40fc80c14ac59be0d43624e559d^' into HEADThomas Schwinge4-4/+32
2024-03-22Merge commit 'f37c55c14bc1176ef9a15fe584fb6d1bf2e6162f' into HEAD [#1913]Thomas Schwinge1-0/+4
2024-03-19Merge commit 'a857ec6aada08d8c334c389c7b682198d749b6c9^' into HEADThomas Schwinge2-1/+14
2024-03-19Merge commit '8fc4e6c397e1ce64bec6f9fed148950821cc79e7^' into HEADThomas Schwinge2-3/+21
2024-03-19Merge commit 'f7884f7673444b8a2c10ea0981d480f2e82dd16a^' into HEADThomas Schwinge2-9/+35
2024-03-17Merge commit '56ca59a03150cf44cea340f58967c990ed6bf43c^' into HEADThomas Schwinge10-2615/+9036
2024-03-17Merge commit 'db50aea62595452db12565186cb520728540d987' into HEADThomas Schwinge3-0/+4
2024-03-11Merge commit 'af4bb221153359f5948da917d5ef2df738bb1e61' into HEADThomas Schwinge22-10/+655
2024-03-11Merge commit 'ce7a757fd9ecb99c4f54cfde5cf5ef9a9e7819fc^' into HEADThomas Schwinge2-1/+12
2024-03-11Merge commit 'af91934c2f6b8efc67d625c99068b4761ae5edd0^' into HEADThomas Schwinge4-8/+62
2024-03-11Merge commit '1ad5ae5a45f2e3fc6948b35a3b052fdd48453704^' into HEADThomas Schwinge1-0/+5
2024-03-11Merge commit 'f3f6ff7b16861cd0651eccff14689536550762ae' into HEAD [#2414]Thomas Schwinge1-1/+1
2024-03-11Merge commit 'f3f6ff7b16861cd0651eccff14689536550762ae^' into HEADThomas Schwinge3-3/+14
2024-03-10Merge commit '126f707efbb5184178701cbdc753a10fd831374e^' into HEADThomas Schwinge3-2/+36
2024-03-10Merge commit 'f4a2ae2338962208b8039f154f5912402e94c378^' into HEADThomas Schwinge1-0/+6
2024-03-10Merge commit '4f01ae3761ca1f8dd7a33b833ae30624f047ac9c' into HEADThomas Schwinge3-0/+246
2024-03-10Merge commit '4f01ae3761ca1f8dd7a33b833ae30624f047ac9c^' into HEADThomas Schwinge2-4/+19
2024-03-10Merge commit 'ea1cd66f2200839d46a8b4dc140d18c00b849c82^' into HEADThomas Schwinge3-78/+333
2024-03-10Merge commit 'bc45e18d433f879a02e369d027829f90f9e85724^' into HEADThomas Schwinge6-6/+30
2024-03-10Merge commit '0a85544e1aaeca41133ecfc438cda913dbc0f122^' into HEADThomas Schwinge5-3/+18
2024-03-09Daily bump.GCC Administrator1-0/+6
2024-03-08contrib: Improve dg-extract-results.sh's Python detection [PR109668]Sam James1-7/+10
'python' on some systems (e.g. SLES 15) might be Python 2. Prefer python3, then python, then python2 (as the script still tries to work there). PR other/109668 * dg-extract-results.sh: Check for python3 before python. Check for python2 last.
2024-03-08Daily bump.GCC Administrator1-0/+4
2024-03-07contrib: Update test_mklog to correspond to mklogFilip Kastl1-1/+1
contrib/ChangeLog: * test_mklog.py: "Moved to..." -> "Move to..." Signed-off-by: Filip Kastl <fkastl@suse.cz>
2024-03-02Daily bump.GCC Administrator1-0/+4
2024-03-01contrib: mklog: Use present tense in ChangeLogBernhard Reutner-Fischer1-1/+1
contrib/ChangeLog: * mklog.py: Use present tense in ChangeLog.
2024-03-01Daily bump.GCC Administrator1-0/+4
2024-02-29Add libcc1 to bug componentsAndrew Pinski1-0/+1
As found by Tom Tromey in https://gcc.gnu.org/pipermail/gcc-patches/2024-February/646807.html libcc1 is not listed as bug component even though it is there in bugzilla. This fixes that oversight. Committed as obvious after testing using git gcc-verify on a patch. contrib/ChangeLog: * gcc-changelog/git_commit.py (bug_components): Add libcc1. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
2024-02-24Daily bump.GCC Administrator1-0/+5
2024-02-23Add ia64*-*-* to the list of obsolete targetsRichard Biener1-2/+3
The following deprecates ia64*-*-* for GCC 14. Since we plan to force LRA for GCC 15 and the target only has slim chances of getting updated this notifies people in advance. Given both Linux and glibc have axed the target further development is also made difficult. There is no listed maintainer for ia64 either. PR target/90785 gcc/ * config.gcc: Add ia64*-*-* to the list of obsoleted targets. contrib/ * config-list.mk (LIST): --enable-obsolete for ia64*-*-*.
2024-02-16libgrust: Add entry for maintainersPierre-Emmanuel Patry1-0/+1
ChangeLog: * MAINTAINERS: Add maintainers for libgrust. contrib/ChangeLog: * gcc-changelog/git_commit.py: Add libgrust. (cherry picked from commit e4f0eb725d836ef0eec780cbb9e7be0d31c6fe8b) Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com> Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
2024-02-16contrib: Add libgrust to update-copyright.py scriptSahil Yeole1-0/+2
contrib/ChangeLog: * update-copyright.py: Add libgrust folder. Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
2024-02-06Daily bump.GCC Administrator1-0/+5
2024-02-05contrib: Fill in HOST{CC,CFLAGS,CXX,CXXFLAGS} in test_installedJakub Jelinek1-0/+4
gcc/Makefile.in since my r0-60234 change fills in HOSTCC and HOSTCFLAGS in site.exp and since r8-671 also HOSTCXX and HOSTCXXFLAGS. If those variables aren't set, we get errors like: /usr/src/gcc/contrib/test_installed --without-g++ --without-gfortran --without-objc struct-layout-1.exp ... ERROR: tcl error sourcing /usr/src/gcc/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp. ERROR: tcl error code TCL LOOKUP VARNAME HOSTCC ERROR: can't read "HOSTCC": no such variable while executing "remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd"" (file "/usr/src/gcc/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp" line 96) invoked from within "source /usr/src/gcc/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source /usr/src/gcc/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp" invoked from within "catch "uplevel #0 source $test_file_name" msg" (similarly in g++ or gfortran) struct-layout-1.exp. One doesn't need to test specially for just struct-layout-1.exp alone, just not using any arg will trigger it as well, just later. The following patch fills it in as cc and c++ with empty flags to compile those, I believe that is what e.g. make uses by default, so it should be a reasonable default. We IMHO shouldn't default to GCC_UNDER_TEST because that might be a cross-compiler etc. 2024-02-05 Jakub Jelinek <jakub@redhat.com> * test_installed: Fill in HOSTCC, HOSTCXX, HOSTCFLAGS and HOSTCXXFLAGS.
2024-02-05Daily bump.GCC Administrator1-0/+5
2024-02-04libstdc++: Add copyright and license text to new generated headersJonathan Wakely1-1/+29
contrib/ChangeLog: * unicode/gen_libstdcxx_unicode_data.py: Add copyright and license text to the output. libstdc++-v3/ChangeLog: * include/bits/text_encoding-data.h: Regenerate. * include/bits/unicode-data.h: Regenerate. * scripts/gen_text_encoding_data.py: Add copyright and license text to the output.
2024-01-12Daily bump.GCC Administrator1-0/+5
2024-01-11dg-extract-results.py: Ignore case in header linePaul Iannetta1-1/+2
DejaGNU changed its header line from "Test Run By" to "Test run by" around 2016. This patch makes it so that both alternatives are correcly detected. contrib/ChangeLog: * dg-extract-results.py: Make the test_run regex case insensitive.
2024-01-10Daily bump.GCC Administrator1-0/+5
2024-01-09libstdc++: Fix Unicode property detection functionsJonathan Wakely1-1/+4
Fix some copy & pasted logic in __is_extended_pictographic. This function should yield false for the values before the first edge, not true. Also add a missing boundary condition check in __incb_property. Also Fix an off-by-one error in _Utf_iterator::operator++() that would make dereferencing a past-the-end iterator undefined (where the intended design is that the iterator is always incrementable and dereferenceable, for better memory safety). Also simplify the grapheme view iterator, which still contained some remnants of an earlier design I was experimenting with. Slightly tweak the gen_libstdcxx_unicode_data.py script so that the _Gcb_property enumerators are in the order we encounter them in the data file, instead of sorting them alphabetically. Start with the "Other" property at value 0, because that's the default property for anything not in the file. This makes no practical difference, but seems cleaner. It causes the values in the __gcb_edges table to change, so can only be done now before anybody is using this code yet. The enumerator values and table entries become ABI artefacts for the function using them. contrib/ChangeLog: * unicode/gen_libstdcxx_unicode_data.py: Print out Gcb_property enumerators in the order they're seen, not alphabetical order. libstdc++-v3/ChangeLog: * include/bits/unicode-data.h: Regenerate. * include/bits/unicode.h (_Utf_iterator::operator++()): Fix off by one error. (__incb_property): Add missing check for values before the first edge. (__is_extended_pictographic): Invert return values to fix copy&pasted logic. (_Grapheme_cluster_view::_Iterator): Remove second iterator member and find end of cluster lazily. * testsuite/ext/unicode/grapheme_view.cc: New test. * testsuite/ext/unicode/properties.cc: New test. * testsuite/ext/unicode/view.cc: New test.
2024-01-09Daily bump.GCC Administrator1-0/+7
2024-01-08libstdc++: Add Unicode-aware width estimation for std::formatJonathan Wakely4-2/+3027
This implements the requirements in the following proposals, which dictate how std::format deals with non-ASCII strings: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1868r1.html https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2572r1.html https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2675r1.pdf There are two parts to this. The width estimation for strings must only count the width of the first character in an extended grapheme cluster. That requires implementing the algorithm for detecting cluster breaks, which requires a number of lookup tables of the grapheme cluster break properties (and Indic_Conjunct_Break and Extended_Pictographic properties) of every code point. Additionally, some characters have a field width of 2, which requires another lookup table of field widths for every code point. The tables added in this commit do not contain entries for every code point from 0 to 0x10FFFF as that would be very inefficient and use too much memory. Instead the tables only contain the code points that form an "edge" for a property, omitting all the code points that have the same property as the preceding one. We can use a binary search to find the closest code point in the table that is not greater than the one we're looking for. The tables are generated by a new Python script added to the contrib/unicode directory, and a new data file downloaded from the Unicode Consortium website. The rules for extended grapheme cluster breaking are implemented for the latest Unicode standard, version 15.1.0. libstdc++-v3/ChangeLog: * include/Makefile.am: Add new headers. * include/Makefile.in: Regenerate. * include/bits/unicode.h: New file. * include/bits/unicode-data.h: New file. * include/std/format: Include <bits/unicode.h>. (__literal_encoding_is_utf8): Move to <bits/unicode.h>. (_Spec::_M_fill): Change type to char32_t. (_Spec::_M_parse_fill_and_align): Read a Unicode scalar value instead of a single character. (__write_padded): Change __fill_char parameter to char32_t and encode it into the output. (__formatter_str::format): Use new __unicode::__field_width and __unicode::__truncate functions. * include/std/ostream: Adjust namespace qualification for __literal_encoding_is_utf8. * include/std/print: Likewise. * src/c++23/print.cc: Add [[unlikely]] attribute to error path. * testsuite/ext/unicode/view.cc: New test. * testsuite/std/format/functions/format.cc: Add missing examples from the standard demonstrating alignment with non-ASCII characters. Add examples checking correct handling of extended grapheme clusters. contrib/ChangeLog: * unicode/README: Add notes about generating libstdc++ tables. * unicode/GraphemeBreakProperty.txt: New file. * unicode/emoji-data.txt: New file. * unicode/gen_libstdcxx_unicode_data.py: New file.