From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2168) id C20C1385802A; Tue, 16 Nov 2021 00:17:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C20C1385802A MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: GCC Administrator To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-5288] Daily bump. X-Act-Checkin: gcc X-Git-Author: GCC Administrator X-Git-Refname: refs/heads/master X-Git-Oldrev: 87c2080b056ea2b7f145cba927f36e4f40900205 X-Git-Newrev: e2b57363fc1158b854f0e674e23c134de2b76e70 Message-Id: <20211116001710.C20C1385802A@sourceware.org> Date: Tue, 16 Nov 2021 00:17:10 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2021 00:17:10 -0000 https://gcc.gnu.org/g:e2b57363fc1158b854f0e674e23c134de2b76e70 commit r12-5288-ge2b57363fc1158b854f0e674e23c134de2b76e70 Author: GCC Administrator Date: Tue Nov 16 00:16:31 2021 +0000 Daily bump. Diff: --- gcc/ChangeLog | 161 ++++++++++++++++++++++++++++++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/ada/ChangeLog | 5 ++ gcc/c-family/ChangeLog | 11 ++++ gcc/c/ChangeLog | 5 ++ gcc/cp/ChangeLog | 66 ++++++++++++++++++++ gcc/fortran/ChangeLog | 6 ++ gcc/testsuite/ChangeLog | 158 +++++++++++++++++++++++++++++++++++++++++++++++ libffi/ChangeLog | 9 +++ libgomp/ChangeLog | 36 +++++++++++ libstdc++-v3/ChangeLog | 21 +++++++ 11 files changed, 479 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b7618d676c..52de288664a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,164 @@ +2021-11-15 Siddhesh Poyarekar + + * gimple-fold.c (gimple_fold_builtin_strncat): Use ranges to + determine if it is safe to transform to strcat. + (gimple_fold_builtin_snprintf): Likewise. + +2021-11-15 Siddhesh Poyarekar + + * gimple-fold.c (known_lower): New function. + (gimple_fold_builtin_strncat_chk, + gimple_fold_builtin_memory_chk, gimple_fold_builtin_stxcpy_chk, + gimple_fold_builtin_stxncpy_chk, + gimple_fold_builtin_snprintf_chk, + gimple_fold_builtin_sprintf_chk): Use it. + +2021-11-15 Siddhesh Poyarekar + + * gimple-fold.c (dump_transformation): New function. + (gimple_fold_builtin_stxcpy_chk, + gimple_fold_builtin_stxncpy_chk): Use it. Simplify to + BUILT_IN_STRNCPY if return value is not used. + +2021-11-15 H.J. Lu + + PR middle-end/103184 + * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check optab + before transforming equivalent, but slighly different cases to + their canonical forms. + +2021-11-15 Iain Sandoe + + PR fortran/102992 + * config/darwin.h (TARGET_DTORS_FROM_CXA_ATEXIT): New. + * doc/tm.texi: Regenerated. + * doc/tm.texi.in: Add TARGET_DTORS_FROM_CXA_ATEXIT hook. + * ipa.c (cgraph_build_static_cdtor_1): Return the built + function decl. + (build_cxa_atexit_decl): New. + (build_dso_handle_decl): New. + (build_cxa_dtor_registrations): New. + (compare_cdtor_tu_order): New. + (build_cxa_atexit_fns): New. + (ipa_cdtor_merge): If dtors_from_cxa_atexit is set, + process the DTORs/CTORs accordingly. + (pass_ipa_cdtor_merge::gate): Also run if + dtors_from_cxa_atexit is set. + * target.def (dtors_from_cxa_atexit): New hook. + +2021-11-15 Iain Sandoe + + * config.in: Regenerate. + * configure: Regenerate. + * configure.ac: Test ld64 for -platform-version support. + +2021-11-15 Thomas Schwinge + + * diagnostic-spec.h (typedef xint_hash_t) + (typedef xint_hash_map_t): Replace with... + (typedef nowarn_map_t): ... this. + (nowarn_map): Adjust. + * diagnostic-spec.c (nowarn_map, suppress_warning_at): Likewise. + +2021-11-15 Thomas Schwinge + + * profile.c (branch_prob): Use 'location_hash' for + 'seen_locations'. + +2021-11-15 Aldy Hernandez + + PR tree-optimization/103207 + * value-range.cc (irange::set): Drop overflow. + +2021-11-15 Jakub Jelinek + + * gimplify.c (optimize_target_teams): Only add OMP_CLAUSE_THREAD_LIMIT + to OMP_TARGET_CLAUSES if it isn't there already. + +2021-11-15 Aldy Hernandez + + * gimple-range-path.cc (path_range_query::internal_range_of_expr): + Remove useless code. + (path_range_query::ssa_defined_in_bb): New. + (path_range_query::ssa_range_in_phi): Avoid fold_range call that + could trigger additional lookups. + Do not use the cache for ARGs defined in this block. + (path_range_query::compute_ranges_in_block): Use ssa_defined_in_bb. + (path_range_query::maybe_register_phi_relation): Same. + (path_range_query::range_of_stmt): Adjust comment. + * gimple-range-path.h (ssa_defined_in_bb): New. + +2021-11-15 Aldy Hernandez + + * gimple-range-path.cc (path_range_query::internal_range_of_expr): + Default to global range if nothing found. + +2021-11-15 Richard Biener + + PR tree-optimization/103237 + * tree-vect-loop.c (vect_is_simple_reduction): Fail for + double reductions with multiple inner loop LC PHI nodes. + +2021-11-15 Hongyu Wang + + PR target/103069 + * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop): + New expand function. + * config/i386/i386-options.c (ix86_target_string): Add + -mrelax-cmpxchg-loop flag. + (ix86_valid_target_attribute_inner_p): Likewise. + * config/i386/i386-protos.h (ix86_expand_atomic_fetch_op_loop): + New expand function prototype. + * config/i386/i386.opt: Add -mrelax-cmpxchg-loop. + * config/i386/sync.md (atomic_fetch_): New expander + for SI,HI,QI modes. + (atomic__fetch): Likewise. + (atomic_fetch_nand): Likewise. + (atomic_nand_fetch): Likewise. + (atomic_fetch_): New expander for DI,TI modes. + (atomic__fetch): Likewise. + (atomic_fetch_nand): Likewise. + (atomic_nand_fetch): Likewise. + * doc/invoke.texi: Document -mrelax-cmpxchg-loop. + +2021-11-15 Richard Biener + + PR tree-optimization/103219 + * gimple-loop-jam.c (tree_loop_unroll_and_jam): Use single_exit + to determine the exit for the VN region. + +2021-11-15 Prathamesh Kulkarni + + * tree-ssa-loop.c (pass_vectorize): Move to tree-vectorizer.c. + (pass_data_vectorize): Likewise. + (make_pass_vectorize): Likewise. + * tree-vectorizer.c (vectorize_loops): Merge with + pass_vectorize::execute and replace cfun occurences with fun param. + (adjust_simduid_builtins): Add fun param, replace cfun occurences with + fun, and adjust callers approrpiately. + (note_simd_array_uses): Likewise. + (vect_loop_dist_alias_call): Likewise. + (set_uid_loop_bbs): Likewise. + (vect_transform_loops): Likewise. + (try_vectorize_loop_1): Likewise. + (try_vectorize_loop): Likewise. + +2021-11-15 Jakub Jelinek + + PR target/103205 + * config/i386/sync.md (atomic_bit_test_and_set, + atomic_bit_test_and_complement, + atomic_bit_test_and_reset): Use OPTAB_WIDEN instead of + OPTAB_DIRECT. + +2021-11-15 Maciej W. Rozycki + + * config/vax/vax.c (vax_lra_p): New prototype and function. + (TARGET_LRA_P): Wire it. + * config/vax/vax.opt (mlra): New option. + * doc/invoke.texi (Option Summary, VAX Options): Document the + new option. + 2021-11-14 Jan Hubicka * ipa-modref.h (struct modref_summary): Add nondeterministic diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 4dc8ff2721e..7090fb4b3b1 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20211115 +20211116 diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index f4413d8a7d2..887949b29c6 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2021-11-15 Iain Sandoe + + * gcc-interface/Makefile.in: Use DSYMUTIL_FOR_TARGET in + libgnat/libgnarl recipies. + 2021-11-10 Eric Botcazou * gcc-interface/ada-tree.h (DECL_STUBBED_P): Delete. diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index d1d2183c698..7ed01020ecc 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,14 @@ +2021-11-15 Jason Merrill + + * c.opt: Add -fimplicit-constexpr. + * c-cppbuiltin.c: Define __cpp_implicit_constexpr. + * c-opts.c (c_common_post_options): Disable below C++14. + +2021-11-15 Jakub Jelinek + + * c-omp.c (c_omp_split_clauses) : + Duplicate to both OMP_TARGET and OMP_TEAMS. + 2021-11-10 Marek Polacek PR c++/101940 diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index c2919470f65..3ce48f1abb8 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,8 @@ +2021-11-15 Jakub Jelinek + + * c-parser.c (OMP_TARGET_CLAUSE_MASK): Add + PRAGMA_OMP_CLAUSE_THREAD_LIMIT. + 2021-11-11 Jakub Jelinek * c-parser.c (c_parser_omp_clause_num_teams): Parse optional diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5d98e4062ba..61ce6295b2d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,69 @@ +2021-11-15 Jason Merrill + + * cp-tree.h (struct lang_decl_fn): Add implicit_constexpr. + (decl_implicit_constexpr_p): New. + * class.c (type_maybe_constexpr_destructor): Use + TYPE_HAS_TRIVIAL_DESTRUCTOR and maybe_constexpr_fn. + (finalize_literal_type_property): Simplify. + * constexpr.c (is_valid_constexpr_fn): Check for dtor. + (maybe_save_constexpr_fundef): Try to set DECL_DECLARED_CONSTEXPR_P + on inlines. + (cxx_eval_call_expression): Use maybe_constexpr_fn. + (maybe_constexpr_fn): Handle flag_implicit_constexpr. + (var_in_maybe_constexpr_fn): Use maybe_constexpr_fn. + (potential_constant_expression_1): Likewise. + (decl_implicit_constexpr_p): New. + * decl.c (validate_constexpr_redeclaration): Allow change with + -fimplicit-constexpr. + (grok_special_member_properties): Use maybe_constexpr_fn. + * error.c (dump_function_decl): Don't print 'constexpr' + if it's implicit. + * Make-lang.in (check-c++-all): Update. + +2021-11-15 Jason Merrill + + * typeck2.c (split_nonconstant_init_1): Handle flexarrays better. + +2021-11-15 Jakub Jelinek + + * parser.c (OMP_TARGET_CLAUSE_MASK): Add + PRAGMA_OMP_CLAUSE_THREAD_LIMIT. + +2021-11-15 Jason Merrill + + * call.c (perform_implicit_conversion_flags): Use the location of + the argument. + * lambda.c (build_lambda_object): Set location on the TARGET_EXPR. + +2021-11-15 Jason Merrill + + * constexpr.c (maybe_save_constexpr_fundef): Also check whether the + body of a constructor is potentially constant. + +2021-11-15 Jason Merrill + + * semantics.c (is_this_parameter): Check DECL_HAS_VALUE_EXPR_P + instead of is_capture_proxy. + +2021-11-15 Jason Merrill + + PR c++/70690 + * init.c (build_vec_init): Check default_init_uninitialized_part in + C++20. + +2021-11-15 Jason Merrill + + * constexpr.c (maybe_constant_value): Don't evaluate + in an unevaluated operand unless manifestly const-evaluated. + (fold_non_dependent_expr_template): Likewise. + * decl.c (compute_array_index_type_loc): This context is + manifestly constant-evaluated. + +2021-11-15 Jason Merrill + + * constexpr.c (cxx_eval_thunk_call): Error instead of ICE + on vbase thunk to constexpr function. + 2021-11-11 Patrick Palka * parser.c (cp_parser_template_argument_list): Use auto_vec diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 0216f126dd9..10dfca4127e 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2021-11-15 Tobias Burnus + + * openmp.c (OMP_TARGET_CLAUSES): Add thread_limit. + * trans-openmp.c (gfc_split_omp_clauses): Add thread_limit also to + teams. + 2021-11-12 Tobias Burnus * parse.c (decode_omp_directive): Fix permitting 'nowait' for some diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 76f2e04b625..b221cba038d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,161 @@ +2021-11-15 Jason Merrill + + * lib/g++-dg.exp: Handle "impcx". + * lib/target-supports.exp + (check_effective_target_implicit_constexpr): New. + * g++.dg/abi/abi-tag16.C: + * g++.dg/abi/abi-tag18a.C: + * g++.dg/abi/guard4.C: + * g++.dg/abi/lambda-defarg1.C: + * g++.dg/abi/mangle26.C: + * g++.dg/cpp0x/constexpr-diag3.C: + * g++.dg/cpp0x/constexpr-ex1.C: + * g++.dg/cpp0x/constexpr-ice5.C: + * g++.dg/cpp0x/constexpr-incomplete2.C: + * g++.dg/cpp0x/constexpr-memfn1.C: + * g++.dg/cpp0x/constexpr-neg3.C: + * g++.dg/cpp0x/constexpr-specialization.C: + * g++.dg/cpp0x/inh-ctor19.C: + * g++.dg/cpp0x/inh-ctor30.C: + * g++.dg/cpp0x/lambda/lambda-mangle3.C: + * g++.dg/cpp0x/lambda/lambda-mangle5.C: + * g++.dg/cpp1y/auto-fn12.C: + * g++.dg/cpp1y/constexpr-loop5.C: + * g++.dg/cpp1z/constexpr-lambda7.C: + * g++.dg/cpp2a/constexpr-dtor3.C: + * g++.dg/cpp2a/constexpr-new13.C: + * g++.dg/cpp2a/constinit11.C: + * g++.dg/cpp2a/constinit12.C: + * g++.dg/cpp2a/constinit14.C: + * g++.dg/cpp2a/constinit15.C: + * g++.dg/cpp2a/spaceship-constexpr1.C: + * g++.dg/cpp2a/spaceship-eq3.C: + * g++.dg/cpp2a/udlit-class-nttp-neg2.C: + * g++.dg/debug/dwarf2/auto1.C: + * g++.dg/debug/dwarf2/cdtor-1.C: + * g++.dg/debug/dwarf2/lambda1.C: + * g++.dg/debug/dwarf2/pr54508.C: + * g++.dg/debug/dwarf2/pubnames-2.C: + * g++.dg/debug/dwarf2/pubnames-3.C: + * g++.dg/ext/is_literal_type3.C: + * g++.dg/ext/visibility/template7.C: + * g++.dg/gcov/gcov-12.C: + * g++.dg/gcov/gcov-2.C: + * g++.dg/ipa/devirt-35.C: + * g++.dg/ipa/devirt-36.C: + * g++.dg/ipa/devirt-37.C: + * g++.dg/ipa/devirt-44.C: + * g++.dg/ipa/imm-devirt-1.C: + * g++.dg/lookup/builtin5.C: + * g++.dg/lto/inline-crossmodule-1_0.C: + * g++.dg/modules/enum-1_a.C: + * g++.dg/modules/fn-inline-1_c.C: + * g++.dg/modules/pmf-1_b.C: + * g++.dg/modules/used-1_c.C: + * g++.dg/tls/thread_local11.C: + * g++.dg/tls/thread_local11a.C: + * g++.dg/tm/pr46653.C: + * g++.dg/ubsan/pr70035.C: + * g++.old-deja/g++.other/delete6.C: + * g++.dg/modules/pmf-1_a.H: + Adjust for implicit constexpr. + +2021-11-15 Jason Merrill + + * g++.dg/ext/flexary37.C: Remove expected error. + +2021-11-15 Siddhesh Poyarekar + + * gcc.dg/fold-stringops-2.c: Define size_t. + (safe1): Adjust. + (safe4): New test. + * gcc.dg/fold-stringops-3.c: New test. + +2021-11-15 Siddhesh Poyarekar + + * gcc.dg/Wobjsize-1.c: Make warning change line agnostic. + * gcc.dg/fold-stringops-2.c: New test. + +2021-11-15 Siddhesh Poyarekar + + * gcc.dg/fold-stringops-1.c: New test. + +2021-11-15 H.J. Lu + + PR middle-end/103184 + * gcc.dg/pr103184-1.c: New test. + * gcc.dg/pr103184-2.c: Likewise. + +2021-11-15 Iain Sandoe + + * gcc.dg/vect/tsvc/tsvc.h: Use malloc for Darwin 9 and + earlier. + +2021-11-15 Aldy Hernandez + + * gcc.dg/pr103207.c: New test. + +2021-11-15 Jakub Jelinek + + PR debug/100469 + * g++.dg/opt/pr100469.C: New test. + +2021-11-15 H.J. Lu + + PR target/103205 + * gcc.target/i386/pr103205-2.c: New test. + +2021-11-15 Aldy Hernandez + + * g++.dg/tree-ssa/pr31146-2.C: Add -fno-thread-jumps. + +2021-11-15 Richard Biener + + PR tree-optimization/103237 + * gcc.dg/torture/pr103237.c: New testcase. + +2021-11-15 Hongyu Wang + + PR target/103069 + * gcc.target/i386/pr103069-1.c: New test. + * gcc.target/i386/pr103069-2.c: Ditto. + +2021-11-15 Richard Biener + + PR tree-optimization/103219 + * gcc.dg/torture/pr103219.c: New testcase. + +2021-11-15 Rainer Orth + + * gcc.target/i386/pr101346.c: Require dfp support. + +2021-11-15 Jakub Jelinek + + PR target/103205 + * gcc.target/i386/pr103205.c: New test. + +2021-11-15 Jason Merrill + + * g++.dg/cpp0x/lambda/lambda-switch.C: Adjust expected location. + +2021-11-15 Jason Merrill + + * g++.dg/cpp1y/constexpr-89285-2.C: Expect error. + * g++.dg/cpp1y/constexpr-89285.C: Adjust error. + +2021-11-15 Jason Merrill + + PR c++/70690 + * g++.dg/init/array41a.C: New test. + +2021-11-15 Jason Merrill + + * g++.dg/cpp2a/constexpr-virtual20.C: New test. + +2021-11-15 Hans-Peter Nilsson + + * gcc.dg/uninit-pred-9_b.c: Correct last adjustment, for CRIS. + 2021-11-15 Andrew Pinski * gcc.dg/tree-ssa/pr100278.c: Move to ... diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 3d87b0a5380..83792b822ba 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,12 @@ +2021-11-15 H.J. Lu + + * LOCAL_PATCHES: Add commit a91f844ef44. + +2021-11-15 Rainer Orth + + PR libffi/102874 + * src/x86/win64.S (epilogue): Use #define instead of .macro. + 2021-11-04 H.J. Lu * Makefile.am (AM_CFLAGS): Add $(CET_FLAGS). diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index ed26b8d543f..21c92711283 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,39 @@ +2021-11-15 Tobias Burnus + + * testsuite/libgomp.fortran/thread-limit-1.f90: New test. + +2021-11-15 Jakub Jelinek + + * task.c (gomp_create_target_task): Copy args array as well. + * target.c (gomp_target_fallback): Add args argument. + Set gomp_icv (true)->thread_limit_var if thread_limit is present. + (GOMP_target): Adjust gomp_target_fallback caller. + (GOMP_target_ext): Likewise. + (gomp_target_task_fn): Likewise. + * config/nvptx/team.c (gomp_nvptx_main): Set + gomp_global_icv.thread_limit_var. + * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test. + +2021-11-15 Jakub Jelinek + + * config/nvptx/team.c (__gomp_team_num): Define as + __attribute__((shared)) var. + (gomp_nvptx_main): Initialize __gomp_team_num to 0. + * config/nvptx/target.c (__gomp_team_num): Declare as + extern __attribute__((shared)) var. + (GOMP_teams4): Use __gomp_team_num as the team number instead of + %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower + is bigger than num_blocks, use num_teams_lower teams and arrange for + bumping of __gomp_team_num if !first and returning false once we run + out of teams. + * config/nvptx/teams.c (__gomp_team_num): Declare as + extern __attribute__((shared)) var. + (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x. + +2021-11-15 Jakub Jelinek + + * testsuite/libgomp.c/teams-5.c: New test. + 2021-11-12 Jakub Jelinek PR target/103201 diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 93159f35e59..cb6a8a3925a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,24 @@ +2021-11-15 Jason Merrill + + * testsuite/20_util/to_address/1_neg.cc: Adjust error. + * testsuite/26_numerics/random/concept.cc: Adjust asserts. + +2021-11-15 François Dumont + + * include/bits/hashtable_policy.h: + (_Hash_code_base<>::_M_hash_code(const _Hash&, const _Hash_node_value<_Value, true>&)): New. + (_Hash_code_base<>::_M_hash_code<_H2>(const _H2&, const _Hash_node_value<>&)): New. + * include/bits/hashtable.h (_Hashtable<>::_M_merge_unique): Use latter. + (_Hashtable<>::_M_merge_multi): Likewise. + * testsuite/23_containers/unordered_multiset/modifiers/merge.cc (test05): New test. + * testsuite/23_containers/unordered_set/modifiers/merge.cc (test04): New test. + +2021-11-15 Jason Merrill + + * src/c++17/memory_resource.cc: Add missing constexpr. + * include/experimental/internet: Only mark copy constructor + as constexpr with __cpp_constexpr_dynamic_alloc. + 2021-11-14 François Dumont * include/debug/safe_container.h (_Safe_container<>::_M_safe): Remove.