aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/generated/product_i4.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/product_i4.c')
-rw-r--r--libgfortran/generated/product_i4.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libgfortran/generated/product_i4.c b/libgfortran/generated/product_i4.c
index 246dc7e..ecf0470 100644
--- a/libgfortran/generated/product_i4.c
+++ b/libgfortran/generated/product_i4.c
@@ -51,6 +51,10 @@ product_i4 (gfc_array_i4 * const restrict retarray,
index_type dim;
int continue_loop;
+#ifdef HAVE_BACK_ARG
+ assert(back == 0);
+#endif
+
/* Make dim zero based to avoid confusion. */
rank = GFC_DESCRIPTOR_RANK (array) - 1;
dim = (*pdim) - 1;
@@ -218,6 +222,9 @@ mproduct_i4 (gfc_array_i4 * const restrict retarray,
index_type mdelta;
int mask_kind;
+#ifdef HAVE_BACK_ARG
+ assert (back == 0);
+#endif
dim = (*pdim) - 1;
rank = GFC_DESCRIPTOR_RANK (array) - 1;
@@ -399,7 +406,11 @@ sproduct_i4 (gfc_array_i4 * const restrict retarray,
if (*mask)
{
+#ifdef HAVE_BACK_ARG
+ product_i4 (retarray, array, pdim, back);
+#else
product_i4 (retarray, array, pdim);
+#endif
return;
}
/* Make dim zero based to avoid confusion. */