/* Implementation of the COUNT intrinsic
- Copyright 2002, 2007, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2002-2013 Free Software Foundation, Inc.
Contributed by Paul Brook <paul@nowt.org>
This file is part of the GNU Fortran runtime library (libgfortran).
extent[n] = 0;
}
- if (retarray->data == NULL)
+ if (retarray->base_addr == NULL)
{
size_t alloc_size, str;
return;
}
else
- retarray->data = internal_malloc_size (alloc_size);
+ retarray->base_addr = xmalloc (alloc_size);
}
else
{
return;
}
- base = array->data;
+ base = array->base_addr;
if (src_kind == 1 || src_kind == 2 || src_kind == 4 || src_kind == 8
#ifdef HAVE_GFC_LOGICAL_16
else
internal_error (NULL, "Funny sized logical array in COUNT intrinsic");
- dest = retarray->data;
+ dest = retarray->base_addr;
continue_loop = 1;
while (continue_loop)