aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog94
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/c-family/ChangeLog18
-rw-r--r--gcc/cp/ChangeLog31
-rw-r--r--gcc/fortran/ChangeLog67
-rw-r--r--gcc/testsuite/ChangeLog41
6 files changed, 252 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b6381ed..c68f4cd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,97 @@
+2021-10-27 Saagar Jha <saagar@saagarjha.com>
+
+ * config.gcc: Adjust for Darwin21.
+ * config/darwin-c.c (macosx_version_as_macro): Likewise.
+ * config/darwin-driver.c (validate_macosx_version_min):
+ Likewise.
+ (darwin_find_version_from_kernel): Likewise.
+
+2021-10-27 Aldy Hernandez <aldyh@redhat.com>
+
+ * gimple-range-path.cc
+ (path_range_query::range_defined_in_block): Call killing_def.
+
+2021-10-27 Aldy Hernandez <aldyh@redhat.com>
+
+ * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
+ operands as well as relation.
+ * gimple-range-path.cc
+ (path_range_query::compute_ranges_in_block): Compute PHI relations
+ first. Compute outgoing relations at the end.
+ (path_range_query::compute_ranges): Remove call to compute_relations.
+ (path_range_query::compute_relations): Remove.
+ (path_range_query::maybe_register_phi_relation): New.
+ (path_range_query::compute_phi_relations): Abstract out
+ registering one PHI relation to...
+ (path_range_query::compute_outgoing_relations): ...here.
+ * gimple-range-path.h (class path_range_query): Remove
+ compute_relations.
+ Add maybe_register_phi_relation.
+
+2021-10-27 Aldy Hernandez <aldyh@redhat.com>
+ Andrew MacLeod <amacleod@redhat.com>
+
+ * value-relation.cc (path_oracle::killing_def): Kill second
+ order relations.
+
+2021-10-27 Martin Jambor <mjambor@suse.cz>
+
+ * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
+ profile feedback depending on their local availability.
+
+2021-10-27 Martin Jambor <mjambor@suse.cz>
+
+ * params.opt (param_ipa_cp_profile_count_base): New parameter.
+ * doc/invoke.texi (Optimize Options): Add entry for
+ ipa-cp-profile-count-base.
+ * ipa-cp.c (max_count): Replace with base_count, replace all
+ occurrences too, unless otherwise stated.
+ (ipcp_cloning_candidate_p): identify mostly-directly called
+ functions based on their counts, not max_count.
+ (compare_edge_profile_counts): New function.
+ (ipcp_propagate_stage): Instead of setting max_count, find the
+ appropriate edge count in a sorted vector of counts of eligible
+ edges and make it the base_count.
+
+2021-10-27 Martin Jambor <mjambor@suse.cz>
+
+ * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
+ n_nonrec_calls and itself, document all fields.
+ (init_caller_stats): Initialize the above new fields.
+ (gather_caller_stats): Gather self-recursive counts and calls number.
+ (get_info_about_necessary_edges): Gather counts of self-recursive and
+ other edges bringing in the requested value separately.
+ (dump_profile_updates): Rework to dump info about a single node only.
+ (lenient_count_portion_handling): New function.
+ (struct gather_other_count_struct): New type.
+ (gather_count_of_non_rec_edges): New function.
+ (struct desc_incoming_count_struct): New type.
+ (analyze_clone_icoming_counts): New function.
+ (adjust_clone_incoming_counts): Likewise.
+ (update_counts_for_self_gen_clones): Likewise.
+ (update_profiling_info): Rewritten.
+ (update_specialized_profile): Adjust call to dump_profile_updates.
+ (create_specialized_node): Do not update profiling info.
+ (decide_about_value): New parameter self_gen_clones, either push new
+ clones into it or updat their profile counts. For self-recursively
+ generated values, use a portion of the node count instead of count
+ from self-recursive edges to estimate goodness.
+ (decide_whether_version_node): Gather clones for self-generated values
+ in a new vector, update their profiles at once at the end.
+
+2021-10-27 Richard Biener <rguenther@suse.de>
+
+ * tree-vectorizer.c (vect_transform_loops): New function,
+ split out from ...
+ (try_vectorize_loop_1): ... here. Simplify as epilogues
+ are now fully handled in the split part.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
+ iterators with pointer types.
+ (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
+
2021-10-26 Martin Sebor <msebor@redhat.com>
PR tree-optimization/102238
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 3b249e4..0549f27 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20211027
+20211028
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 9044f66..18ba338 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,21 @@
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for
+ POINTER_PLUS_EXPR.
+ (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR.
+ (c_omp_check_loop_iv): Set kind even if the iterator is non-integral.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/102854
+ * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument.
+ * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls,
+ TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or
+ conversions temporarily clear the 3rd bit from d->kind while walking
+ subtrees.
+ (c_omp_check_loop_iv_exprs): Add CODE argument. Or in 4 into data.kind
+ if possibly non-rectangular.
+
2021-10-21 Jakub Jelinek <jakub@redhat.com>
PR middle-end/64888
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ced6864..9bb19f22 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,34 @@
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/102854
+ * semantics.c (handle_omp_for_class_iterator,
+ finish_omp_for): Adjust c_omp_check_loop_iv_exprs caller.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/102753
+ * constexpr.c (cxx_eval_outermost_constant_expr): Perform
+ find_immediate_fndecl discovery if is_consteval or
+ in_immediate_context () rather than if is_consteval, t != r
+ and not in immediate function's body.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/102753
+ * cp-tree.h (saved_scope): Document that consteval_if_p member
+ is also set while processing immediate invocation.
+ (in_immediate_context): Declare.
+ * call.c (in_immediate_context): New function.
+ (immediate_invocation_p): Use it.
+ (struct in_consteval_if_p_temp_override): New class.
+ (build_over_call): Temporarily set in_consteval_if_p for processing
+ immediate invocation arguments.
+ * typeck.c (cp_build_addr_expr_1): Diagnose taking address of
+ an immediate method. Use t instead of TREE_OPERAND (arg, 1).
+ Use in_immediate_context function.
+ * constexpr.c (find_immediate_fndecl): Handle PTRMEM_CST
+ which refers to immediate function decl.
+
2021-10-26 Marek Polacek <polacek@redhat.com>
PR c++/102617
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 6d0a022..70a4aa5 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,70 @@
+2021-10-27 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
+ * intrinsic.h (gfc_check_sum, gfc_resolve_atan2d, gfc_resolve_kill,
+ gfc_resolve_kill_sub): Delete declaration.
+
+2021-10-27 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
+ * trans-types.h (gfc_convert_function_code): Delete.
+
+2021-10-27 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
+ * trans-stmt.h (gfc_trans_deallocate_array): Delete.
+
+2021-10-27 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
+ * trans-array.c (gfc_trans_scalarized_loop_end): Make static.
+ * trans-array.h (gfc_trans_scalarized_loop_end,
+ gfc_conv_tmp_ref, gfc_conv_array_transpose): Delete declaration.
+
+2021-10-27 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
+ * constructor.c (gfc_constructor_get_base): Make static.
+ (gfc_constructor_expr_foreach, gfc_constructor_swap): Delete.
+ * constructor.h (gfc_constructor_get_base): Remove declaration.
+ (gfc_constructor_expr_foreach, gfc_constructor_swap): Delete.
+
+2021-10-27 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
+ * decl.c (gfc_match_old_kind_spec, set_com_block_bind_c,
+ set_verify_bind_c_sym, set_verify_bind_c_com_block,
+ get_bind_c_idents, gfc_match_suffix, gfc_get_type_attr_spec,
+ check_extended_derived_type): Make static.
+ (gfc_match_gcc_unroll): Add comment.
+ * match.c (gfc_match_small_int_expr): Delete definition.
+ * match.h (gfc_match_small_int_expr): Delete declaration.
+ (gfc_match_name_C, gfc_match_old_kind_spec, set_com_block_bind_c,
+ set_verify_bind_c_sym, set_verify_bind_c_com_block,
+ get_bind_c_idents, gfc_match_suffix,
+ gfc_get_type_attr_spec): Delete declaration.
+
+2021-10-27 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
+
+ * expr.c (is_non_empty_structure_constructor): Make static.
+ * gfortran.h (gfc_check_any_c_kind): Delete.
+ * match.c (gfc_match_label): Make static.
+ * match.h (gfc_match_label): Delete declaration.
+ * scanner.c (file_changes_cur, file_changes_count,
+ file_changes_allocated): Make static.
+ * trans-expr.c (gfc_get_character_len): Make static.
+ (gfc_class_len_or_zero_get): Make static.
+ (VTAB_GET_FIELD_GEN): Undefine.
+ (gfc_get_class_array_ref): Make static.
+ (gfc_finish_interface_mapping): Make static.
+ * trans-types.c (gfc_check_any_c_kind): Delete.
+ (pfunc_type_node, dtype_type_node, gfc_get_ppc_type): Make static.
+ * trans-types.h (gfc_get_ppc_type): Delete declaration.
+ * trans.c (gfc_msg_wrong_return): Delete.
+ * trans.h (gfc_class_len_or_zero_get, gfc_class_vtab_extends_get,
+ gfc_vptr_extends_get, gfc_get_class_array_ref, gfc_get_character_len,
+ gfc_finish_interface_mapping, gfc_msg_wrong_return,
+ gfc_get_function_decl): Delete declaration.
+
+2021-10-27 Tobias Burnus <tobias@codesourcery.com>
+
+ * trans-stmt.c (gfc_trans_select_rank_cases): Fix condition
+ for allocatables/pointers.
+
2021-10-26 Harald Anlauf <anlauf@gmx.de>
PR fortran/102956
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d16e500..b69666d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,44 @@
+2021-10-27 Martin Sebor <msebor@redhat.com>
+
+ * gcc.dg/Warray-bounds-90.c: Fix a typo.
+
+2021-10-27 Tobias Burnus <tobias@codesourcery.com>
+
+ * gfortran.dg/PR93963.f90: Extend testcase by scan-tree-dump test.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/102897
+ * gcc.dg/pr102897.c: Add -Wno-psabi to dg-options.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ * c-c++-common/gomp/loop-8.c: New test.
+ * c-c++-common/gomp/loop-9.c: New test.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/102854
+ * g++.dg/gomp/loop-3.C: Don't expect some errors.
+ * g++.dg/gomp/loop-7.C: New test.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/102753
+ * g++.dg/cpp2a/consteval7.C: Expect diagnostics on quux.
+ * g++.dg/cpp2a/consteval24.C: New test.
+ * g++.dg/cpp23/consteval-if12.C: New test.
+
+2021-10-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/102753
+ * g++.dg/cpp2a/consteval13.C: Don't expect errors.
+ * g++.dg/cpp2a/consteval20.C: New test.
+ * g++.dg/cpp2a/consteval21.C: New test.
+ * g++.dg/cpp2a/consteval22.C: New test.
+ * g++.dg/cpp2a/consteval23.C: New test.
+ * g++.dg/cpp23/consteval-if11.C: New test.
+
2021-10-26 Martin Sebor <msebor@redhat.com>
PR tree-optimization/102238