]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Daily bump.
authorGCC Administrator <gccadmin@gcc.gnu.org>
Tue, 17 Dec 2024 00:19:06 +0000 (00:19 +0000)
committerGCC Administrator <gccadmin@gcc.gnu.org>
Tue, 17 Dec 2024 00:19:06 +0000 (00:19 +0000)
gcc/ChangeLog
gcc/DATESTAMP
gcc/c-family/ChangeLog
gcc/cp/ChangeLog
gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog
libcpp/po/ChangeLog
libstdc++-v3/ChangeLog

index f3cca05d683bef1ac90e1ad4766fbf3ba0e353b7..285f11dc0d1d14a7892d78af8c0eff4acd00b877 100644 (file)
@@ -1,3 +1,194 @@
+2024-12-16  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/mmx.md: Fix tabs vs. spaces.
+
+2024-12-16  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.cc (ix86_hard_regno_mode_ok):
+       Remove explicit HImode handling for SSE2 XMM regnos.
+       * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HImode.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       * libsarifreplay.cc (struct embedded_link): New.
+       (maybe_consume_embedded_link): New.
+       (sarif_replayer::make_plain_text_within_result_message): Handle
+       embedded links by using the link text, for now.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       * doc/libgdiagnostics/topics/logical-locations.rst
+       (diagnostic_manager_new_logical_location): Add note about repeated
+       calls.
+       * libgdiagnostics.cc: Define INCLUDE_MAP.
+       (class owned_nullable_string): Add copy ctor and move ctor.
+       (owned_nullable_string::operator<): New.
+       (diagnostic_logical_location::operator<): New.
+       (diagnostic_manager::new_logical_location): Use m_logical_locs to
+       "uniquify" instances, converting it to a std::map.
+       (diagnostic_manager::logical_locs_map_t): New typedef.
+       (diagnostic_manager::t m_logical_locs): Convert from a std::vector
+       to a std::map.
+       (diagnostic_execution_path::same_function_p): Update comment.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       PR sarif-replay/117943
+       * doc/libgdiagnostics/topics/physical-locations.rst
+       (diagnostic_manager_new_file): Drop "const" from return type.
+       * doc/libgdiagnostics/tutorial/02-physical-locations.rst: Drop
+       "const" from "main_file" decl.
+       * input.cc (file_cache::add_buffered_content): New.
+       (file_cache_slot::set_content): New.
+       (file_cache_slot::dump): Use m_file_path being null rather than
+       m_fp to determine empty slots.  Dump m_fp.
+       (find_end_of_line): Drop "const" from return type and param.  Add
+       forward decl.
+       (file_cache_slot::get_next_line): Fix "const"-ness.
+       (selftest::test_reading_source_buffer): New.
+       (selftest::input_cc_tests): Call it.
+       * input.h (file_cache::add_buffered_content): New decl.
+       * libgdiagnostics++.h (class file): Drop const-ness from m_inner.
+       (file::set_buffered_content): New.
+       * libgdiagnostics.cc (class content_buffer): New.
+       (diagnostic_file::diagnostic_file): Add "mgr" param.
+       (diagnostic_file::get_content): New.
+       (diagnostic_file::set_buffered_content): New.
+       (diagnostic_file::m_mgr): New.
+       (diagnostic_file::m_content): New.
+       (diagnostic_manager::new_file): Drop const-ness.  Pass *this to
+       ctor.
+       (diagnostic_file::set_buffered_content): New.
+       (diagnostic_manager_new_file): Drop "const" from return type.
+       (diagnostic_file_set_buffered_content): New entrypoint.
+       (diagnostic_manager_debug_dump_file): Dump the content size,
+       if any.
+       * libgdiagnostics.h (diagnostic_manager_new_file): Drop "const"
+       from return type.
+       (diagnostic_file_set_buffered_content): New decl.
+       * libgdiagnostics.map (diagnostic_file_set_buffered_content): New
+       symbol.
+       * libsarifreplay.cc (sarif_replayer::m_artifacts_arr): Convert
+       from json::value to json::array.
+       (sarif_replayer::handle_run_obj): Call handle_artifact_obj
+       on all artifacts.
+       (sarif_replayer::handle_artifact_obj): New.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       PR sarif-replay/117943
+       * diagnostic-format-text.cc
+       (diagnostic_text_output_format::append_note): Use source-printing
+       options from text_output.
+       (diagnostic_text_output_format::update_printer): Copy
+       source-printing options from dc.
+       (default_diagnostic_text_finalizer): Use source-printing
+       options from text_output.
+       * diagnostic-format-text.h
+       (diagnostic_text_output_format::diagnostic_text_output_format):
+       Add optional diagnostic_source_printing_options param, using
+       the context's if null.
+       (diagnostic_text_output_format::get_source_printing_options): New
+       accessor.
+       (diagnostic_text_output_format::m_source_printing): New field.
+       * diagnostic-path.cc (event_range::print): Use source-printing
+       options from text_output.
+       (selftest::test_interprocedural_path_1): Use source-printing
+       options from dc.
+       * diagnostic-show-locus.cc
+       (gcc_rich_location::add_location_if_nearby): Likewise.
+       (diagnostic_context::maybe_show_locus): Add "opts" param
+       and use in place of m_source_printing.  Pass it to source_policy
+       ctor.
+       (diagnostic_source_print_policy::diagnostic_source_print_policy):
+       Add overload taking a const diagnostic_source_printing_options &.
+       * diagnostic.cc (diagnostic_context::initialize): Pass nullptr
+       for source options when creating text sink, so that it uses
+       the dc's options.
+       (diagnostic_context::dump): Add an "output sinks:" heading and
+       print "(none)" if there aren't any.
+       (diagnostic_context::set_output_format): Split out code into...
+       (diagnostic_context::remove_all_output_sinks): ...this new
+       function.
+       * diagnostic.h
+       (diagnostic_source_print_policy::diagnostic_source_print_policy):
+       Add overload taking a const diagnostic_source_printing_options &.
+       (diagnostic_context::maybe_show_locus): Add "opts" param.
+       (diagnostic_context::remove_all_output_sinks): New decl.
+       (diagnostic_context::m_source_printing): New field.
+       (diagnostic_show_locus): Add "opts" param and pass to
+       maybe_show_locus.
+       * libgdiagnostics.cc (sink::~sink): Delete.
+       (sink::begin_group): Delete.
+       (sink::end_group): Delete.
+       (sink::emit): Delete.
+       (sink::m_dc): Drop field.
+       (diagnostic_text_sink::on_begin_text_diagnostic): Delete.
+       (diagnostic_text_sink::get_source_printing_options): Use
+       m_souece_printing.
+       (diagnostic_text_sink::m_current_logical_loc): Drop field.
+       (diagnostic_text_sink::m_inner_sink): New field.
+       (diagnostic_text_sink::m_source_printing): New field.
+       (diagnostic_manager::diagnostic_manager): Update for changes
+       to fields.  Initialize m_dc.
+       (diagnostic_manager::~diagnostic_manager): Call diagnostic_finish.
+       (diagnostic_manager::get_file_cache): Drop.
+       (diagnostic_manager::get_dc): New accessor.
+       (diagnostic_manager::begin_group): Reimplement.
+       (diagnostic_manager::end_group): Reimplement.
+       (diagnostic_manager::get_prev_diag_logical_loc): New accessor.
+       (diagnostic_manager::m_dc): New field.
+       (diagnostic_manager::m_file_cache): Drop field.
+       (diagnostic_manager::m_edit_context): Convert to a std::unique_ptr
+       so that object can be constructed after m_dc is initialized.
+       (diagnostic_manager::m_prev_diag_logical_loc): New field.
+       (diagnostic_text_sink::diagnostic_text_sink): Reimplement.
+       (get_color_rule): Delete.
+       (diagnostic_text_sink::set_colorize): Reimplement.
+       (diagnostic_text_sink::text_starter): New.
+       (sarif_sink::sarif_sink): Reimplement.
+       (diagnostic_manager::write_patch): Update for change to
+       m_edit_context.
+       (diagnostic_manager::emit): Update now that each sink has a
+       corresponding diagnostic_output_format object within m_dc.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       * diagnostic.cc (diagnostic_context::dump): Dump m_file_cache.
+       * input.cc (file_cache_slot::dump): New decls and implementations.
+       (file_cache::dump): New.
+       * input.h (file_cache::dump): New decl.
+
+2024-12-16  Robin Dapp  <rdapp@ventanamicro.com>
+
+       * doc/md.texi: Add "3" suffix.
+
+2024-12-16  Robin Dapp  <rdapp@ventanamicro.com>
+
+       PR target/112694
+       PR target/116611.
+       * config/riscv/riscv-v.cc (expand_vec_perm_const): Remove early
+       return.
+       * tree-vect-slp.cc (can_duplicate_and_interleave_p): Return
+       false when we cannot create sub-elements.
+
+2024-12-16  Robin Dapp  <rdapp@ventanamicro.com>
+
+       PR target/117383
+       * config/riscv/riscv-protos.h (enum insn_type): Use TU policy.
+       * config/riscv/riscv-v.cc (shuffle_compress_patterns): Set VL.
+
+2024-12-16  Robin Dapp  <rdapp@ventanamicro.com>
+
+       PR target/118019
+       * config/riscv/riscv.cc (riscv_builtin_vectorization_cost):
+       Increase vec_construct cost.
+
+2024-12-16  Mark Harmstone  <mark@harmstone.com>
+
+       * dwarf2codeview.cc (write_s_frameproc): Align output.
+       (write_s_inlinesite): Align output.
+
 2024-12-15  John David Anglin  <danglin@gcc.gnu.org>
 
        PR target/118018
index ccdbb24919546d31bb5e55bc07677aadda2ee0fe..cbf8d2dfdf13e9142ad123db5e0f09ca1fcebf0f 100644 (file)
@@ -1 +1 @@
-20241216
+20241217
index dd7e7933ae9866f7ae36f77fd39252c12e97d558..38052efda3dd0493f89dda13ab6e3dd5d8f75dd2 100644 (file)
@@ -1,3 +1,11 @@
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       PR sarif-replay/117943
+       * c-format.cc (selftest::test_type_mismatch_range_labels): Use
+       dc.m_source_printing.
+       * c-opts.cc (c_diagnostic_text_finalizer): Use source-printing
+       options from text_output.
+
 2024-12-12  Sandra Loosemore  <sloosemore@baylibre.com>
            Peter Eisentraut  <peter@eisentraut.org>
 
index f852a02173e3d1213ef6c2a363ccb53fefd67b1c..0409d4b39408f272b2a009e0073b2e565cd72fab 100644 (file)
@@ -1,3 +1,9 @@
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       PR sarif-replay/117943
+       * error.cc (auto_context_line::~auto_context_line): Use
+       source-printing options from text_output.
+
 2024-12-15  Iain Sandoe  <iain@sandoe.co.uk>
 
        * coroutines.cc
index d51b9deea8ea5161768b23202e86c1a5175b6bd6..914ee9f54599c5dd633803333f1bd0529baf983e 100644 (file)
@@ -1,3 +1,9 @@
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       PR sarif-replay/117943
+       * error.cc (gfc_diagnostic_text_starter): Use source-printing
+       options from text_output.
+
 2024-12-15  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/117897
index bff99b33e53c90d295ed935fc47706e9e73e5ac6..4ddeabb5858b3134fbb7a7f4d949cc875cf27353 100644 (file)
@@ -1,3 +1,65 @@
+2024-12-16  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR tree-optimization/118055
+       * gcc.dg/tree-ssa/pr83403-1.c, gcc.dg/tree-ssa/pr83403-2.c: Add
+       cris-*-* to targets passing --param=max-completely-peeled-insns=300.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       * sarif-replay.dg/2.1.0-valid/3.11.6-embedded-links.sarif: New test.
+       * sarif-replay.dg/2.1.0-valid/malloc-vs-local-4.c.sarif: Update
+       expected output for handling the embedded links.
+       * sarif-replay.dg/2.1.0-valid/spec-example-4.sarif: Likewise.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       * libgdiagnostics.dg/test-logical-location.c: Include <assert.h>.
+       Verify that creating a diagnostic_logical_location with equal
+       values yields the same instance.
+       * sarif-replay.dg/2.1.0-valid/malloc-vs-local-4.c.sarif: New test.
+       * sarif-replay.dg/2.1.0-valid/signal-1.c.moved.sarif: Update
+       expected output to show logical location and for consolidation of
+       events into runs.
+       * sarif-replay.dg/2.1.0-valid/signal-1.c.sarif: Likewise.
+       * sarif-replay.dg/2.1.0-valid/spec-example-4.sarif: Likewise.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       PR sarif-replay/117943
+       * sarif-replay.dg/2.1.0-valid/error-with-note.sarif: Update
+       expected output to include quoted source code and underlines.
+       * sarif-replay.dg/2.1.0-valid/signal-1.c.moved.sarif: New test.
+       * sarif-replay.dg/2.1.0-valid/signal-1.c.sarif: Update expected
+       output to include quoted source code and underlines.
+
+2024-12-16  David Malcolm  <dmalcolm@redhat.com>
+
+       PR sarif-replay/117943
+       * gcc.dg/plugin/diagnostic_plugin_test_show_locus.cc
+       (custom_diagnostic_text_finalizer): Use source-printing options
+       from text_output.
+       * gcc.dg/plugin/diagnostic_plugin_xhtml_format.cc
+       (xhtml_builder::make_element_for_diagnostic): Use source-printing
+       options from diagnostic_context.
+       * gcc.dg/plugin/expensive_selftests_plugin.cc (test_richloc):
+       Likewise.
+
+2024-12-16  Dimitar Dimitrov  <dimitar@dinux.eu>
+
+       * gcc.dg/pr117816.c: Require effective target int32plus.
+
+2024-12-16  Robin Dapp  <rdapp@ventanamicro.com>
+
+       PR target/117383
+       * gcc.target/riscv/rvv/autovec/binop/vcompress-avlprop-1.c:
+       Expect tu.
+       * gcc.target/riscv/rvv/autovec/pr117383.c: New test.
+
+2024-12-16  Robin Dapp  <rdapp@ventanamicro.com>
+
+       PR target/118019
+       * gcc.target/riscv/rvv/autovec/pr118019.c: New test.
+
 2024-12-15  John David Anglin  <danglin@gcc.gnu.org>
 
        * gcc.dg/tree-ssa/ivopts-1.c: Enable TImode tests on hppa64.
index 79e1c725efe9b27d80c2d143ce6d87418cdbc95f..d92699add0b868ce46c73dfc96f7d7e3966260b1 100644 (file)
@@ -1,3 +1,7 @@
+2024-12-16  Joseph Myers  <josmyers@redhat.com>
+
+       * sr.po: Update.
+
 2024-09-19  Joseph Myers  <josmyers@redhat.com>
 
        * zh_CN.po: Update.
index 74df3d4476b4e4e30d547525a6b2f2a71d0b72e1..71b4ddb5f699d06af97fda6d93877856055cf7a0 100644 (file)
@@ -1,3 +1,65 @@
+2024-12-16  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/hashtable_policy.h (_Local_iterator_base): Use
+       default member-initializers.
+
+2024-12-16  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/hashtable_policy.h: Replace typedefs with
+       alias-declarations. Remove redundant std:: qualification.
+       (_Mod_range_hashing, _Mask_range_hashing): Remove adaptable
+       function object typedefs.
+
+2024-12-16  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/hashtable_policy.h (_Hash_code_storage): Remove.
+       (_Hash_obj_storage): New class template. Store the hash
+       function as a union member instead of using a byte buffer.
+       (_Local_iterator_base): Use _Hash_obj_storage instead of
+       _Hash_code_storage, adjust members that construct and destroy
+       the hash object.
+       (_Local_iterator_base::_M_incr): Calculate bucket index.
+
+2024-12-16  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/hashtable.h (_Hashtable::swap): Swap hash
+       function and equality predicate here. Inline allocator swap
+       instead of using __alloc_on_swap.
+       * include/bits/hashtable_policy.h (_Hashtable_ebo_helper):
+       Replace EBO with no_unique_address attribute. Remove NTTP.
+       (_Hash_code_base): Replace base class with data member using
+       no_unique_address attribute.
+       (_Hash_code_base::_M_swap): Remove.
+       (_Hash_code_base::_M_hash): Remove.
+       (_Hashtable_base): Replace base class with data member using
+       no_unique_address attribute.
+       (_Hashtable_base::_M_swap): Remove.
+       (_Hashtable_alloc): Replace base class with data member using
+       no_unique_address attribute.
+
+2024-12-16  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/57272
+       * include/bits/forward_list.h (__fwd_list::_Node): Add
+       user-provided special member functions to union.
+       * include/bits/stl_list.h (__list::_Node): Likewise.
+       (_Node_base::_M_hook, _Node_base::swap): Use _M_base() instead
+       of std::pointer_traits::pointer_to.
+       (_Node_base::_M_transfer): Likewise. Add noexcept.
+       (_List_base::_M_put_node): Use 'if constexpr' to avoid using
+       pointer_traits::pointer_to when not necessary.
+       (_List_base::_M_destroy_node): Fix parameter to be the pointer
+       type used internally, not the allocator's pointer.
+       (list::_M_create_node): Likewise.
+       * testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr.cc:
+       Check explicit instantiation of non-trivial value type.
+       * testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr.cc:
+       Likewise.
+       * testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr_ignored.cc:
+       Fix macro name.
+       * testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr_ignored.cc:
+       Likewise.
+
 2024-12-14  Abdo Eid  <abdoeid.eg@ieee.org>
 
        * include/c_compatibility/wchar.h (fgetwc): Remove duplicate