|
| 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 | + |
1 | 192 | 2024-12-15 John David Anglin < [email protected]> |
2 | 193 |
|
3 | 194 | PR target/118018 |
|
0 commit comments