aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/generated/sum_r10.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/sum_r10.c')
-rw-r--r--libgfortran/generated/sum_r10.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libgfortran/generated/sum_r10.c b/libgfortran/generated/sum_r10.c
index f02f981..4e2071f 100644
--- a/libgfortran/generated/sum_r10.c
+++ b/libgfortran/generated/sum_r10.c
@@ -301,15 +301,13 @@ msum_r10 (gfc_array_r10 * const restrict retarray,
retarray->offset = 0;
retarray->dtype.rank = rank;
+ retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_REAL_10));
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_REAL_10));
-
}
else
{
@@ -466,14 +464,13 @@ ssum_r10 (gfc_array_r10 * const restrict retarray,
alloc_size = GFC_DESCRIPTOR_STRIDE(retarray,rank-1) * extent[rank-1];
+ retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_REAL_10));
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_REAL_10));
}
else
{