From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id ED669398702D; Thu, 3 Sep 2020 16:06:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED669398702D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599149161; bh=A6a2Y2sVGbIlF7X/MC8nEyWeMsEDFjLTrvYw3nHfYac=; h=From:To:Subject:Date:From; b=esqPKHEBOQ8p0s4F8vhyIww64OuKXQEUCQR3DuXectEdChULwESazutmSLnlSzUPR Nc8kXLtGOgd6i+ARHFqptNbSTkeNjlVPWgteV/sCm4xmvDTjAS/pKDT69p4GVZnkks W35jQgwJRghSTBEfcvkG7kzQuqsD7RV2uZb75phc= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] Daily bump. X-Act-Checkin: gcc X-Git-Author: GCC Administrator X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: f2f48b68a6a586f40dd8ae0e6d391b7f88756eec X-Git-Newrev: 8f7ea26ae325f796c4873089acdfd2b1f1d2520f Message-Id: <20200903160601.ED669398702D@sourceware.org> Date: Thu, 3 Sep 2020 16:06:01 +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: Thu, 03 Sep 2020 16:06:02 -0000 https://gcc.gnu.org/g:8f7ea26ae325f796c4873089acdfd2b1f1d2520f commit 8f7ea26ae325f796c4873089acdfd2b1f1d2520f Author: GCC Administrator Date: Sat Aug 29 00:16:21 2020 +0000 Daily bump. Diff: --- gcc/ChangeLog | 111 ++++++++++++++++++++++++++++++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/c-family/ChangeLog | 4 ++ gcc/c/ChangeLog | 6 +++ gcc/fortran/ChangeLog | 12 ++++++ gcc/jit/ChangeLog | 5 +++ gcc/testsuite/ChangeLog | 73 +++++++++++++++++++++++++++++++ libstdc++-v3/ChangeLog | 28 ++++++++++++ 8 files changed, 240 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0759b8f50d..6d9084327a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,114 @@ +2020-08-28 Martin Sebor + + * attribs.c (init_attr_rdwr_indices): Use global access_mode. + * attribs.h (struct attr_access): Same. + * builtins.c (fold_builtin_strlen): Add argument. + (compute_objsize): Declare. + (get_range): Declare. + (check_read_access): New function. + (access_ref::access_ref): Define ctor. + (warn_string_no_nul): Add arguments. Handle -Wstrintop-overread. + (check_nul_terminated_array): Handle source strings of different + ranges of sizes. + (expand_builtin_strlen): Remove warning code, call check_read_access + instead. Declare locals closer to their initialization. + (expand_builtin_strnlen): Same. + (maybe_warn_for_bound): New function. + (warn_for_access): Remove argument. Handle -Wstrintop-overread. + (inform_access): Change argument type. + (get_size_range): New function. + (check_access): Remove unused arguments. Add new arguments. Handle + -Wstrintop-overread. Move warning code to helpers and call them. + Call check_nul_terminated_array. + (check_memop_access): Remove unnecessary and provide additional + arguments in calls. + (expand_builtin_memchr): Call check_read_access. + (expand_builtin_strcat): Remove unnecessary and provide additional + arguments in calls. + (expand_builtin_strcpy): Same. + (expand_builtin_strcpy_args): Same. Avoid testing no-warning bit. + (expand_builtin_stpcpy_1): Remove unnecessary and provide additional + arguments in calls. + (expand_builtin_stpncpy): Same. + (check_strncat_sizes): Same. + (expand_builtin_strncat): Remove unnecessary and provide additional + arguments in calls. Adjust comments. + (expand_builtin_strncpy): Remove unnecessary and provide additional + arguments in calls. + (expand_builtin_memcmp): Remove warning code. Call check_access. + (expand_builtin_strcmp): Call check_access instead of + check_nul_terminated_array. + (expand_builtin_strncmp): Handle -Wstrintop-overread. + (expand_builtin_fork_or_exec): Call check_access instead of + check_nul_terminated_array. + (expand_builtin): Same. + (fold_builtin_1): Pass additional argument. + (fold_builtin_n): Same. + (fold_builtin_strpbrk): Remove calls to check_nul_terminated_array. + (expand_builtin_memory_chk): Add comments. + (maybe_emit_chk_warning): Remove unnecessary and provide additional + arguments in calls. + (maybe_emit_sprintf_chk_warning): Same. Adjust comments. + * builtins.h (warn_string_no_nul): Add arguments. + (struct access_ref): Add member and ctor argument. + (struct access_data): Add members and ctor. + (check_access): Adjust signature. + * calls.c (maybe_warn_nonstring_arg): Return an indication of + whether a warning was issued. Issue -Wstrintop-overread instead + of -Wstringop-overflow. + (append_attrname): Adjust to naming changes. + (maybe_warn_rdwr_sizes): Same. Remove unnecessary and provide + additional arguments in calls. + * calls.h (maybe_warn_nonstring_arg): Return bool. + * doc/invoke.texi (-Wstringop-overread): Document new option. + * gimple-fold.c (gimple_fold_builtin_strcpy): Provide an additional + argument in call. + (gimple_fold_builtin_stpcpy): Same. + * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Adjust to naming + changes. + * tree.h (enum access_mode): New type. + +2020-08-28 Bill Schmidt + + * config/rs6000/rs6000.c (rs6000_call_aix): Remove test for r12. + (rs6000_sibcall_aix): Likewise. + +2020-08-28 Andrew Stubbs + + * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true" + parameter to vec_safe_grow_cleared. + +2020-08-28 Martin Sebor + + * ggc-common.c (gt_pch_save): Add argument to a call. + +2020-08-28 Przemyslaw Wirkus + + PR target/96357 + * config/aarch64/aarch64-sve.md + (cond_sub_relaxed_const): Updated and renamed from + cond_sub_any_const pattern. + (cond_sub_strict_const): New pattern. + +2020-08-28 Wei Wentao + + * doc/rtl.texi: Fix typo. + +2020-08-28 Uros Bizjak + + PR target/96744 + * config/i386/i386-expand.c (split_double_mode): Also handle + E_P2HImode and E_P2QImode. + * config/i386/sse.md (MASK_DWI): New define_mode_iterator. + (mov): New expander for P2HI,P2QI. + (*mov_internal): New define_insn_and_split to split + movement of P2QI/P2HI to 2 movqi/movhi patterns after reload. + +2020-08-28 liuhongt + + * common/config/i386/i386-common.c (ix86_handle_option): Set + AVX512DQ when AVX512VP2INTERSECT exists. + 2020-08-27 Jakub Jelinek PR target/65146 diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 7cd20fae38d..cb50c2bdf0d 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20200828 +20200829 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 1eaa99f31e6..54f661f6c88 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2020-08-28 Martin Sebor + + * c.opt (Wstringop-overread): New option. + 2020-08-11 Jakub Jelinek PR c/96545 diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 91a278e542b..da8ad54fe9d 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2020-08-28 Martin Sebor + + PR c/96596 + * c-decl.c (match_builtin_function_types): Avoid dealing with erroneous + argument type. + 2020-08-27 Martin Liska * gimple-parser.c (c_parser_gimple_compound_statement): Set exact argument of a vector diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 29d6103b1ae..c431561aab2 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,15 @@ +2020-08-28 Tobias Burnus + + PR fortran/94672 + * trans-array.c (gfc_trans_g77_array): Check against the parm decl and + set the nonparm decl used for the is-present check to NULL if absent. + +2020-08-28 Paul Thomas + + PR fortran/96624 + * simplify.c (gfc_simplify_reshape): Detect zero shape and + clear index if found. + 2020-08-27 Mark Eggleston PR fortran/95882 diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog index 2389f2910cc..0191ebf8b8d 100644 --- a/gcc/jit/ChangeLog +++ b/gcc/jit/ChangeLog @@ -1,3 +1,8 @@ +2020-08-28 Martin Sebor + + * jit-recording.c (recording::switch_::make_debug_string): Add argument + to a call. + 2020-08-22 Andrea Corallo * libgccjit.c: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d54bb9bd54f..074ca6f3bff 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,76 @@ +2020-08-28 Martin Sebor + + * c-c++-common/Warray-bounds-7.c: Adjust expected warnings. + * c-c++-common/Wrestrict.c: Remove xfail. + * c-c++-common/attr-nonstring-3.c: Adjust text of expected warnings. + * c-c++-common/attr-nonstring-6.c: Suppress -Wstringop-overread + instead of -Wstringop-overflow. + * c-c++-common/attr-nonstring-8.c: Adjust text of expected warnings. + * g++.dg/torture/Wsizeof-pointer-memaccess1.C: Also suppress + -Wstringop-overread. + * g++.dg/torture/Wsizeof-pointer-memaccess2.C: Same. + * gcc.dg/Warray-bounds-39.c: Adjust expected warnings. + * gcc.dg/Warray-bounds-40.c: Also suppress -Wstringop-overread. + * gcc.dg/Warray-bounds-58.c: Remove xfail. Also expect + -Wstringop-overread. Adjust text of expected warnings. + * gcc.dg/Wsizeof-pointer-memaccess1.c: Also suppress + -Wstringop-overread. + * gcc.dg/Wstringop-overflow-22.c: Adjust text of expected warnings. + * gcc.dg/Wstringop-overflow-33.c: Expect -Wstringop-overread. + * gcc.dg/Wstringop-overflow-9.c: Expect -Wstringop-overread. + * gcc.dg/attr-nonstring-2.c: Adjust text of expected warnings. + * gcc.dg/attr-nonstring-3.c: Same. + * gcc.dg/attr-nonstring-4.c: Same. + * gcc.dg/attr-nonstring.c: Expect -Wstringop-overread. + * gcc.dg/builtin-stringop-chk-5.c: Adjust comment. + * gcc.dg/builtin-stringop-chk-8.c: Enable -Wstringop-overread instead + of -Wstringop-overflow. + * gcc.dg/pr78902.c: Also expect -Wstringop-overread. + * gcc.dg/pr79214.c: Adjust text of expected warnings. + * gcc.dg/strcmpopt_10.c: Suppress valid -Wno-stringop-overread. + * gcc.dg/strlenopt-57.c: Also expect -Wstringop-overread. + * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Also suppress valid + -Wno-stringop-overread. + * gcc.dg/tree-ssa/builtins-folding-gimple-ub.c: Same. + * gcc.dg/uninit-33.c: Same. + * gcc.dg/warn-strnlen-no-nul-2.c: Adjust text of expected warning. + * gcc.dg/warn-strnlen-no-nul.c: Same. + * gcc.target/i386/strcmpopt_6.c: Suppress -Wstringop-overread. + * gcc.dg/Wstringop-overread-2.c: New test. + * gcc.dg/Wstringop-overread.c: New test. + +2020-08-28 Martin Sebor + + PR c/96596 + * gcc.dg/Wbuiltin-declaration-mismatch-16.c: New test. + +2020-08-28 Tobias Burnus + + PR fortran/94672 + * gfortran.dg/optional_assumed_charlen_2.f90: New test. + +2020-08-28 Przemyslaw Wirkus + + PR target/96357 + * gcc.target/aarch64/sve/pr96357.c: New test. + +2020-08-28 Alex Coplan + + * gcc.target/aarch64/mem-shift-canonical.c: Skip on ILP32. + +2020-08-28 Paul Thomas + + PR fortran/96624 + * gfortran.dg/reshape_8.f90 : New test. + +2020-08-28 Christophe Lyon + + * gcc.dg/pr96579.c: Compile only with target dfp. + +2020-08-28 Uros Bizjak + + * gcc.target/i386/double_mask_reg-1.c: New test. + 2020-08-27 John David Anglin * gcc.target/hppa/shadd-2.c: Adjust times to 4. diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 05f47b99f43..fa32bdee105 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,31 @@ +2020-08-28 Jonathan Wakely + + * include/std/chrono (common_type): Fix partial specializations + for a single duration type to use the common_type of the rep. + (duration::operator+, duration::operator-): Fix return types + to also use the common_type of the rep. + * testsuite/20_util/duration/requirements/reduced_period.cc: + Check duration using a rep that has common_type specialized. + +2020-08-28 Jonathan Wakely + + PR libstdc++/92978 + * include/std/numeric (__abs_integral): Replace with ... + (__detail::__absu): New function template that returns an + unsigned type, guaranteeing it can represent the most + negative signed value. + (__detail::__gcd, __detail::__lcm): Require arguments to + be unsigned and therefore already non-negative. + (gcd, lcm): Convert arguments to absolute value as unsigned + type before calling __detail::__gcd or __detail::__lcm. + * include/experimental/numeric (gcd, lcm): Likewise. + * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust expected + errors. + * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise. + * testsuite/26_numerics/gcd/92978.cc: New test. + * testsuite/26_numerics/lcm/92978.cc: New test. + * testsuite/experimental/numeric/92978.cc: New test. + 2020-08-27 Jonathan Wakely * include/std/chrono (__duration_common_type): Ensure the