]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/in_pack_c10.c
Update copyright years.
[thirdparty/gcc.git] / libgfortran / generated / in_pack_c10.c
index 70c76d316ed56b419f6bd9d956f753009d6c81bb..efef02f0e0b59754c82518cb09378dfb5f218e8f 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper function for repacking arrays.
-   Copyright (C) 2003-2015 Free Software Foundation, Inc.
+   Copyright (C) 2003-2024 Free Software Foundation, Inc.
    Contributed by Paul Brook <paul@nowt.org>
 
 This file is part of the GNU Fortran runtime library (libgfortran).
@@ -24,8 +24,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 <http://www.gnu.org/licenses/>.  */
 
 #include "libgfortran.h"
-#include <stdlib.h>
-#include <assert.h>
 
 
 #if defined (HAVE_GFC_COMPLEX_10)
@@ -45,7 +43,6 @@ internal_pack_c10 (gfc_array_c10 * source)
   const GFC_COMPLEX_10 *src;
   GFC_COMPLEX_10 * restrict dest;
   GFC_COMPLEX_10 *destptr;
-  int n;
   int packed;
 
   /* TODO: Investigate how we can figure out if this is a temporary
@@ -54,7 +51,7 @@ internal_pack_c10 (gfc_array_c10 * source)
   dim = GFC_DESCRIPTOR_RANK (source);
   ssize = 1;
   packed = 1;
-  for (n = 0; n < dim; n++)
+  for (index_type n = 0; n < dim; n++)
     {
       count[n] = 0;
       stride[n] = GFC_DESCRIPTOR_STRIDE(source,n);
@@ -90,7 +87,7 @@ internal_pack_c10 (gfc_array_c10 * source)
       src += stride0;
       count[0]++;
       /* Advance to the next source element.  */
-      n = 0;
+      index_type n = 0;
       while (count[n] == extent[n])
         {
           /* When we get to the end of a dimension, reset it and increment