From 00c67d62972cef8572393c7f7e10f5d420718e42 Mon Sep 17 00:00:00 2001 From: GCC Administrator Date: Mon, 9 Oct 2023 00:17:27 +0000 Subject: [PATCH] Daily bump. --- gcc/ChangeLog | 100 ++++++++++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/analyzer/ChangeLog | 52 +++++++++++++++ gcc/cp/ChangeLog | 5 ++ gcc/fortran/ChangeLog | 8 +++ gcc/testsuite/ChangeLog | 89 +++++++++++++++++++++++++ libcpp/ChangeLog | 142 ++++++++++++++++++++++++++++++++++++++++ libgomp/ChangeLog | 4 ++ 8 files changed, 401 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4aafa9be486..844978a7d74 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,103 @@ +2023-10-08 David Malcolm + + 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 + + * 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 + + * input.cc (make_location): Move implementation to + line_maps::make_location. + +2023-10-08 David Malcolm + + 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 + + * config/i386/i386.cc (ix86_build_const_vector): Handle V2HF + and V4HFmode. + (ix86_build_signbit_mask): Ditto. + * config/i386/mmx.md (mmxintvecmode): Ditto. + (2): New define_expand. + (*mmx_): New define_insn_and_split. + (*mmx_nabs2): Ditto. + (*mmx_andnot3): New define_insn. + (3): Ditto. + (copysign3): New define_expand. + (xorsign3): Ditto. + (signbit2): Ditto. + +2023-10-08 liuhongt + + * config/i386/mmx.md (VHF_32_64): New mode iterator. + (3): New define_expand, merged from .. + (v4hf3): .. this and + (v2hf3): .. this. + (movd_v2hf_to_sse_reg): New define_expand, splitted from .. + (movd_v2hf_to_sse): .. this. + (3): New define_expand. + +2023-10-08 Jiufu Guo + + * 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 + + * 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 + + * 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 + + * 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 + + * config/riscv/linux.h: Pass the static-pie specific options to + the linker. + 2023-10-07 Saurabh Jha * config/aarch64/aarch64-cores.def (AARCH64_CORE): Add support for diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 079bb85e9de..42a0fa81d15 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20231008 +20231009 diff --git a/gcc/analyzer/ChangeLog b/gcc/analyzer/ChangeLog index 4766e5b70e5..89f8ade5874 100644 --- a/gcc/analyzer/ChangeLog +++ b/gcc/analyzer/ChangeLog @@ -1,3 +1,55 @@ +2023-10-08 David Malcolm + + 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 * analyzer-logging.cc (logger::log_va_partial): Use text_info diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 14c09dd2834..6e27c3f7d69 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2023-10-08 David Malcolm + + * module.cc (module_state::read_location): Update for renaming of + get_combined_adhoc_loc. + 2023-10-03 David Malcolm * error.cc (print_instantiation_partial_context_line): Call diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 144a2cc839d..6d3d6efe13c 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,11 @@ +2023-10-08 Tobias Burnus + + * 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 PR fortran/37336 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cefce899576..c60a8196336 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,92 @@ +2023-10-08 David Malcolm + + 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 + + PR driver/111700 + * c-c++-common/diagnostic-format-sarif-file-pr111700.c: New test. + +2023-10-08 liuhongt + + * 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 + + * 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 + + * gfortran.dg/block_17.f90: New test. + * gfortran.dg/gomp/strictly-structured-block-5.f90: New test. + +2023-10-08 Jiufu Guo + + * gcc.target/powerpc/const-build.c: Add more tests. + +2023-10-08 Jiufu Guo + + * gcc.target/powerpc/const-build.c: Add more tests. + +2023-10-08 Jiufu Guo + + * gcc.target/powerpc/const-build.c: Add more tests. + +2023-10-08 Jiufu Guo + + * gcc.target/powerpc/const-build.c: New test. + +2023-10-08 Hongyu Wang + + * 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 + + * 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 + + * lib/target-supports.exp: Enable more vect tests for RVV. + 2023-10-07 Lehua Ding Revert: diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 1a5ff99dcb5..9d2e4f50de8 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,145 @@ +2023-10-08 David Malcolm + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 PR preprocessor/61474 diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 4f7888a3e02..1fc22448a0d 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2023-10-08 Tobias Burnus + + * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test. + 2023-10-06 Tobias Burnus * libgomp.texi (Device Memory Routines): New.