X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=libgfortran%2Fgenerated%2Fin_pack_r4.c;h=f48770eca08ab8fcad87a8ad37a5b255e80c1a18;hb=99dee82307f1e163e150c9c810452979994047ce;hp=d14aff70e941db2945bff2381ba6523ca30e4de2;hpb=818ab71a415cd234be092111a0aa5e812ec56434;p=thirdparty%2Fgcc.git diff --git a/libgfortran/generated/in_pack_r4.c b/libgfortran/generated/in_pack_r4.c index d14aff70e941..f48770eca08a 100644 --- a/libgfortran/generated/in_pack_r4.c +++ b/libgfortran/generated/in_pack_r4.c @@ -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 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 . */ #include "libgfortran.h" -#include -#include #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