https://gcc.gnu.org/g:088f3168a98d96ade7566dff37e3c2c305a4b2ef

commit r14-11721-g088f3168a98d96ade7566dff37e3c2c305a4b2ef
Author: GCC Administrator <gccadmin@gcc.gnu.org>
Date:   Fri May 2 00:24:15 2025 +0000

    Daily bump.

Diff:
---
 fixincludes/ChangeLog   |   9 ++++
 gcc/ChangeLog           |  45 ++++++++++++++++++
 gcc/DATESTAMP           |   2 +-
 gcc/cp/ChangeLog        | 120 ++++++++++++++++++++++++++++++++++++++++++++++++
 gcc/testsuite/ChangeLog |  85 ++++++++++++++++++++++++++++++++++
 libgcc/ChangeLog        |  11 +++++
 6 files changed, 271 insertions(+), 1 deletion(-)

diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index 9bb9b89d426e..bc4413ef2e28 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,12 @@
+2025-05-01  Francois-Xavier Coudert  <fxcoud...@gcc.gnu.org>
+
+       Backported from master:
+       2024-06-27  Francois-Xavier Coudert  <fxcoud...@gcc.gnu.org>
+
+       * fixincl.x: Regenerate.
+       * inclhack.def (apple_local_stdio_fn_deprecation): Also apply to
+       _stdio.h.
+
 2024-08-01  Release Manager
 
        * GCC 14.2.0 released.
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index aff54fe7b983..aea0f3fafb8d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,48 @@
+2025-05-01  Iain Sandoe  <i...@sandoe.co.uk>
+
+       Backported from master:
+       2024-07-16  Iain Sandoe  <i...@sandoe.co.uk>
+
+       PR c++/115434
+       PR c++/110871
+       PR c++/110872
+       * gimplify.cc (struct gimplify_ctx): Add a flag to show we are
+       expending a handler.
+       (gimplify_expr): When we are expanding a handler, and the body
+       transforms might have re-written DECL_RESULT into a gimple var,
+       ensure that hander references to DECL_RESULT are also re-written
+       to refer to the gimple var.  When we are processing an EH_ELSE
+       expression, then add it if either of the cleanup slots is in
+       use.
+
+2025-05-01  Iain Sandoe  <i...@sandoe.co.uk>
+
+       Backported from master:
+       2025-04-15  Iain Sandoe  <i...@sandoe.co.uk>
+
+       * configure: Regenerate.
+       * configure.ac: Recognise PROJECT:ld-mmmm.nn.aa as an identifier
+       for Darwin's static linker.
+
+2025-05-01  Iain Sandoe  <iainsandoe@mini-05-seq.local>
+
+       Backported from master:
+       2025-04-15  Iain Sandoe  <iainsandoe@mini-05-seq.local>
+
+       PR target/116827
+       * ginclude/stddef.h: Undefine __PTRDIFF_T and __SIZE_T for module-
+       enabled c++ on Darwin/macOS platforms.
+
+2025-05-01  Iain Sandoe  <i...@sandoe.co.uk>
+           Andrew Pinski  <quic_apin...@quicinc.com>
+
+       PR target/119172
+       * config.in: Regenerate.
+       * config/darwin.h (DARWIN_PLATFORM_ID): Add the option to
+       use -macos_version_min where available.
+       * configure: Regenerate.
+       * configure.ac: Check for ld64 support of -macos_version_min.
+
 2025-04-30  Georg-Johann Lay  <a...@gjlay.de>
 
        * config/avr/avr.md (xload_<mode>_libgcc): Clobber R21, Z.
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index c95ab322f46b..863251542a4a 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20250501
+20250502
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a38e98423866..95b08917fc99 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,123 @@
+2025-05-01  Iain Sandoe  <i...@sandoe.co.uk>
+
+       Backported from master:
+       2024-08-02  Iain Sandoe  <i...@sandoe.co.uk>
+                   Arsen Arsenović  <ar...@aarsen.me>
+
+       PR c++/105475
+       * coroutines.cc (struct coroutine_info): Add from_address.
+       Carries the from_address member we looked up earlier.
+       (coro_resume_identifier): Remove.  Unused.
+       (coro_init_identifiers): Do not initialize the above.
+       (struct susp_frame_data): Remove unused members, provide a CTOR.
+       (void_coro_handle_address): New variable.  Contains the baselink
+       for the std::coroutine_handle<void>::address() instance method.
+       (get_handle_type_address): New function.  Looks up and validates
+       handle_type::address in a given handle_type.
+       (get_handle_type_from_address): New function.  Looks up and
+       validates handle_type::from_address in a given handle_type.
+       (coro_promise_type_found_p): Remove reliance on
+       coroutine_handle<> defaulting the promise type to void.  Store
+       get_handle_type_* results where appropriate.
+       (struct local_vars_frame_data): Add a CTOR.
+       (replace_continue): Look up expression type.
+       (get_coroutine_from_address): New helper.  Gets the
+       handle_type::from_address BASELINK from a coroutine_info.
+       (morph_fn_to_coro): Use susp_frame_data CTOR, and make the suspend
+       state hash map local to the morph function. Use CTOR for
+       local_vars_frame_data instead of brace init.
+       (build_actor_fn): Use the get_coroutine_from_address helper and
+       void_coro_handle_address.
+
+2025-05-01  Arsen Arsenović  <ar...@aarsen.me>
+
+       Backported from master:
+       2024-08-01  Arsen Arsenović  <ar...@aarsen.me>
+
+       PR c++/112341
+       * coroutines.cc (struct coroutine_info): Also cache the
+       traits type.
+       (ensure_coro_initialized): New function.  Makes sure we have
+       initialized the coroutine state successfully, or informs the
+       caller should it fail to do so.  Extracted from
+       coro_promise_type_found_p.
+       (coro_get_traits_class): New function.  Gets the (cached)
+       coroutine traits type for a given coroutine.  Extracted from
+       coro_promise_type_found_p and refactored to cache the result.
+       (coro_promise_type_found_p): Use the two functions above.
+       (build_template_co_await_expr): New function.  Builds a
+       CO_AWAIT_EXPR representing a CO_AWAIT_EXPR in a template
+       declaration.
+       (build_co_await): Use the above if processing_template_decl, and
+       give it a proper type.
+       (coro_dependent_p): New function.  Returns true iff its
+       argument is a type-dependent expression OR the current functions
+       traits class is type dependent.
+       (finish_co_await_expr): Defer expansion only in the case
+       coro_dependent_p returns true.
+       (finish_co_yield_expr): Ditto.
+       (finish_co_return_stmt): Ditto.
+       * pt.cc (type_dependent_expression_p): Do not treat
+       CO_AWAIT/CO_YIELD specially.
+
+2025-05-01  Arsen Arsenović  <ar...@aarsen.me>
+
+       Backported from master:
+       2024-07-30  Arsen Arsenović  <ar...@aarsen.me>
+
+       PR c++/115906
+       * parser.cc (cp_parser_unary_expression): Reject await
+       expressions if use of local variables is currently forbidden.
+       (cp_parser_yield_expression): Reject yield expressions if use of
+       local variables is currently forbidden.
+
+2025-05-01  Arsen Arsenovic  <ar...@aarsen.me>
+
+       Backported from master:
+       2024-07-30  Arsen Arsenovic  <ar...@aarsen.me>
+
+       PR c++/115906
+       * coroutines.cc (register_local_var_uses): Only process
+       PARM_DECL and VAR_DECLs.
+
+2025-05-01  Arsen Arsenović  <ar...@aarsen.me>
+
+       Backported from master:
+       2024-07-25  Arsen Arsenović  <ar...@aarsen.me>
+
+       PR c++/111728
+       * coroutines.cc (rewrite_param_uses): Skip unevaluated
+       subexpressions.
+
+2025-05-01  Iain Sandoe  <i...@sandoe.co.uk>
+
+       Backported from master:
+       2024-07-16  Iain Sandoe  <i...@sandoe.co.uk>
+
+       PR c++/115434
+       PR c++/110871
+       PR c++/110872
+       * constexpr.cc (cxx_eval_constant_expression): Handle EH_ELSE_EXPR.
+       * contracts.cc (finish_contract_attribute): Remove excess line.
+       (build_contract_condition_function): Post condition handlers are
+       void now.
+       (emit_postconditions_cleanup): Remove.
+       (emit_postconditions): New.
+       (add_pre_condition_fn_call): New.
+       (add_post_condition_fn_call): New.
+       (apply_preconditions): New.
+       (apply_postconditions): New.
+       (maybe_apply_function_contracts): New.
+       (apply_postcondition_to_return): Remove.
+       * contracts.h (apply_postcondition_to_return): Remove.
+       (maybe_apply_function_contracts): Add.
+       * coroutines.cc (coro_build_actor_or_destroy_function): Do not
+       copy contracts to coroutine helpers.
+       * decl.cc (finish_function): Handle wrapping a possibly
+       transformed function body in contract checks.
+       * typeck.cc (check_return_expr): Remove handling of post
+       conditions on return expressions.
+
 2025-04-30  Patrick Palka  <ppa...@redhat.com>
 
        Backported from master:
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 517f18b827d4..122689680cd4 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,88 @@
+2025-05-01  Iain Sandoe  <i...@sandoe.co.uk>
+
+       Backported from master:
+       2024-08-02  Iain Sandoe  <i...@sandoe.co.uk>
+                   Arsen Arsenović  <ar...@aarsen.me>
+
+       PR c++/105475
+       * g++.dg/coroutines/pr103868.C: Add std::coroutine_handle
+       members we check for now.
+       * g++.dg/coroutines/pr105287.C: Ditto.
+       * g++.dg/coroutines/pr105301.C: Ditto.
+       * g++.dg/coroutines/pr94528.C: Ditto.
+       * g++.dg/coroutines/pr94879-folly-1.C: Ditto.
+       * g++.dg/coroutines/pr94883-folly-2.C: Ditto.
+       * g++.dg/coroutines/pr98118.C: Ditto.
+       * g++.dg/coroutines/pr105475.C: New test.
+       * g++.dg/coroutines/pr105475-1.C: New test.
+       * g++.dg/coroutines/pr105475-2.C: New test.
+       * g++.dg/coroutines/pr105475-3.C: New test.
+       * g++.dg/coroutines/pr105475-4.C: New test.
+       * g++.dg/coroutines/pr105475-5.C: New test.
+       * g++.dg/coroutines/pr105475-6.C: New test.
+       * g++.dg/coroutines/pr105475-broken-spec.C: New test.
+       * g++.dg/coroutines/pr105475-broken-spec-2.C: New test.
+
+2025-05-01  Arsen Arsenović  <ar...@aarsen.me>
+
+       Backported from master:
+       2024-08-01  Arsen Arsenović  <ar...@aarsen.me>
+
+       PR c++/112341
+       * g++.dg/coroutines/pr112341-2.C: New test.
+       * g++.dg/coroutines/pr112341-3.C: New test.
+       * g++.dg/coroutines/torture/co-yield-03-tmpl-nondependent.C: New
+       test.
+       * g++.dg/coroutines/pr112341.C: New test.
+
+2025-05-01  Arsen Arsenović  <ar...@aarsen.me>
+
+       Backported from master:
+       2024-07-30  Arsen Arsenović  <ar...@aarsen.me>
+
+       PR c++/115906
+       * g++.dg/coroutines/pr115906-yield.C: New test.
+       * g++.dg/coroutines/pr115906.C: New test.
+       * g++.dg/coroutines/co-await-syntax-02-outside-fn.C: Don't rely
+       on default arguments.
+       * g++.dg/coroutines/co-yield-syntax-01-outside-fn.C: Ditto.
+
+2025-05-01  Arsen Arsenovic  <ar...@aarsen.me>
+
+       Backported from master:
+       2024-07-30  Arsen Arsenovic  <ar...@aarsen.me>
+
+       PR c++/115906
+       * g++.dg/coroutines/coro-function-decl.C: New test.
+
+2025-05-01  Arsen Arsenović  <ar...@aarsen.me>
+
+       Backported from master:
+       2024-07-25  Arsen Arsenović  <ar...@aarsen.me>
+
+       PR c++/111728
+       * g++.dg/coroutines/pr111728.C: New test.
+
+2025-05-01  Iain Sandoe  <i...@sandoe.co.uk>
+
+       Backported from master:
+       2024-07-16  Iain Sandoe  <i...@sandoe.co.uk>
+
+       PR c++/115434
+       PR c++/110871
+       PR c++/110872
+       * g++.dg/contracts/pr115434.C: New test.
+       * g++.dg/coroutines/pr110871.C: New test.
+       * g++.dg/coroutines/pr110872.C: New test.
+
+2025-05-01  Iain Sandoe  <i...@sandoe.co.uk>
+
+       Backported from master:
+       2025-03-13  Iain Sandoe  <i...@sandoe.co.uk>
+
+       * lib/gm2.exp: Arrange for a '-B' option to be added for the
+       libstdc++ paths on targets that need it.
+
 2025-04-30  Harald Anlauf  <anl...@gmx.de>
 
        Backported from master:
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index f5ff65369bde..257323ac8b90 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,14 @@
+2025-05-01  Mark Mentovai  <m...@mentovai.com>
+
+       Backported from master:
+       2024-09-24  Mark Mentovai  <m...@mentovai.com>
+
+       PR target/116809
+       * config.host: Build legacy libgcc_s.1 on hosts before macOS 10.12.
+       * config/i386/t-darwin: Remove reference to legacy libgcc_s.1
+       * config/rs6000/t-darwin: Likewise.
+       * config/t-darwin-libgccs1: New file.
+
 2025-03-27  Jakub Jelinek  <ja...@redhat.com>
 
        Backported from master:

Reply via email to