diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | contrib/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/ChangeLog | 132 | ||||
-rw-r--r-- | gcc/DATESTAMP | 2 | ||||
-rw-r--r-- | gcc/c-family/ChangeLog | 42 | ||||
-rw-r--r-- | gcc/c/ChangeLog | 16 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 46 | ||||
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 30 | ||||
-rw-r--r-- | libcpp/ChangeLog | 16 |
10 files changed, 307 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2024-07-13 Richard Sandiford <richard.sandiford@arm.com> + + * MAINTAINERS: Replace tabs with spaces. Add a bugzilla account + name column to the Write After Approval section. Line up the + email column and fix an entry that was missing the trailing ">". + 2024-07-11 Kugan Vivekanandarajah <kvivekananda@nvidia.com> * MAINTAINERS: Update my email address. diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 0ae2116..e713bf3 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,15 @@ +2024-07-13 Richard Sandiford <richard.sandiford@arm.com> + + * check-MAINTAINERS.py (sort_by_surname): Replace with... + (get_surname): ...this. + (has_tab, is_empty): Delete. + (check_group): Take a list of column positions as argument. + Check that lines conform to these column numbers. Check that the + final column is an email in angle brackets. Record surnames on + the fly. + (top level): Reject tabs. Use paragraph counts to identify which + groups of lines should be checked. Report missing sections. + 2024-06-05 Robin Dapp <rdapp@ventanamicro.com> * check_GNU_style_lib.py: Use raw strings for regexps. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d95220..8d2ac6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,135 @@ +2024-07-13 Mark Harmstone <mark@harmstone.com> + + * dwarf2codeview.cc (write_lf_modifier): Expand upon comment. + +2024-07-13 Mark Harmstone <mark@harmstone.com> + + * dwarf2codeview.cc (write_data_symbol): Add alignment directive. + +2024-07-13 Mark Harmstone <mark@harmstone.com> + + * dwarf2codeview.cc (enum cv_leaf_type): Add padding constants. + (write_cv_padding): Use names for padding constants. + +2024-07-13 Mark Harmstone <mark@harmstone.com> + + * dwarf2codeview.cc (S_LDATA32, S_GDATA32, S_COMPILE3): Undefine. + (enum cv_sym_type): Define. + (struct codeview_symbol): Use enum cv_sym_type. + (write_codeview_symbols): Add default to switch. + +2024-07-13 Mark Harmstone <mark@harmstone.com> + + * dwarf2codeview.cc (enum cv_leaf_type): Define. + (struct codeview_subtype): Use enum cv_leaf_type. + (struct codeview_custom_type): Use enum cv_leaf_type. + (write_lf_fieldlist): Add default to switch. + (write_custom_types): Add default to switch. + * dwarf2codeview.h (LF_MODIFIER, LF_POINTER): Undefine. + (LF_PROCEDURE, LF_ARGLIST, LF_FIELDLIST, LF_BITFIELD): Likewise. + (LF_INDEX, LF_ENUMERATE, LF_ARRAY, LF_CLASS): Likewise. + (LF_STRUCTURE, LF_UNION, LF_ENUM, LF_MEMBER, LF_CHAR): Likewise. + (LF_SHORT, LF_USHORT, LF_LONG, LF_ULONG, LF_QUADWORD): Likewise. + (LF_UQUADWORD): Likewise. + +2024-07-13 David Malcolm <dmalcolm@redhat.com> + + * common.opt (fdiagnostics-show-highlight-colors): New option. + * common.opt.urls: Regenerate. + * coretypes.h (pp_markup::element): New forward decl. + (pp_element): New typedef. + * diagnostic-color.cc (gcc_color_defaults): Add "highlight-a" + and "highlight-b". + * diagnostic-format-json.cc (diagnostic_output_format_init_json): + Disable highlight colors. + * diagnostic-format-sarif.cc (diagnostic_output_format_init_sarif): + Likewise. + * diagnostic-highlight-colors.h: New file. + * diagnostic-path.cc (struct event_range): Pass nullptr for + highlight color of m_rich_loc. + * diagnostic-show-locus.cc (colorizer::set_range): Handle ranges + with m_highlight_color. + (colorizer::STATE_NAMED_COLOR): New. + (colorizer::m_richloc): New field. + (colorizer::colorizer): Add richloc param for initializing + m_richloc. + (colorizer::set_named_color): New. + (colorizer::begin_state): Add case STATE_NAMED_COLOR. + (layout::layout): Pass richloc to m_colorizer's ctor. + (selftest::test_one_liner_labels): Pass nullptr for new param of + gcc_rich_location ctor for labels. + (selftest::test_one_liner_labels_utf8): Likewise. + * diagnostic.h (diagnostic_context::set_show_highlight_colors): + New. + * doc/invoke.texi: Add option -fdiagnostics-show-highlight-colors + and highlight-a and highlight-b color caps. + * doc/ux.texi + (Use color consistently when highlighting mismatches): New + subsection. + * gcc-rich-location.cc (gcc_rich_location::add_expr): Add + "highlight_color" param. + (gcc_rich_location::maybe_add_expr): Likewise. + * gcc-rich-location.h (gcc_rich_location::gcc_rich_location): + Split out into a pair of ctors, where if a range_label is supplied + the caller must also supply a highlight color. + (gcc_rich_location::add_expr): Add "highlight_color" param. + (gcc_rich_location::maybe_add_expr): Likewise. + * gcc.cc (driver_handle_option): Handle + OPT_fdiagnostics_show_highlight_colors. + * lto-wrapper.cc (merge_and_complain): Likewise. + (append_compiler_options): Likewise. + (append_diag_options): Likewise. + (run_gcc): Likewise. + * opts-common.cc (decode_cmdline_options_to_array): Add comment + about -fno-diagnostics-show-highlight-colors. + * opts-global.cc (init_options_once): Preserve + pp_show_highlight_colors in case the global_dc's printer is + recreated. + * opts.cc (common_handle_option): Handle + OPT_fdiagnostics_show_highlight_colors. + (gen_command_line_string): Likewise. + * pretty-print-markup.h: New file. + * pretty-print.cc: Include "pretty-print-markup.h" and + "diagnostic-highlight-colors.h". + (pretty_printer::format): Handle %e. + (pretty_printer::pretty_printer): Handle new field + m_show_highlight_colors. + (pp_string_n): New. + (pp_markup::context::begin_quote): New. + (pp_markup::context::end_quote): New. + (pp_markup::context::begin_color): New. + (pp_markup::context::end_color): New. + (highlight_colors::expected): New. + (highlight_colors::actual): New. + (highlight_colors::lhs): New. + (highlight_colors::rhs): New. + (class selftest::test_element): New. + (selftest::test_pp_format): Add tests of %e. + (selftest::test_urlification): Likewise. + * pretty-print.h (pp_markup::context): New forward decl. + (class chunk_info): Add friend class pp_markup::context. + (class pretty_printer): Add friend pp_show_highlight_colors. + (pretty_printer::m_show_highlight_colors): New field. + (pp_show_highlight_colors): New inline function. + (pp_string_n): New decl. + * substring-locations.cc: Include "diagnostic-highlight-colors.h". + (format_string_diagnostic_t::highlight_color_format_string): New. + (format_string_diagnostic_t::highlight_color_param): New. + (format_string_diagnostic_t::emit_warning_n_va): Use highlight + colors. + * substring-locations.h + (format_string_diagnostic_t::highlight_color_format_string): New. + (format_string_diagnostic_t::highlight_color_param): New. + * toplev.cc (general_init): Initialize global_dc's + show_highlight_colors. + * tree-pretty-print-markup.h: New file. + +2024-07-13 Richard Biener <rguenther@suse.de> + + PR tree-optimization/115868 + * tree-vect-stmts.cc (vectorizable_simd_clone_call): Correctly + compute the number of mask copies required for vect_record_loop_mask. + 2024-07-12 Gerald Pfeifer <gerald@pfeifer.com> * doc/gm2.texi (Community): Update lists.nongnu.org and diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index c6f47ba..7a51803 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20240713 +20240714 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 8066cc4..4c6d921 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,45 @@ +2024-07-13 David Malcolm <dmalcolm@redhat.com> + + * c-common.cc: Include "tree-pretty-print-markup.h". + (binary_op_error): Use pp_markup::element_quoted_type and %e. + (check_function_arguments): Add "comp_types" param and pass it to + check_function_format. + * c-common.h (check_function_arguments): Add "comp_types" param. + (check_function_format): Likewise. + * c-format.cc: Include "tree-pretty-print-markup.h". + (local_pp_element_ptr_node): New. + (PP_FORMAT_CHAR_TABLE): Add entry for %e. + (struct format_check_context): Add "m_comp_types" field. + (check_function_format): Add "comp_types" param and pass it to + check_format_info. + (check_format_info): Likewise, passing it to format_ctx's ctor. + (check_format_arg): Extract m_comp_types from format_ctx and + pass it to check_format_info_main. + (check_format_info_main): Add "comp_types" param and pass it to + arg_parser's ctor. + (class argument_parser): Add "m_comp_types" field. + (argument_parser::check_argument_type): Pass m_comp_types to + check_format_types. + (handle_subclass_of_pp_element_p): New. + (check_format_types): Add "comp_types" param, and use it to + call handle_subclass_of_pp_element_p. + (class element_format_substring): New. + (class element_expected_type_with_indirection): New. + (format_type_warning): Use element_expected_type_with_indirection + to unify the if (wanted_type_name) branches, reducing from four + emit_warning calls to two. Simplify these further using %e. + Doing so also gives suitable colorization of the text within the + diagnostics. + (init_dynamic_diag_info): Initialize local_pp_element_ptr_node. + (selftest::test_type_mismatch_range_labels): Add nullptr for new + param of gcc_rich_location label overload. + * c-format.h (T_PP_ELEMENT_PTR): New. + * c-type-mismatch.cc: Include "diagnostic-highlight-colors.h". + (binary_op_rich_location::binary_op_rich_location): Use + highlight_colors::lhs and highlight_colors::rhs for the ranges. + * c-type-mismatch.h (class binary_op_rich_location): Add comment + about highlight_colors. + 2024-07-10 Marek Polacek <polacek@redhat.com> * c-cppbuiltin.cc (c_cpp_builtins): Remove flag_concepts_ts code. diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index c49ae57..d99319d 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,19 @@ +2024-07-13 David Malcolm <dmalcolm@redhat.com> + + * c-objc-common.cc: Include "tree-pretty-print-markup.h". + (print_type): Add optional "highlight_color" param and use it + to show highlight colors in "aka" text. + (pp_markup::element_quoted_type::print_type): New. + * c-typeck.cc: Include "tree-pretty-print-markup.h". + (comp_parm_types): New. + (build_function_call_vec): Pass it to check_function_arguments. + (inform_for_arg): Use %e and highlight colors to contrast actual + versus expected. + (convert_for_assignment): Use highlight_colors::actual for the + rhs_label. + (build_binary_op): Use highlight_colors::lhs and highlight_colors::rhs + for the ranges. + 2024-07-10 Marek Polacek <polacek@redhat.com> PR c/115642 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fb40373..bd5657b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,49 @@ +2024-07-13 David Malcolm <dmalcolm@redhat.com> + + * call.cc: Include "tree-pretty-print-markup.h". + (implicit_conversion_error): Use highlight_colors::percent_h for + the labelled range. + (op_error_string): Split out into... + (concat_op_error_string): ...this. + (binop_error_string): New. + (op_error): Use %e, binop_error_string, highlight_colors::lhs, + and highlight_colors::rhs. + (maybe_inform_about_fndecl_for_bogus_argument_init): Add + "highlight_color" param; use it for the richloc. + (convert_like_internal): Use highlight_colors::percent_h for the + labelled_range, and highlight_colors::percent_i for the call to + maybe_inform_about_fndecl_for_bogus_argument_init. + (build_over_call): Pass cp_comp_parm_types for new "comp_types" + param of check_function_arguments. + (complain_about_bad_argument): Use highlight_colors::percent_h for + the labelled_range, and highlight_colors::percent_i for the call + to maybe_inform_about_fndecl_for_bogus_argument_init. + * cp-tree.h (maybe_inform_about_fndecl_for_bogus_argument_init): + Add optional highlight_color param. + (cp_comp_parm_types): New decl. + (highlight_colors::const percent_h): New decl. + (highlight_colors::const percent_i): New decl. + * error.cc: Include "tree-pretty-print-markup.h". + (highlight_colors::const percent_h): New defn. + (highlight_colors::const percent_i): New defn. + (type_to_string): Add param "highlight_color" and use it. + (print_nonequal_arg): Likewise. + (print_template_differences): Add params "highlight_color_a" and + "highlight_color_b". + (type_to_string_with_compare): Add params "this_highlight_color" + and "peer_highlight_color". + (print_template_tree_comparison): Add params "highlight_color_a" + and "highlight_color_b". + (cxx_format_postprocessor::handle): + Use highlight_colors::percent_h and highlight_colors::percent_i. + (pp_markup::element_quoted_type::print_type): New. + (range_label_for_type_mismatch::get_text): Pass nullptr for new + params of type_to_string_with_compare. + * typeck.cc (cp_comp_parm_types): New. + (cp_build_function_call_vec): Pass it to check_function_arguments. + (convert_for_assignment): Use highlight_colors::percent_h for the + labelled_range. + 2024-07-12 Nathaniel Shead <nathanieloshead@gmail.com> * decl.cc (xref_tag): Move assertion into condition. diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index acff7f3..775502c 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2024-07-13 Mikael Morin <mikael@gcc.gnu.org> + + * trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Add the + preliminary code generated for MASK to the preliminary code of + MINLOC/MAXLOC. + 2024-07-12 Mikael Morin <morin-mikael@orange.fr> * trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Create a new diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 534b65a..9a6e2ea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,33 @@ +2024-07-13 Mikael Morin <mikael@gcc.gnu.org> + + * gfortran.dg/minmaxloc_17.f90: New test. + +2024-07-13 David Malcolm <dmalcolm@redhat.com> + + * g++.dg/diagnostic/bad-binary-ops-highlight-colors.C: New test. + * g++.dg/diagnostic/bad-binary-ops-no-highlight-colors.C: New test. + * g++.dg/plugin/plugin.exp (plugin_test_list): Add + show-template-tree-color-no-highlight-colors.C to + show_template_tree_color_plugin.c. + * g++.dg/plugin/show-template-tree-color-labels.C: Update expected + output to reflect use of highlight-a and highlight-b to contrast + mismatches. + * g++.dg/plugin/show-template-tree-color-no-elide-type.C: + Likewise. + * g++.dg/plugin/show-template-tree-color-no-highlight-colors.C: + New test. + * g++.dg/plugin/show-template-tree-color.C: Update expected output + to reflect use of highlight-a and highlight-b to contrast + mismatches. + * g++.dg/warn/Wformat-gcc_diag-1.C: New test. + * g++.dg/warn/Wformat-gcc_diag-2.C: New test. + * g++.dg/warn/Wformat-gcc_diag-3.C: New test. + * gcc.dg/bad-binary-ops-highlight-colors.c: New test. + * gcc.dg/format/colors.c: New test. + * gcc.dg/plugin/diagnostic_plugin_show_trees.c (show_tree): Pass + nullptr for new param of gcc_rich_location::add_expr. + * gcc.dg/bad-binary-ops-no-highlight-colors.c: New file. + 2024-07-12 Richard Sandiford <richard.sandiford@arm.com> PR rtl-optimization/115785 diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index dd09402..ebce6e5 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,19 @@ +2024-07-13 David Malcolm <dmalcolm@redhat.com> + + * include/rich-location.h (location_range::m_highlight_color): New + field. + (rich_location::rich_location): Add optional label_highlight_color + param. + (rich_location::set_highlight_color): New decl. + (rich_location::add_range): Add optional label_highlight_color + param. + (rich_location::set_range): Likewise. + * line-map.cc (rich_location::rich_location): Add + "label_highlight_color" param and pass it to add_range. + (rich_location::set_highlight_color): New. + (rich_location::add_range): Add "label_highlight_color" param. + (rich_location::set_range): Add "highlight_color" param. + 2024-06-21 David Malcolm <dmalcolm@redhat.com> PR testsuite/109360 |