https://gcc.gnu.org/g:bbffaabce57c7973038cece3b8eaa90fee2c50dd

commit bbffaabce57c7973038cece3b8eaa90fee2c50dd
Author: Mikael Morin <[email protected]>
Date:   Tue Sep 9 12:38:24 2025 +0200

    Correction m4/minloc2s.m4

Diff:
---
 libgfortran/m4/minloc2s.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libgfortran/m4/minloc2s.m4 b/libgfortran/m4/minloc2s.m4
index 39d4afef79e0..2d1a14814648 100644
--- a/libgfortran/m4/minloc2s.m4
+++ b/libgfortran/m4/minloc2s.m4
@@ -59,7 +59,7 @@ export_proto('name`'rtype_qual`_'atype_code`);
   if (extent <= 0)
     return 0;
 
-  sstride = GFC_DESCRIPTOR_STRIDE_BYTES(array,0) * len;
+  sstride = GFC_DESCRIPTOR_STRIDE_BYTES(array,0);
 
   ret = 1;
   src = array->base_addr;
@@ -101,7 +101,7 @@ m'name`'rtype_qual`_'atype_code` ('atype` * const restrict 
array,
   if (extent <= 0)
     return 0;
 
-  sstride = GFC_DESCRIPTOR_STRIDE_BYTES(array,0) * len;
+  sstride = GFC_DESCRIPTOR_STRIDE_BYTES(array,0);
 
   mask_kind = GFC_DESCRIPTOR_SIZE (mask);
   mbase = mask->base_addr;

Reply via email to