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