]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/norm2_r10.c
Update copyright years.
[thirdparty/gcc.git] / libgfortran / generated / norm2_r10.c
index b6e5a4a51d300b64e3aaebe9b6bd5c9f018400fc..4079df263fd4c8f0f2fd4ffe6b6cbcc4909d2c1a 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the NORM2 intrinsic
-   Copyright (C) 2010-2018 Free Software Foundation, Inc.
+   Copyright (C) 2010-2020 Free Software Foundation, Inc.
    Contributed by Tobias Burnus  <burnus@net-b.de>
 
 This file is part of the GNU Fortran runtime library (libgfortran).
@@ -54,10 +54,6 @@ norm2_r10 (gfc_array_r10 * const restrict retarray,
   index_type dim;
   int continue_loop;
 
-#ifdef HAVE_BACK_ARG
-  assert(back == 0);
-#endif
-
   /* Make dim zero based to avoid confusion.  */
   rank = GFC_DESCRIPTOR_RANK (array) - 1;
   dim = (*pdim) - 1;
@@ -107,7 +103,7 @@ norm2_r10 (gfc_array_r10 * const restrict retarray,
        }
 
       retarray->offset = 0;
-      GFC_DTYPE_COPY_SETRANK(retarray,array,rank);
+      retarray->dtype.rank = rank;
 
       alloc_size = GFC_DESCRIPTOR_STRIDE(retarray,rank-1) * extent[rank-1];
 
@@ -159,8 +155,10 @@ norm2_r10 (gfc_array_r10 * const restrict retarray,
          *dest = 0;
        else
          {
+#if ! defined HAVE_BACK_ARG
            for (n = 0; n < len; n++, src += delta)
              {
+#endif
 
          if (*src != 0)
            {