summaryrefslogtreecommitdiffstats
path: root/libgfortran/generated/parity_l8.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/parity_l8.c')
-rw-r--r--libgfortran/generated/parity_l8.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libgfortran/generated/parity_l8.c b/libgfortran/generated/parity_l8.c
index 94166cadcb6..651350b62e0 100644
--- a/libgfortran/generated/parity_l8.c
+++ b/libgfortran/generated/parity_l8.c
@@ -80,7 +80,7 @@ parity_l8 (gfc_array_l8 * const restrict retarray,
extent[n] = 0;
}
- if (retarray->data == NULL)
+ if (retarray->base_addr == NULL)
{
size_t alloc_size, str;
@@ -101,6 +101,7 @@ parity_l8 (gfc_array_l8 * const restrict retarray,
alloc_size = sizeof (GFC_LOGICAL_8) * GFC_DESCRIPTOR_STRIDE(retarray,rank-1)
* extent[rank-1];
+ retarray->base_addr = internal_malloc_size (alloc_size);
if (alloc_size == 0)
{
/* Make sure we have a zero-sized array. */
@@ -108,8 +109,6 @@ parity_l8 (gfc_array_l8 * const restrict retarray,
return;
}
- else
- retarray->data = internal_malloc_size (alloc_size);
}
else
{
@@ -132,8 +131,8 @@ parity_l8 (gfc_array_l8 * const restrict retarray,
return;
}
- base = array->data;
- dest = retarray->data;
+ base = array->base_addr;
+ dest = retarray->base_addr;
continue_loop = 1;
while (continue_loop)
OpenPOWER on IntegriCloud