]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/in_pack_r4.c
Update copyright years.
[thirdparty/gcc.git] / libgfortran / generated / in_pack_r4.c
index d14aff70e941db2945bff2381ba6523ca30e4de2..f48770eca08ab8fcad87a8ad37a5b255e80c1a18 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper function for repacking arrays.
-   Copyright (C) 2003-2016 Free Software Foundation, Inc.
+   Copyright (C) 2003-2021 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_REAL_4)
@@ -45,7 +43,6 @@ internal_pack_r4 (gfc_array_r4 * source)
   const GFC_REAL_4 *src;
   GFC_REAL_4 * restrict dest;
   GFC_REAL_4 *destptr;
-  int n;
   int packed;
 
   /* TODO: Investigate how we can figure out if this is a temporary
@@ -54,7 +51,7 @@ internal_pack_r4 (gfc_array_r4 * 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_r4 (gfc_array_r4 * 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