diff options
author | Thomas Schwinge <tschwinge@baylibre.com> | 2024-04-10 10:20:22 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@baylibre.com> | 2024-04-10 10:20:22 +0200 |
commit | 0ba53bfa815ad64c834ad726a8cf81d7acf1c49f (patch) | |
tree | 24022ee13edfd7804bb28fd9502960f91a7a1d6e /contrib | |
parent | edd018d8c7b7a0229e10430ee61ac50f390670c2 (diff) | |
parent | ee0717da1eb5dc5d17dcd0b35c88c99281385280 (diff) | |
download | gcc-0ba53bfa815ad64c834ad726a8cf81d7acf1c49f.zip gcc-0ba53bfa815ad64c834ad726a8cf81d7acf1c49f.tar.gz gcc-0ba53bfa815ad64c834ad726a8cf81d7acf1c49f.tar.bz2 |
Merge commit 'fc59a3995cb46c190c0efb0431ad204e399975c4^' into HEAD
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 10 | ||||
-rw-r--r-- | contrib/dg-extract-results.py | 3 | ||||
-rwxr-xr-x | contrib/unicode/gen_libstdcxx_unicode_data.py | 5 |
3 files changed, 16 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 569b889..0d94109 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,13 @@ +2024-01-11 Paul Iannetta <piannetta@kalrayinc.com> + + * dg-extract-results.py: Make the test_run regex case + insensitive. + +2024-01-09 Jonathan Wakely <jwakely@redhat.com> + + * unicode/gen_libstdcxx_unicode_data.py: Print out Gcb_property + enumerators in the order they're seen, not alphabetical order. + 2024-01-08 Jonathan Wakely <jwakely@redhat.com> * unicode/README: Add notes about generating libstdc++ tables. diff --git a/contrib/dg-extract-results.py b/contrib/dg-extract-results.py index d67ce4f..0fe3c5f 100644 --- a/contrib/dg-extract-results.py +++ b/contrib/dg-extract-results.py @@ -113,7 +113,8 @@ class Prog: # Whether to create .sum rather than .log output. self.do_sum = True # Regexps used while parsing. - self.test_run_re = re.compile (r'^Test run by (\S+) on (.*)$') + self.test_run_re = re.compile (r'^Test run by (\S+) on (.*)$', + re.IGNORECASE) self.tool_re = re.compile (r'^\t\t=== (.*) tests ===$') self.result_re = re.compile (r'^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED' r'|WARNING|ERROR|UNSUPPORTED|UNTESTED' diff --git a/contrib/unicode/gen_libstdcxx_unicode_data.py b/contrib/unicode/gen_libstdcxx_unicode_data.py index 1449145..f2f2f8a 100755 --- a/contrib/unicode/gen_libstdcxx_unicode_data.py +++ b/contrib/unicode/gen_libstdcxx_unicode_data.py @@ -122,7 +122,10 @@ for line in open("GraphemeBreakProperty.txt", "r"): process_code_points(code_points, grapheme_property.strip()) edges = find_edges(all_code_points) -gcb_props = {p:i+1 for i,p in enumerate(sorted(set([x[1] for x in edges])))} +gcb_props = {"Other":0} +for c, p in edges: + if p not in gcb_props: + gcb_props[p] = len(gcb_props) shift_bits = int(math.ceil(math.log2(len(gcb_props)))) # Enum definition for std::__unicode::_Gcb_property |