]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/generated/any_l8.c
Update copyright years.
[thirdparty/gcc.git] / libgfortran / generated / any_l8.c
index 6569cb597c468c4ccdf89c06be79927bd6760ddb..d5a995cb39e78ce1adbb01ea36372b8296703158 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the ANY intrinsic
-   Copyright (C) 2002-2018 Free Software Foundation, Inc.
+   Copyright (C) 2002-2024 Free Software Foundation, Inc.
    Contributed by Paul Brook <paul@nowt.org>
 
 This file is part of the GNU Fortran runtime library (libgfortran).
@@ -97,18 +97,13 @@ any_l8 (gfc_array_l8 * 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];
 
+      retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_LOGICAL_8));
       if (alloc_size == 0)
-       {
-         /* Make sure we have a zero-sized array.  */
-         GFC_DIMENSION_SET(retarray->dim[0], 0, -1, 1);
-         return;
-       }
-      else
-       retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_LOGICAL_8));
+       return;
     }
   else
     {