summaryrefslogtreecommitdiff
path: root/libgfortran/generated/parity_l4.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/parity_l4.c')
-rw-r--r--libgfortran/generated/parity_l4.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libgfortran/generated/parity_l4.c b/libgfortran/generated/parity_l4.c
index ba9d3fed347..b9f183a5b16 100644
--- a/libgfortran/generated/parity_l4.c
+++ b/libgfortran/generated/parity_l4.c
@@ -80,7 +80,7 @@ parity_l4 (gfc_array_l4 * 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_l4 (gfc_array_l4 * const restrict retarray,
alloc_size = sizeof (GFC_LOGICAL_4) * 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_l4 (gfc_array_l4 * const restrict retarray,
return;
}
- else
- retarray->data = internal_malloc_size (alloc_size);
}
else
{
@@ -132,8 +131,8 @@ parity_l4 (gfc_array_l4 * const restrict retarray,
return;
}
- base = array->data;
- dest = retarray->data;
+ base = array->base_addr;
+ dest = retarray->base_addr;
continue_loop = 1;
while (continue_loop)