https://gcc.gnu.org/g:86d54fabcff9f14350c26ad90f420b87c1e08c72

commit r15-11749-g86d54fabcff9f14350c26ad90f420b87c1e08c72
Author: GCC Administrator <[email protected]>
Date:   Thu Nov 19 00:19:27 2026 +0000

    Daily bump.

Diff:
---
 gcc/DATESTAMP           |  2 +-
 gcc/fortran/ChangeLog   |  7 +++++
 gcc/testsuite/ChangeLog |  7 +++++
 libgfortran/ChangeLog   | 73 +++++++++++++++++++++++++++++++++++++++++++++++++
 libgomp/ChangeLog       |  8 ++++++
 5 files changed, 96 insertions(+), 1 deletion(-)

diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index 0262007544f7..ea3af1a16e2b 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20261118
+20261119
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 58a2981293e7..d61205d8dc90 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,10 @@
+2026-11-18  Thomas Koenig  <[email protected]>
+
+       Backported from master:
+       2026-01-06  Thomas Koenig  <[email protected]>
+
+       * libgfortran.h: Add enum for new LIBERROR_RECURSIVE_IO.
+
 2026-11-12  Harald Anlauf  <[email protected]>
 
        Backported from master:
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0da2c33f5a64..eeb9ee6388e1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2026-11-18  Thomas Koenig  <[email protected]>
+
+       Backported from master:
+       2026-01-06  Thomas Koenig  <[email protected]>
+
+       * gfortran.dg/pr119136.f90: New test.
+
 2026-11-17  Jeff Law  <[email protected]>
 
        Backported from master:
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index ae903aa3952d..804b8c77bd9f 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,76 @@
+2026-11-18  Jerry DeLisle  <[email protected]>
+
+       Backported from master:
+       2026-11-02  Jerry DeLisle  <[email protected]>
+
+       PR libfortran/127893
+       * io/io.h (recycle_unit): Declare.
+       * io/unit.c (CACHE_SIZE): Increase to 64.
+       (CACHE_SLOT): New macro.
+       (unit_free_list): New variable.
+       (insert_unit): Reuse a unit from the free list.
+       (recycle_unit, probe_unit_cache, set_unit_cache): New functions.
+       (check_for_recursive): Probe the unit cache first.  Hold
+       unit_rwlock while searching the unit tree.
+       (get_gfc_unit): Probe the unit cache before taking unit_rwlock.
+       Use the direct-mapped cache.  Recycle a closed unit instead of
+       freeing it.
+       (close_unit_1): Clear the unit's cache slot.  Recycle the unit
+       instead of freeing it.
+       (close_units): Free the units on the free list.
+       * io/unix.c (find_file): Take unit_rwlock for writing and recycle
+       a closed unit instead of freeing it.
+       (flush_all_units): Recycle a closed unit instead of freeing it.
+
+2026-11-18  Thomas Koenig  <[email protected]>
+
+       Backported from master:
+       2026-01-09  Thomas Koenig  <[email protected]>
+
+       * io/io.h: Change type of self to intptr_t.
+       * io/async.h (LOCK_UNIT): Cast __gthread_self () to intptr_t.
+       (TRYLOCK_UNIT): Likewise.
+       (OWN_THREAD_ID): Likewise.
+
+2026-11-18  Thomas Koenig  <[email protected]>
+
+       Backported from master:
+       2026-01-08  Thomas Koenig  <[email protected]>
+
+       * io/async.h: DEBUG_ASYNC needs gtreads support.
+       (LOCK_UNIT): Only lock when there is pthreads support and it is active.
+       Otherwise, just set unit->self to 1.
+       (UNLOCK_UNIT): Only unlock when there is pthreads support and it is 
active.
+       Otherwise, just set unit->self to 0.
+       (TRYLOCK_UNIT): Only try locking when thee is pthreads support and it is
+       active.  Otherwise, return unit->self.
+       (OWN_THREAD_ID): New macro.
+       * io/io.h: gfc_unit's self is an int when there is no gthreads support.
+       * io/unit.c (check_for_recursive): Check for equality of unit which
+       locked to OWN_THREAD_ID.
+
+2026-11-18  Thomas Koenig  <[email protected]>
+
+       Backported from master:
+       2026-01-06  Thomas Koenig  <[email protected]>
+
+       * io/async.h (UNLOCK_UNIT): New macro.
+       (TRYLOCK_UNIT): New macro.
+       (LOCK_UNIT): New macro.
+       * io/io.h: Delete prototype for unused stash_internal_unit.
+       (check_for_recursive): Add prototype for this new function.
+       * io/transfer.c (data_transfer_init): Add call to new
+       check_for_recursive.
+       * io/unit.c (delete_unit): Fix comment.
+       (check_for_recursive): Add new function.
+       (init_units): Use new macros.
+       (close_unit_1): Likewise.
+       (unlock_unit): Likewise.
+       * io/unix.c (flush_all_units_1): Likewise.
+       (flush_all_units): Likewise.
+       * runtime/error.c (translate_error): : Add translation for
+       "Recursive I/O not allowed runtime error message.
+
 2026-10-15  Harald Anlauf  <[email protected]>
 
        Backported from master:
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index b1a55ef25d53..9b9740462579 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,11 @@
+2026-11-18  Jerry DeLisle  <[email protected]>
+
+       Backported from master:
+       2026-11-02  Jerry DeLisle  <[email protected]>
+
+       PR libfortran/127893
+       * testsuite/libgomp.fortran/unit-cache-1.f90: New test.
+
 2026-10-10  Jakub Jelinek  <[email protected]>
 
        Backported from master:

Reply via email to