Skip to content

Commit 733edbf

Browse files
author
GCC Administrator
committed
Daily bump.
1 parent 62597d1 commit 733edbf

File tree

8 files changed

+340
-1
lines changed

8 files changed

+340
-1
lines changed

gcc/ChangeLog

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,194 @@
1+
2024-12-16 Uros Bizjak <[email protected]>
2+
3+
* config/i386/mmx.md: Fix tabs vs. spaces.
4+
5+
2024-12-16 Uros Bizjak <[email protected]>
6+
7+
* config/i386/i386.cc (ix86_hard_regno_mode_ok):
8+
Remove explicit HImode handling for SSE2 XMM regnos.
9+
* config/i386/i386.h (VALID_SSE2_REG_MODE): Add HImode.
10+
11+
2024-12-16 David Malcolm <[email protected]>
12+
13+
* libsarifreplay.cc (struct embedded_link): New.
14+
(maybe_consume_embedded_link): New.
15+
(sarif_replayer::make_plain_text_within_result_message): Handle
16+
embedded links by using the link text, for now.
17+
18+
2024-12-16 David Malcolm <[email protected]>
19+
20+
* doc/libgdiagnostics/topics/logical-locations.rst
21+
(diagnostic_manager_new_logical_location): Add note about repeated
22+
calls.
23+
* libgdiagnostics.cc: Define INCLUDE_MAP.
24+
(class owned_nullable_string): Add copy ctor and move ctor.
25+
(owned_nullable_string::operator<): New.
26+
(diagnostic_logical_location::operator<): New.
27+
(diagnostic_manager::new_logical_location): Use m_logical_locs to
28+
"uniquify" instances, converting it to a std::map.
29+
(diagnostic_manager::logical_locs_map_t): New typedef.
30+
(diagnostic_manager::t m_logical_locs): Convert from a std::vector
31+
to a std::map.
32+
(diagnostic_execution_path::same_function_p): Update comment.
33+
34+
2024-12-16 David Malcolm <[email protected]>
35+
36+
PR sarif-replay/117943
37+
* doc/libgdiagnostics/topics/physical-locations.rst
38+
(diagnostic_manager_new_file): Drop "const" from return type.
39+
* doc/libgdiagnostics/tutorial/02-physical-locations.rst: Drop
40+
"const" from "main_file" decl.
41+
* input.cc (file_cache::add_buffered_content): New.
42+
(file_cache_slot::set_content): New.
43+
(file_cache_slot::dump): Use m_file_path being null rather than
44+
m_fp to determine empty slots. Dump m_fp.
45+
(find_end_of_line): Drop "const" from return type and param. Add
46+
forward decl.
47+
(file_cache_slot::get_next_line): Fix "const"-ness.
48+
(selftest::test_reading_source_buffer): New.
49+
(selftest::input_cc_tests): Call it.
50+
* input.h (file_cache::add_buffered_content): New decl.
51+
* libgdiagnostics++.h (class file): Drop const-ness from m_inner.
52+
(file::set_buffered_content): New.
53+
* libgdiagnostics.cc (class content_buffer): New.
54+
(diagnostic_file::diagnostic_file): Add "mgr" param.
55+
(diagnostic_file::get_content): New.
56+
(diagnostic_file::set_buffered_content): New.
57+
(diagnostic_file::m_mgr): New.
58+
(diagnostic_file::m_content): New.
59+
(diagnostic_manager::new_file): Drop const-ness. Pass *this to
60+
ctor.
61+
(diagnostic_file::set_buffered_content): New.
62+
(diagnostic_manager_new_file): Drop "const" from return type.
63+
(diagnostic_file_set_buffered_content): New entrypoint.
64+
(diagnostic_manager_debug_dump_file): Dump the content size,
65+
if any.
66+
* libgdiagnostics.h (diagnostic_manager_new_file): Drop "const"
67+
from return type.
68+
(diagnostic_file_set_buffered_content): New decl.
69+
* libgdiagnostics.map (diagnostic_file_set_buffered_content): New
70+
symbol.
71+
* libsarifreplay.cc (sarif_replayer::m_artifacts_arr): Convert
72+
from json::value to json::array.
73+
(sarif_replayer::handle_run_obj): Call handle_artifact_obj
74+
on all artifacts.
75+
(sarif_replayer::handle_artifact_obj): New.
76+
77+
2024-12-16 David Malcolm <[email protected]>
78+
79+
PR sarif-replay/117943
80+
* diagnostic-format-text.cc
81+
(diagnostic_text_output_format::append_note): Use source-printing
82+
options from text_output.
83+
(diagnostic_text_output_format::update_printer): Copy
84+
source-printing options from dc.
85+
(default_diagnostic_text_finalizer): Use source-printing
86+
options from text_output.
87+
* diagnostic-format-text.h
88+
(diagnostic_text_output_format::diagnostic_text_output_format):
89+
Add optional diagnostic_source_printing_options param, using
90+
the context's if null.
91+
(diagnostic_text_output_format::get_source_printing_options): New
92+
accessor.
93+
(diagnostic_text_output_format::m_source_printing): New field.
94+
* diagnostic-path.cc (event_range::print): Use source-printing
95+
options from text_output.
96+
(selftest::test_interprocedural_path_1): Use source-printing
97+
options from dc.
98+
* diagnostic-show-locus.cc
99+
(gcc_rich_location::add_location_if_nearby): Likewise.
100+
(diagnostic_context::maybe_show_locus): Add "opts" param
101+
and use in place of m_source_printing. Pass it to source_policy
102+
ctor.
103+
(diagnostic_source_print_policy::diagnostic_source_print_policy):
104+
Add overload taking a const diagnostic_source_printing_options &.
105+
* diagnostic.cc (diagnostic_context::initialize): Pass nullptr
106+
for source options when creating text sink, so that it uses
107+
the dc's options.
108+
(diagnostic_context::dump): Add an "output sinks:" heading and
109+
print "(none)" if there aren't any.
110+
(diagnostic_context::set_output_format): Split out code into...
111+
(diagnostic_context::remove_all_output_sinks): ...this new
112+
function.
113+
* diagnostic.h
114+
(diagnostic_source_print_policy::diagnostic_source_print_policy):
115+
Add overload taking a const diagnostic_source_printing_options &.
116+
(diagnostic_context::maybe_show_locus): Add "opts" param.
117+
(diagnostic_context::remove_all_output_sinks): New decl.
118+
(diagnostic_context::m_source_printing): New field.
119+
(diagnostic_show_locus): Add "opts" param and pass to
120+
maybe_show_locus.
121+
* libgdiagnostics.cc (sink::~sink): Delete.
122+
(sink::begin_group): Delete.
123+
(sink::end_group): Delete.
124+
(sink::emit): Delete.
125+
(sink::m_dc): Drop field.
126+
(diagnostic_text_sink::on_begin_text_diagnostic): Delete.
127+
(diagnostic_text_sink::get_source_printing_options): Use
128+
m_souece_printing.
129+
(diagnostic_text_sink::m_current_logical_loc): Drop field.
130+
(diagnostic_text_sink::m_inner_sink): New field.
131+
(diagnostic_text_sink::m_source_printing): New field.
132+
(diagnostic_manager::diagnostic_manager): Update for changes
133+
to fields. Initialize m_dc.
134+
(diagnostic_manager::~diagnostic_manager): Call diagnostic_finish.
135+
(diagnostic_manager::get_file_cache): Drop.
136+
(diagnostic_manager::get_dc): New accessor.
137+
(diagnostic_manager::begin_group): Reimplement.
138+
(diagnostic_manager::end_group): Reimplement.
139+
(diagnostic_manager::get_prev_diag_logical_loc): New accessor.
140+
(diagnostic_manager::m_dc): New field.
141+
(diagnostic_manager::m_file_cache): Drop field.
142+
(diagnostic_manager::m_edit_context): Convert to a std::unique_ptr
143+
so that object can be constructed after m_dc is initialized.
144+
(diagnostic_manager::m_prev_diag_logical_loc): New field.
145+
(diagnostic_text_sink::diagnostic_text_sink): Reimplement.
146+
(get_color_rule): Delete.
147+
(diagnostic_text_sink::set_colorize): Reimplement.
148+
(diagnostic_text_sink::text_starter): New.
149+
(sarif_sink::sarif_sink): Reimplement.
150+
(diagnostic_manager::write_patch): Update for change to
151+
m_edit_context.
152+
(diagnostic_manager::emit): Update now that each sink has a
153+
corresponding diagnostic_output_format object within m_dc.
154+
155+
2024-12-16 David Malcolm <[email protected]>
156+
157+
* diagnostic.cc (diagnostic_context::dump): Dump m_file_cache.
158+
* input.cc (file_cache_slot::dump): New decls and implementations.
159+
(file_cache::dump): New.
160+
* input.h (file_cache::dump): New decl.
161+
162+
2024-12-16 Robin Dapp <[email protected]>
163+
164+
* doc/md.texi: Add "3" suffix.
165+
166+
2024-12-16 Robin Dapp <[email protected]>
167+
168+
PR target/112694
169+
PR target/116611.
170+
* config/riscv/riscv-v.cc (expand_vec_perm_const): Remove early
171+
return.
172+
* tree-vect-slp.cc (can_duplicate_and_interleave_p): Return
173+
false when we cannot create sub-elements.
174+
175+
2024-12-16 Robin Dapp <[email protected]>
176+
177+
PR target/117383
178+
* config/riscv/riscv-protos.h (enum insn_type): Use TU policy.
179+
* config/riscv/riscv-v.cc (shuffle_compress_patterns): Set VL.
180+
181+
2024-12-16 Robin Dapp <[email protected]>
182+
183+
PR target/118019
184+
* config/riscv/riscv.cc (riscv_builtin_vectorization_cost):
185+
Increase vec_construct cost.
186+
187+
2024-12-16 Mark Harmstone <[email protected]>
188+
189+
* dwarf2codeview.cc (write_s_frameproc): Align output.
190+
(write_s_inlinesite): Align output.
191+
1192
2024-12-15 John David Anglin <[email protected]>
2193

3194
PR target/118018

gcc/DATESTAMP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20241216
1+
20241217

gcc/c-family/ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2024-12-16 David Malcolm <[email protected]>
2+
3+
PR sarif-replay/117943
4+
* c-format.cc (selftest::test_type_mismatch_range_labels): Use
5+
dc.m_source_printing.
6+
* c-opts.cc (c_diagnostic_text_finalizer): Use source-printing
7+
options from text_output.
8+
19
2024-12-12 Sandra Loosemore <[email protected]>
210
Peter Eisentraut <[email protected]>
311

gcc/cp/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2024-12-16 David Malcolm <[email protected]>
2+
3+
PR sarif-replay/117943
4+
* error.cc (auto_context_line::~auto_context_line): Use
5+
source-printing options from text_output.
6+
17
2024-12-15 Iain Sandoe <[email protected]>
28

39
* coroutines.cc

gcc/fortran/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2024-12-16 David Malcolm <[email protected]>
2+
3+
PR sarif-replay/117943
4+
* error.cc (gfc_diagnostic_text_starter): Use source-printing
5+
options from text_output.
6+
17
2024-12-15 Paul Thomas <[email protected]>
28

39
PR fortran/117897

gcc/testsuite/ChangeLog

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
2024-12-16 Hans-Peter Nilsson <[email protected]>
2+
3+
PR tree-optimization/118055
4+
* gcc.dg/tree-ssa/pr83403-1.c, gcc.dg/tree-ssa/pr83403-2.c: Add
5+
cris-*-* to targets passing --param=max-completely-peeled-insns=300.
6+
7+
2024-12-16 David Malcolm <[email protected]>
8+
9+
* sarif-replay.dg/2.1.0-valid/3.11.6-embedded-links.sarif: New test.
10+
* sarif-replay.dg/2.1.0-valid/malloc-vs-local-4.c.sarif: Update
11+
expected output for handling the embedded links.
12+
* sarif-replay.dg/2.1.0-valid/spec-example-4.sarif: Likewise.
13+
14+
2024-12-16 David Malcolm <[email protected]>
15+
16+
* libgdiagnostics.dg/test-logical-location.c: Include <assert.h>.
17+
Verify that creating a diagnostic_logical_location with equal
18+
values yields the same instance.
19+
* sarif-replay.dg/2.1.0-valid/malloc-vs-local-4.c.sarif: New test.
20+
* sarif-replay.dg/2.1.0-valid/signal-1.c.moved.sarif: Update
21+
expected output to show logical location and for consolidation of
22+
events into runs.
23+
* sarif-replay.dg/2.1.0-valid/signal-1.c.sarif: Likewise.
24+
* sarif-replay.dg/2.1.0-valid/spec-example-4.sarif: Likewise.
25+
26+
2024-12-16 David Malcolm <[email protected]>
27+
28+
PR sarif-replay/117943
29+
* sarif-replay.dg/2.1.0-valid/error-with-note.sarif: Update
30+
expected output to include quoted source code and underlines.
31+
* sarif-replay.dg/2.1.0-valid/signal-1.c.moved.sarif: New test.
32+
* sarif-replay.dg/2.1.0-valid/signal-1.c.sarif: Update expected
33+
output to include quoted source code and underlines.
34+
35+
2024-12-16 David Malcolm <[email protected]>
36+
37+
PR sarif-replay/117943
38+
* gcc.dg/plugin/diagnostic_plugin_test_show_locus.cc
39+
(custom_diagnostic_text_finalizer): Use source-printing options
40+
from text_output.
41+
* gcc.dg/plugin/diagnostic_plugin_xhtml_format.cc
42+
(xhtml_builder::make_element_for_diagnostic): Use source-printing
43+
options from diagnostic_context.
44+
* gcc.dg/plugin/expensive_selftests_plugin.cc (test_richloc):
45+
Likewise.
46+
47+
2024-12-16 Dimitar Dimitrov <[email protected]>
48+
49+
* gcc.dg/pr117816.c: Require effective target int32plus.
50+
51+
2024-12-16 Robin Dapp <[email protected]>
52+
53+
PR target/117383
54+
* gcc.target/riscv/rvv/autovec/binop/vcompress-avlprop-1.c:
55+
Expect tu.
56+
* gcc.target/riscv/rvv/autovec/pr117383.c: New test.
57+
58+
2024-12-16 Robin Dapp <[email protected]>
59+
60+
PR target/118019
61+
* gcc.target/riscv/rvv/autovec/pr118019.c: New test.
62+
163
2024-12-15 John David Anglin <[email protected]>
264

365
* gcc.dg/tree-ssa/ivopts-1.c: Enable TImode tests on hppa64.

libcpp/po/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-12-16 Joseph Myers <[email protected]>
2+
3+
* sr.po: Update.
4+
15
2024-09-19 Joseph Myers <[email protected]>
26

37
* zh_CN.po: Update.

libstdc++-v3/ChangeLog

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
2024-12-16 Jonathan Wakely <[email protected]>
2+
3+
* include/bits/hashtable_policy.h (_Local_iterator_base): Use
4+
default member-initializers.
5+
6+
2024-12-16 Jonathan Wakely <[email protected]>
7+
8+
* include/bits/hashtable_policy.h: Replace typedefs with
9+
alias-declarations. Remove redundant std:: qualification.
10+
(_Mod_range_hashing, _Mask_range_hashing): Remove adaptable
11+
function object typedefs.
12+
13+
2024-12-16 Jonathan Wakely <[email protected]>
14+
15+
* include/bits/hashtable_policy.h (_Hash_code_storage): Remove.
16+
(_Hash_obj_storage): New class template. Store the hash
17+
function as a union member instead of using a byte buffer.
18+
(_Local_iterator_base): Use _Hash_obj_storage instead of
19+
_Hash_code_storage, adjust members that construct and destroy
20+
the hash object.
21+
(_Local_iterator_base::_M_incr): Calculate bucket index.
22+
23+
2024-12-16 Jonathan Wakely <[email protected]>
24+
25+
* include/bits/hashtable.h (_Hashtable::swap): Swap hash
26+
function and equality predicate here. Inline allocator swap
27+
instead of using __alloc_on_swap.
28+
* include/bits/hashtable_policy.h (_Hashtable_ebo_helper):
29+
Replace EBO with no_unique_address attribute. Remove NTTP.
30+
(_Hash_code_base): Replace base class with data member using
31+
no_unique_address attribute.
32+
(_Hash_code_base::_M_swap): Remove.
33+
(_Hash_code_base::_M_hash): Remove.
34+
(_Hashtable_base): Replace base class with data member using
35+
no_unique_address attribute.
36+
(_Hashtable_base::_M_swap): Remove.
37+
(_Hashtable_alloc): Replace base class with data member using
38+
no_unique_address attribute.
39+
40+
2024-12-16 Jonathan Wakely <[email protected]>
41+
42+
PR libstdc++/57272
43+
* include/bits/forward_list.h (__fwd_list::_Node): Add
44+
user-provided special member functions to union.
45+
* include/bits/stl_list.h (__list::_Node): Likewise.
46+
(_Node_base::_M_hook, _Node_base::swap): Use _M_base() instead
47+
of std::pointer_traits::pointer_to.
48+
(_Node_base::_M_transfer): Likewise. Add noexcept.
49+
(_List_base::_M_put_node): Use 'if constexpr' to avoid using
50+
pointer_traits::pointer_to when not necessary.
51+
(_List_base::_M_destroy_node): Fix parameter to be the pointer
52+
type used internally, not the allocator's pointer.
53+
(list::_M_create_node): Likewise.
54+
* testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr.cc:
55+
Check explicit instantiation of non-trivial value type.
56+
* testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr.cc:
57+
Likewise.
58+
* testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr_ignored.cc:
59+
Fix macro name.
60+
* testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr_ignored.cc:
61+
Likewise.
62+
163
2024-12-14 Abdo Eid <[email protected]>
264

365
* include/c_compatibility/wchar.h (fgetwc): Remove duplicate

0 commit comments

Comments
 (0)