]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Daily bump.
authorGCC Administrator <gccadmin@gcc.gnu.org>
Mon, 9 Oct 2023 00:17:27 +0000 (00:17 +0000)
committerGCC Administrator <gccadmin@gcc.gnu.org>
Mon, 9 Oct 2023 00:17:27 +0000 (00:17 +0000)
gcc/ChangeLog
gcc/DATESTAMP
gcc/analyzer/ChangeLog
gcc/cp/ChangeLog
gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog
libcpp/ChangeLog
libgomp/ChangeLog

index 4aafa9be4868b73cf133c59e4fea9fa8c5c27885..844978a7d74881d8ebeaeb0cdb6bbc0e28aa624b 100644 (file)
@@ -1,3 +1,103 @@
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       PR analyzer/111155
+       * text-art/table.cc (table::maybe_set_cell_span): New.
+       (table::add_other_table): New.
+       * text-art/table.h (class table::cell_placement): Add class table
+       as a friend.
+       (table::add_rows): New.
+       (table::add_row): Reimplement in terms of add_rows.
+       (table::maybe_set_cell_span): New decl.
+       (table::add_other_table): New decl.
+       * text-art/types.h (operator+): New operator for rect + coord.
+
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       * genmatch.cc (main): Update for "m_" prefix of some fields of
+       line_maps.
+       * input.cc (make_location): Update for removal of
+       COMBINE_LOCATION_DATA.
+       (dump_line_table_statistics): Update for "m_" prefix of some
+       fields of line_maps.
+       (location_with_discriminator): Update for removal of
+       COMBINE_LOCATION_DATA.
+       (line_table_test::line_table_test): Update for "m_" prefix of some
+       fields of line_maps.
+       * toplev.cc (general_init): Likewise.
+       * tree.cc (set_block): Update for removal of
+       COMBINE_LOCATION_DATA.
+       (set_source_range): Likewise.
+
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       * input.cc (make_location): Move implementation to
+       line_maps::make_location.
+
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       PR driver/111700
+       * input.cc (file_cache::add_file): Update leading comment to
+       clarify that it can fail.
+       (file_cache::lookup_or_add_file): Likewise.
+       (file_cache::get_source_file_content): Gracefully handle
+       lookup_or_add_file failing.
+
+2023-10-08  liuhongt  <hongtao.liu@intel.com>
+
+       * config/i386/i386.cc (ix86_build_const_vector): Handle V2HF
+       and V4HFmode.
+       (ix86_build_signbit_mask): Ditto.
+       * config/i386/mmx.md (mmxintvecmode): Ditto.
+       (<code><mode>2): New define_expand.
+       (*mmx_<code><mode>): New define_insn_and_split.
+       (*mmx_nabs<mode>2): Ditto.
+       (*mmx_andnot<mode>3): New define_insn.
+       (<code><mode>3): Ditto.
+       (copysign<mode>3): New define_expand.
+       (xorsign<mode>3): Ditto.
+       (signbit<mode>2): Ditto.
+
+2023-10-08  liuhongt  <hongtao.liu@intel.com>
+
+       * config/i386/mmx.md (VHF_32_64): New mode iterator.
+       (<insn><mode>3): New define_expand, merged from ..
+       (<insn>v4hf3): .. this and
+       (<insn>v2hf3): .. this.
+       (movd_v2hf_to_sse_reg): New define_expand, splitted from ..
+       (movd_v2hf_to_sse): .. this.
+       (<code><mode>3): New define_expand.
+
+2023-10-08  Jiufu Guo  <guojiufu@linux.ibm.com>
+
+       * config/rs6000/rs6000.cc (can_be_built_by_li_and_rldic): New function.
+       (rs6000_emit_set_long_const): Call can_be_built_by_li_and_rldic.
+
+2023-10-08  Jiufu Guo  <guojiufu@linux.ibm.com>
+
+       * config/rs6000/rs6000.cc (can_be_built_by_li_lis_and_rldicl): New
+       function.
+       (can_be_built_by_li_lis_and_rldicr): New function.
+       (rs6000_emit_set_long_const): Call can_be_built_by_li_lis_and_rldicr and
+       can_be_built_by_li_lis_and_rldicl.
+
+2023-10-08  Jiufu Guo  <guojiufu@linux.ibm.com>
+
+       * config/rs6000/rs6000.cc (can_be_rotated_to_negative_lis): New
+       function.
+       (can_be_built_by_li_and_rotldi): Rename to ...
+       (can_be_built_by_li_lis_and_rotldi): ... this function.
+       (rs6000_emit_set_long_const): Call can_be_built_by_li_lis_and_rotldi.
+
+2023-10-08  Jiufu Guo  <guojiufu@linux.ibm.com>
+
+       * config/rs6000/rs6000.cc (can_be_built_by_li_and_rotldi): New function.
+       (rs6000_emit_set_long_const): Call can_be_built_by_li_and_rotldi.
+
+2023-10-08  Yanzhang Wang  <yanzhang.wang@intel.com>
+
+       * config/riscv/linux.h: Pass the static-pie specific options to
+       the linker.
+
 2023-10-07  Saurabh Jha  <saurabh.jha@arm.com>
 
        * config/aarch64/aarch64-cores.def (AARCH64_CORE): Add support for
index 079bb85e9ded7ec7065e4e0a7c352e0111a33065..42a0fa81d153c438bb4643f15606f89bfc6335c8 100644 (file)
@@ -1 +1 @@
-20231008
+20231009
index 4766e5b70e5983d6d49a22d2eeb2a502714e7905..89f8ade587465a8020c8252f5186a2c52772f575 100644 (file)
@@ -1,3 +1,55 @@
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       PR analyzer/111155
+       * access-diagram.cc (boundaries::boundaries): Add logger param
+       (boundaries::add): Add logging.
+       (boundaries::get_hard_boundaries_in_range): New.
+       (boundaries::m_logger): New field.
+       (boundaries::get_table_x_for_offset): Make public.
+       (class svalue_spatial_item): New.
+       (class compound_svalue_spatial_item): New.
+       (add_ellipsis_to_gaps): New.
+       (valid_region_spatial_item::valid_region_spatial_item): Add theme
+       param.  Initialize m_boundaries, m_existing_sval, and
+       m_existing_sval_spatial_item.
+       (valid_region_spatial_item::add_boundaries): Set m_boundaries.
+       Add boundaries for any m_existing_sval_spatial_item.
+       (valid_region_spatial_item::add_array_elements_to_table): Rewrite
+       creation of min/max index in terms of
+       maybe_add_array_index_to_table.  Rewrite ellipsis code using
+       add_ellipsis_to_gaps. Add index values for any hard boundaries
+       within the valid region.
+       (valid_region_spatial_item::maybe_add_array_index_to_table): New,
+       based on code formerly in add_array_elements_to_table.
+       (valid_region_spatial_item::make_table): Make use of
+       m_existing_sval_spatial_item, if any.
+       (valid_region_spatial_item::m_boundaries): New field.
+       (valid_region_spatial_item::m_existing_sval): New field.
+       (valid_region_spatial_item::m_existing_sval_spatial_item): New
+       field.
+       (class svalue_spatial_item): Rename to...
+       (class written_svalue_spatial_item): ...this.
+       (class string_region_spatial_item): Rename to..
+       (class string_literal_spatial_item): ...this.  Add "kind".
+       (string_literal_spatial_item::add_boundaries): Use m_kind to
+       determine kind of boundary.  Update for renaming of m_actual_bits
+       to m_bits.
+       (string_literal_spatial_item::make_table): Likewise.  Support not
+       displaying a row for byte indexes, and not displaying a row for
+       the type.
+       (string_literal_spatial_item::add_column_for_byte): Make byte index
+       row optional.
+       (svalue_spatial_item::make): Convert to...
+       (make_written_svalue_spatial_item): ...this.
+       (make_existing_svalue_spatial_item): New.
+       (access_diagram_impl::access_diagram_impl): Pass theme to
+       m_valid_region_spatial_item ctor.  Update for renaming of
+       m_svalue_spatial_item.
+       (access_diagram_impl::find_boundaries): Pass logger to boundaries.
+       Update for renaming of...
+       (access_diagram_impl::m_svalue_spatial_item): Rename to...
+       (access_diagram_impl::m_written_svalue_spatial_item): ...this.
+
 2023-10-03  David Malcolm  <dmalcolm@redhat.com>
 
        * analyzer-logging.cc (logger::log_va_partial): Use text_info
index 14c09dd2834d1f40ceb5e7bdb657d8baab38c9ac..6e27c3f7d69093011ca6369416a68415c683cba6 100644 (file)
@@ -1,3 +1,8 @@
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       * module.cc (module_state::read_location): Update for renaming of
+       get_combined_adhoc_loc.
+
 2023-10-03  David Malcolm  <dmalcolm@redhat.com>
 
        * error.cc (print_instantiation_partial_context_line): Call
index 144a2cc839d1c3de38f7179b77734d160c964493..6d3d6efe13c3daa42798a9392995e8681ac75fc9 100644 (file)
@@ -1,3 +1,11 @@
+2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
+
+       * parse.cc (parse_omp_structured_block): Make the user code end
+       up inside of BLOCK construct for strictly structured blocks;
+       fix fallout for 'section' and 'teams'.
+       * openmp.cc (resolve_omp_target): Fix changed BLOCK handling
+       for teams in target checking.
+
 2023-10-04  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/37336
index cefce8995766463268186c59dc0e24b53b9035b5..c60a81963360289d324aed1a0ab8da978745c8e0 100644 (file)
@@ -1,3 +1,92 @@
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       PR analyzer/111155
+       * c-c++-common/analyzer/out-of-bounds-diagram-strcat-2.c: New test.
+       * c-c++-common/analyzer/out-of-bounds-diagram-strcat.c: New test.
+       * gcc.dg/analyzer/out-of-bounds-diagram-17.c: Update expected
+       result to show the existing content of "buf" and the index at
+       which the write starts.
+       * gcc.dg/analyzer/out-of-bounds-diagram-18.c: Likewise.
+       * gcc.dg/analyzer/out-of-bounds-diagram-19.c: Likewise.
+       * gcc.dg/analyzer/out-of-bounds-diagram-6.c: Update expected
+       output.
+
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       PR driver/111700
+       * c-c++-common/diagnostic-format-sarif-file-pr111700.c: New test.
+
+2023-10-08  liuhongt  <hongtao.liu@intel.com>
+
+       * gcc.target/i386/part-vect-absneghf.c: New test.
+       * gcc.target/i386/part-vect-copysignhf.c: New test.
+       * gcc.target/i386/part-vect-xorsignhf.c: New test.
+
+2023-10-08  liuhongt  <hongtao.liu@intel.com>
+
+       * gcc.target/i386/part-vect-vminmaxph-1.c: New test.
+       * gcc.target/i386/avx512fp16-64-32-vecop-1.c: Scan-assembler
+       only for { target { ! ia32 } }.
+
+2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
+
+       * gfortran.dg/block_17.f90: New test.
+       * gfortran.dg/gomp/strictly-structured-block-5.f90: New test.
+
+2023-10-08  Jiufu Guo  <guojiufu@linux.ibm.com>
+
+       * gcc.target/powerpc/const-build.c: Add more tests.
+
+2023-10-08  Jiufu Guo  <guojiufu@linux.ibm.com>
+
+       * gcc.target/powerpc/const-build.c: Add more tests.
+
+2023-10-08  Jiufu Guo  <guojiufu@linux.ibm.com>
+
+       * gcc.target/powerpc/const-build.c: Add more tests.
+
+2023-10-08  Jiufu Guo  <guojiufu@linux.ibm.com>
+
+       * gcc.target/powerpc/const-build.c: New test.
+
+2023-10-08  Hongyu Wang  <hongyu.wang@intel.com>
+
+       * gcc.target/i386/apx-egprs-names.c: Compile for non-ia32.
+       * gcc.target/i386/apx-inline-gpr-norex2.c: Likewise.
+       * gcc.target/i386/apx-interrupt-1.c: Likewise.
+       * gcc.target/i386/apx-legacy-insn-check-norex2-asm.c: Likewise.
+       * gcc.target/i386/apx-legacy-insn-check-norex2.c: Likewise.
+
+2023-10-08  Juzhe-Zhong  <juzhe.zhong@rivai.ai>
+
+       * gcc.dg/vect/tsvc/vect-tsvc-s1115.c: Fix TSVC XPASS.
+       * gcc.dg/vect/tsvc/vect-tsvc-s114.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s1161.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s1232.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s124.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s1279.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s161.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s253.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s257.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s271.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s2711.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s2712.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s272.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s273.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s274.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s276.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s278.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s279.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s3111.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s353.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s441.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-s443.c: Ditto.
+       * gcc.dg/vect/tsvc/vect-tsvc-vif.c: Ditto.
+
+2023-10-08  Juzhe-Zhong  <juzhe.zhong@rivai.ai>
+
+       * lib/target-supports.exp: Enable more vect tests for RVV.
+
 2023-10-07  Lehua Ding  <lehua.ding@rivai.ai>
 
        Revert:
index 1a5ff99dcb538cec25585a5da3c1291595c997af..9d2e4f50de86e34f171d872c00da1b8f0be95414 100644 (file)
@@ -1,3 +1,145 @@
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h (LINEMAPS_ORDINARY_MAPS): Delete.
+       (LINEMAPS_MACRO_MAPS): Delete.
+       * line-map.cc (linemap_tracks_macro_expansion_locs_p): Update for
+       deletion of LINEMAPS_MACRO_MAPS.
+       (linemap_get_statistics): Likewise.
+
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h (maps_info_ordinary::cache): Rename to...
+       (maps_info_ordinary::m_cache): ...this.
+       (maps_info_macro::cache): Rename to...
+       (maps_info_macro::m_cache): ...this.
+       (LINEMAPS_CACHE): Delete.
+       (LINEMAPS_ORDINARY_CACHE): Delete.
+       (LINEMAPS_MACRO_CACHE): Delete.
+       * init.cc (read_original_filename): Update for adding "m_" prefix.
+       * line-map.cc (linemap_add): Eliminate LINEMAPS_ORDINARY_CACHE in
+       favor of a simple field access.
+       (linemap_enter_macro): Likewise for LINEMAPS_MACRO_CACHE.
+       (linemap_ordinary_map_lookup): Likewise for
+       LINEMAPS_ORDINARY_CACHE, twice.
+       (linemap_lookup_macro_index): Likewise for LINEMAPS_MACRO_CACHE.
+
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h (LINEMAPS_LAST_ALLOCATED_MAP): Delete.
+       (LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP): Delete.
+       (LINEMAPS_LAST_ALLOCATED_MACRO_MAP): Delete.
+
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h (line_maps::reallocator): Rename to...
+       (line_maps::m_reallocator): ...this.
+       (line_maps::round_alloc_size): Rename to...
+       (line_maps::m_round_alloc_size): ...this.
+       (line_maps::location_adhoc_data_map): Rename to...
+       (line_maps::m_location_adhoc_data_map): ...this.
+       (line_maps::num_optimized_ranges): Rename to...
+       (line_maps::m_num_optimized_ranges): ..this.
+       (line_maps::num_unoptimized_ranges): Rename to...
+       (line_maps::m_num_unoptimized_ranges): ...this.
+       (get_combined_adhoc_loc): Delete decl.
+       (COMBINE_LOCATION_DATA): Delete.
+       * lex.cc (get_location_for_byte_range_in_cur_line): Update for
+       removal of COMBINE_LOCATION_DATA.
+       (warn_about_normalization): Likewise.
+       (_cpp_lex_direct): Likewise.
+       * line-map.cc (line_maps::~line_maps): Update for "m_" prefix of
+       some fields of line_maps.
+       (rebuild_location_adhoc_htab): Likewise.
+       (can_be_stored_compactly_p): Convert to...
+       (line_maps::can_be_stored_compactly_p): ...this private member
+       function.
+       (get_combined_adhoc_loc): Convert to...
+       (line_maps::get_or_create_combined_loc): ...this public member
+       function.
+       (line_maps::make_location): Update for removal of
+       COMBINE_LOCATION_DATA.
+       (get_data_from_adhoc_loc): Update for "m_" prefix of some fields
+       of line_maps.
+       (get_discriminator_from_adhoc_loc): Likewise.
+       (get_location_from_adhoc_loc): Likewise.
+       (get_range_from_adhoc_loc): Convert to...
+       (line_maps::get_range_from_adhoc_loc): ...this private member
+       function.
+       (line_maps::get_range_from_loc): Update for conversion of
+       get_range_from_adhoc_loc to a member function.
+       (linemap_init): Update for "m_" prefix of some fields of
+       line_maps.
+       (line_map_new_raw): Likewise.
+       (linemap_enter_macro): Likewise.
+       (linemap_get_statistics): Likewise.
+
+2023-10-08  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h (line_maps::pure_location_p): New decl.
+       (line_maps::get_pure_location): New decl.
+       (line_maps::get_range_from_loc): New decl.
+       (line_maps::get_start): New.
+       (line_maps::get_finish): New.
+       (line_maps::make_location): New decl.
+       (get_range_from_loc): Make line_maps param const.
+       (get_discriminator_from_loc): Likewise.
+       (pure_location_p): Likewise.
+       (get_pure_location): Likewise.
+       (linemap_check_files_exited): Likewise.
+       (linemap_tracks_macro_expansion_locs_p): Likewise.
+       (linemap_location_in_system_header_p): Likewise.
+       (linemap_location_from_macro_definition_p): Likewise.
+       (linemap_macro_map_loc_unwind_toward_spelling): Likewise.
+       (linemap_included_from_linemap): Likewise.
+       (first_map_in_common): Likewise.
+       (linemap_compare_locations): Likewise.
+       (linemap_location_before_p): Likewise.
+       (linemap_resolve_location): Likewise.
+       (linemap_unwind_toward_expansion): Likewise.
+       (linemap_unwind_to_first_non_reserved_loc): Likewise.
+       (linemap_expand_location): Likewise.
+       (linemap_get_file_highest_location): Likewise.
+       (linemap_get_statistics): Likewise.
+       (linemap_dump_location): Likewise.
+       (linemap_dump): Likewise.
+       (line_table_dump): Likewise.
+       * internal.h (linemap_get_expansion_line): Likewise.
+       (linemap_get_expansion_filename): Likewise.
+       * line-map.cc (can_be_stored_compactly_p): Likewise.
+       (get_data_from_adhoc_loc): Drop redundant "class".
+       (get_discriminator_from_adhoc_loc): Likewise.
+       (get_location_from_adhoc_loc): Likewise.
+       (get_range_from_adhoc_loc): Likewise.
+       (get_range_from_loc): Make const and move implementation to...
+       (line_maps::get_range_from_loc): ...this new function.
+       (get_discriminator_from_loc): Make line_maps param const.
+       (pure_location_p): Make const and move implementation to...
+       (line_maps::pure_location_p): ...this new function.
+       (get_pure_location): Make const and move implementation to...
+       (line_maps::get_pure_location): ...this new function.
+       (linemap_included_from_linemap): Make line_maps param const.
+       (linemap_check_files_exited): Likewise.
+       (linemap_tracks_macro_expansion_locs_p): Likewise.
+       (linemap_macro_map_loc_unwind_toward_spelling): Likewise.
+       (linemap_get_expansion_line): Likewise.
+       (linemap_get_expansion_filename): Likewise.
+       (linemap_location_in_system_header_p): Likewise.
+       (first_map_in_common_1): Likewise.
+       (linemap_compare_locations): Likewise.
+       (linemap_macro_loc_to_spelling_point): Likewise.
+       (linemap_macro_loc_to_def_point): Likewise.
+       (linemap_macro_loc_to_exp_point): Likewise.
+       (linemap_resolve_location): Likewise.
+       (linemap_location_from_macro_definition_p): Likewise.
+       (linemap_unwind_toward_expansion): Likewise.
+       (linemap_unwind_to_first_non_reserved_loc): Likewise.
+       (linemap_expand_location): Likewise.
+       (linemap_dump): Likewise.
+       (linemap_dump_location): Likewise.
+       (linemap_get_file_highest_location): Likewise.
+       (linemap_get_statistics): Likewise.
+       (line_table_dump): Likewise.
+
 2023-09-20  Lewis Hyatt  <lhyatt@gmail.com>
 
        PR preprocessor/61474
index 4f7888a3e0278b6c4bb095efc39e239c8ab42ce1..1fc22448a0d91c14b68c082b6a1a4a277f69bc73 100644 (file)
@@ -1,3 +1,7 @@
+2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
+
+       * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
+
 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
 
        * libgomp.texi (Device Memory Routines): New.