https://gcc.gnu.org/g:90b735b397c21688d95f1bbb42fba8ad3e17b30e
commit r15-7689-g90b735b397c21688d95f1bbb42fba8ad3e17b30e Author: GCC Administrator <gccadmin@gcc.gnu.org> Date: Tue Feb 25 00:17:52 2025 +0000 Daily bump. Diff: --- gcc/ChangeLog | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/analyzer/ChangeLog | 8 ++++++ gcc/testsuite/ChangeLog | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 149 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4eb1f3a5a64e..7b3ae06b9bd7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,73 @@ +2025-02-24 Robin Dapp <rd...@ventanamicro.com> + + PR target/114516 + * config/riscv/riscv-vector-costs.cc (compute_estimated_lmul): + Add pattern statements to program points. + +2025-02-24 Robin Dapp <rd...@ventanamicro.com> + + PR middle-end/118950 + * tree-vect-patterns.cc (vect_recog_gather_scatter_pattern): Use + original LHS's type. + +2025-02-24 Jakub Jelinek <ja...@redhat.com> + + PR tree-optimization/118915 + * tree-ssa-reassoc.cc (optimize_range_tests_to_bit_test): For + highj == NULL_TREE use TYPE_MAX_VALUE (TREE_TYPE (lowj)) rather + than TYPE_MAX_VALUE (type). + +2025-02-24 Richard Biener <rguent...@suse.de> + + PR tree-optimization/118973 + * tree-ssa-dce.cc (mark_stmt_if_obviously_necessary): Calls + that alter control flow in unpredictable ways need to be + preserved. + +2025-02-24 Jakub Jelinek <ja...@redhat.com> + + PR middle-end/118993 + * gimplify.cc (gimplify_scan_omp_clauses): Fix diagnostics typo, + undfined -> undefined. + +2025-02-24 Jakub Jelinek <ja...@redhat.com> + + PR c/117023 + * builtin-attrs.def (ATTR_NONNULL_IF_NONZERO): New DEF_ATTR_IDENT. + (ATTR_NOTHROW_NONNULL_IF12_LEAF, ATTR_NOTHROW_NONNULL_IF13_LEAF, + ATTR_NOTHROW_NONNULL_IF123_LEAF, ATTR_NOTHROW_NONNULL_IF23_LEAF, + ATTR_NOTHROW_NONNULL_1_IF23_LEAF, ATTR_PURE_NOTHROW_NONNULL_IF12_LEAF, + ATTR_PURE_NOTHROW_NONNULL_IF13_LEAF, + ATTR_PURE_NOTHROW_NONNULL_IF123_LEAF, + ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_IF12_LEAF, + ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_IF12_LEAF): New + DEF_ATTR_TREE_LIST. + * builtins.def (BUILT_IN_STRNDUP): Use + ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_IF12_LEAF instead of + ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF. + (BUILT_IN_STRNCAT, BUILT_IN_STRNCAT_CHK): Use + ATTR_NOTHROW_NONNULL_1_IF23_LEAF instead of ATTR_NOTHROW_NONNULL_LEAF. + (BUILT_IN_BCOPY, BUILT_IN_MEMCPY, BUILT_IN_MEMCPY_CHK, + BUILT_IN_MEMMOVE, BUILT_IN_MEMMOVE_CHK, BUILT_IN_STRNCPY, + BUILT_IN_STRNCPY_CHK): Use ATTR_NOTHROW_NONNULL_IF123_LEAF instead of + ATTR_NOTHROW_NONNULL_LEAF. + (BUILT_IN_MEMPCPY, BUILT_IN_MEMPCPY_CHK, BUILT_IN_STPNCPY, + BUILT_IN_STPNCPY_CHK): Use ATTR_NOTHROW_NONNULL_IF123_LEAF instead of + ATTR_RETNONNULL_NOTHROW_LEAF. + (BUILT_IN_BZERO, BUILT_IN_MEMSET, BUILT_IN_MEMSET_CHK): Use + ATTR_NOTHROW_NONNULL_IF13_LEAF instead of ATTR_NOTHROW_NONNULL_LEAF. + (BUILT_IN_BCMP, BUILT_IN_MEMCMP, BUILT_IN_STRNCASECMP, + BUILT_IN_STRNCMP): Use ATTR_PURE_NOTHROW_NONNULL_IF123_LEAF instead of + ATTR_PURE_NOTHROW_NONNULL_LEAF. + (BUILT_IN_STRNLEN): Use ATTR_PURE_NOTHROW_NONNULL_IF12_LEAF instead of + ATTR_PURE_NOTHROW_NONNULL_LEAF. + (BUILT_IN_MEMCHR): Use ATTR_PURE_NOTHROW_NONNULL_IF13_LEAF instead of + ATTR_PURE_NOTHROW_NONNULL_LEAF. + +2025-02-24 Lino Hsing-Yu Peng <linop...@andestech.com> + + * config/riscv/riscv.cc: Set multi push regs bits. + 2025-02-22 Thomas Schwinge <tschwi...@baylibre.com> * config/bpf/bpf.md (define_expand "allocate_stack"): Emit diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 927bc531bc86..8781321aefe5 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20250224 +20250225 diff --git a/gcc/analyzer/ChangeLog b/gcc/analyzer/ChangeLog index 35aa2c4cbb76..4bef0a255abf 100644 --- a/gcc/analyzer/ChangeLog +++ b/gcc/analyzer/ChangeLog @@ -1,3 +1,11 @@ +2025-02-24 Jakub Jelinek <ja...@redhat.com> + + PR c/117023 + * sm-malloc.cc (malloc_state_machine::handle_nonnull): New private + method. + (malloc_state_machine::on_stmt): Use it for nonnull attribute arguments. + Handle also nonnull_if_nonzero attributes. + 2025-02-19 David Malcolm <dmalc...@redhat.com> PR analyzer/118300 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 08e34cf4940c..3bd3495402b5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,73 @@ +2025-02-24 Robin Dapp <rd...@ventanamicro.com> + + PR target/114516 + * gcc.dg/vect/costmodel/riscv/rvv/pr114516.c: New test. + +2025-02-24 Robin Dapp <rd...@ventanamicro.com> + + PR middle-end/118950 + * gcc.target/riscv/rvv/autovec/pr118950.c: New test. + +2025-02-24 Jakub Jelinek <ja...@redhat.com> + + PR tree-optimization/118915 + * gcc.c-torture/execute/pr118915.c: New test. + +2025-02-24 Richard Biener <rguent...@suse.de> + + PR tree-optimization/118973 + * g++.dg/torture/pr118973.C: New testcase. + +2025-02-24 Jakub Jelinek <ja...@redhat.com> + + PR middle-end/118993 + * c-c++-common/gomp/allocate-18.c: Adjust dg-warning regex for + diagnostics typo fix. + * gfortran.dg/gomp/allocate-clause.f90: Likewise. + +2025-02-24 Jakub Jelinek <ja...@redhat.com> + + PR c/117023 + * gcc.dg/builtins-nonnull.c (test_memfuncs, test_memfuncs_chk, + test_strfuncs, test_strfuncs_chk): Add if (n == 0) return; at the + start of the functions. + * gcc.dg/Wnonnull-2.c: Copy __builtin_* call statements where + appropriate 3 times, once with 0 length, once with n and once with + non-zero constant and expect warning only in the third case. + Formatting fixes. + * gcc.dg/Wnonnull-3.c: Copy __builtin_* call statements where + appropriate 3 times, once with 0 length, once with n and once with + n guarded with n != 0 and expect warning only in the third case. + Formatting fixes. + * gcc.dg/nonnull-3.c (foo): Use 16 instead of 0 in the calls added + for PR80936. + * gcc.dg/nonnull-11.c: New test. + * c-c++-common/ubsan/nonnull-1.c: Don't expect runtime diagnostics + for the __builtin_memcpy call. + * gcc.dg/tree-ssa/pr78154.c (f): Add dn argument and return early + if it is NULL. Duplicate cases of builtins which have the first + argument changed from nonnull to nonnull_if_nonzero except stpncpy, + once with dn as first argument instead of d and once with constant + non-zero count rather than n. Disable the stpncpy non-null check. + * gcc.dg/Wbuiltin-declaration-mismatch-14.c (test_builtin_calls): + Triplicate the strncmp calls, once with 1 last argument and expect + warning, once with n last argument and don't expect warning and + once with 0 last argument and don't expect warning. + * gcc.dg/Wbuiltin-declaration-mismatch-15.c (test_builtin_calls_fe): + Likewise. + +2025-02-24 Jakub Jelinek <ja...@redhat.com> + + PR c/117023 + * c-c++-common/analyzer/call-summaries-malloc.c + (test_use_without_check): Pass 4 rather than sz to memset. + * c-c++-common/analyzer/strncpy-1.c (test_null_dst, + test_null_src): Pass 42 rather than count to strncpy. + +2025-02-24 Lino Hsing-Yu Peng <linop...@andestech.com> + + * gcc.target/riscv/zcmp_push_gpr.c: New test. + 2025-02-23 H.J. Lu <hjl.to...@gmail.com> PR tree-optimization/82142