diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2006-06-06 11:10:09 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2006-06-06 11:10:09 +0300 |
commit | 6ff24d45dc7bf2691b6c2c3f9e9830360dc572a6 (patch) | |
tree | 88f8e06667bc01f3aee614a92f3130c18d864edd | |
parent | 0d3b0abea32c88c867948cd1786bd9df3634ac89 (diff) | |
download | gcc-6ff24d45dc7bf2691b6c2c3f9e9830360dc572a6.zip gcc-6ff24d45dc7bf2691b6c2c3f9e9830360dc572a6.tar.gz gcc-6ff24d45dc7bf2691b6c2c3f9e9830360dc572a6.tar.bz2 |
in_pack.m4: Add TODO comment about detecting temporaries...
2006-06-06 Janne Blomqvist <jb@gcc.gnu.org>
* m4/in_pack.m4: Add TODO comment about detecting temporaries,
remove test for stride 0, update copyright year.
* m4/transpose.m4: Remove test for stride 0, update copyright
year.
* m4/iforeach.m4: Likewise.
* m4/shape.m4: Likewise.
* m4/in_unpack.m4: Likewise.
* m4/reshape.m4: Likewise.
* m4/ifunction.m4: Likewise.
* m4/matmul.m4: Likewise.
* m4/matmull.m4: Likewise.
* intrinsics/etime.c: Likewise.
* intrinsics/transpose_generic.c: Likewise.
* intrinsics/spread_generic.c: Likewise.
* intrinsics/stat.c: Likewise.
* intrinsics/reshape_generic.c: Likewise.
* intrinsics/random.c: Likewise.
* generated/*: Regenerated from above changed m4 files.
From-SVN: r114424
200 files changed, 99 insertions, 3282 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 227f61b..bd1aecb 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,24 @@ +2006-06-06 Janne Blomqvist <jb@gcc.gnu.org> + + * m4/in_pack.m4: Add TODO comment about detecting temporaries, + remove test for stride 0, update copyright year. + * m4/transpose.m4: Remove test for stride 0, update copyright + year. + * m4/iforeach.m4: Likewise. + * m4/shape.m4: Likewise. + * m4/in_unpack.m4: Likewise. + * m4/reshape.m4: Likewise. + * m4/ifunction.m4: Likewise. + * m4/matmul.m4: Likewise. + * m4/matmull.m4: Likewise. + * intrinsics/etime.c: Likewise. + * intrinsics/transpose_generic.c: Likewise. + * intrinsics/spread_generic.c: Likewise. + * intrinsics/stat.c: Likewise. + * intrinsics/reshape_generic.c: Likewise. + * intrinsics/random.c: Likewise. + * generated/*: Regenerated from above changed m4 files. + 2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/27757 diff --git a/libgfortran/generated/all_l16.c b/libgfortran/generated/all_l16.c index 78df909..91f342a 100644 --- a/libgfortran/generated/all_l16.c +++ b/libgfortran/generated/all_l16.c @@ -62,11 +62,6 @@ all_l16 (gfc_array_l16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ all_l16 (gfc_array_l16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/all_l4.c b/libgfortran/generated/all_l4.c index 0a6f44d..7cb4ae1 100644 --- a/libgfortran/generated/all_l4.c +++ b/libgfortran/generated/all_l4.c @@ -62,11 +62,6 @@ all_l4 (gfc_array_l4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ all_l4 (gfc_array_l4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/all_l8.c b/libgfortran/generated/all_l8.c index 74a3731..bc3928a 100644 --- a/libgfortran/generated/all_l8.c +++ b/libgfortran/generated/all_l8.c @@ -62,11 +62,6 @@ all_l8 (gfc_array_l8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ all_l8 (gfc_array_l8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/any_l16.c b/libgfortran/generated/any_l16.c index 1146880..e4fce4b 100644 --- a/libgfortran/generated/any_l16.c +++ b/libgfortran/generated/any_l16.c @@ -62,11 +62,6 @@ any_l16 (gfc_array_l16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ any_l16 (gfc_array_l16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/any_l4.c b/libgfortran/generated/any_l4.c index 4a650f0..d026abd 100644 --- a/libgfortran/generated/any_l4.c +++ b/libgfortran/generated/any_l4.c @@ -62,11 +62,6 @@ any_l4 (gfc_array_l4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ any_l4 (gfc_array_l4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/any_l8.c b/libgfortran/generated/any_l8.c index ed45e79..232ebfa 100644 --- a/libgfortran/generated/any_l8.c +++ b/libgfortran/generated/any_l8.c @@ -62,11 +62,6 @@ any_l8 (gfc_array_l8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ any_l8 (gfc_array_l8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_16_l16.c b/libgfortran/generated/count_16_l16.c index 5d27d65..c3402a0 100644 --- a/libgfortran/generated/count_16_l16.c +++ b/libgfortran/generated/count_16_l16.c @@ -62,11 +62,6 @@ count_16_l16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_16_l16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_16_l4.c b/libgfortran/generated/count_16_l4.c index b491e90..433096d 100644 --- a/libgfortran/generated/count_16_l4.c +++ b/libgfortran/generated/count_16_l4.c @@ -62,11 +62,6 @@ count_16_l4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_16_l4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_16_l8.c b/libgfortran/generated/count_16_l8.c index 03ff91f..4a363dc 100644 --- a/libgfortran/generated/count_16_l8.c +++ b/libgfortran/generated/count_16_l8.c @@ -62,11 +62,6 @@ count_16_l8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_16_l8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_4_l16.c b/libgfortran/generated/count_4_l16.c index bad5d5e..df29e33 100644 --- a/libgfortran/generated/count_4_l16.c +++ b/libgfortran/generated/count_4_l16.c @@ -62,11 +62,6 @@ count_4_l16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_4_l16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_4_l4.c b/libgfortran/generated/count_4_l4.c index 440a549..fcbe081 100644 --- a/libgfortran/generated/count_4_l4.c +++ b/libgfortran/generated/count_4_l4.c @@ -62,11 +62,6 @@ count_4_l4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_4_l4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_4_l8.c b/libgfortran/generated/count_4_l8.c index 4992b77..2563e88 100644 --- a/libgfortran/generated/count_4_l8.c +++ b/libgfortran/generated/count_4_l8.c @@ -62,11 +62,6 @@ count_4_l8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_4_l8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_8_l16.c b/libgfortran/generated/count_8_l16.c index ec23677..3b8172d 100644 --- a/libgfortran/generated/count_8_l16.c +++ b/libgfortran/generated/count_8_l16.c @@ -62,11 +62,6 @@ count_8_l16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_8_l16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_8_l4.c b/libgfortran/generated/count_8_l4.c index 97ae10e..a322b1b 100644 --- a/libgfortran/generated/count_8_l4.c +++ b/libgfortran/generated/count_8_l4.c @@ -62,11 +62,6 @@ count_8_l4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_8_l4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/count_8_l8.c b/libgfortran/generated/count_8_l8.c index b2d06b9..48a60b1 100644 --- a/libgfortran/generated/count_8_l8.c +++ b/libgfortran/generated/count_8_l8.c @@ -62,11 +62,6 @@ count_8_l8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ count_8_l8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } diff --git a/libgfortran/generated/in_pack_c10.c b/libgfortran/generated/in_pack_c10.c index 5a91d97..1c51349 100644 --- a/libgfortran/generated/in_pack_c10.c +++ b/libgfortran/generated/in_pack_c10.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -53,11 +53,8 @@ internal_pack_c10 (gfc_array_c10 * source) int n; int packed; - if (source->dim[0].stride == 0) - { - source->dim[0].stride = 1; - return source->data; - } + /* TODO: Investigate how we can figure out if this is a temporary + since the stride=0 thing has been removed from the frontend. */ dim = GFC_DESCRIPTOR_RANK (source); ssize = 1; diff --git a/libgfortran/generated/in_pack_c16.c b/libgfortran/generated/in_pack_c16.c index d52249b..ca6af47 100644 --- a/libgfortran/generated/in_pack_c16.c +++ b/libgfortran/generated/in_pack_c16.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -53,11 +53,8 @@ internal_pack_c16 (gfc_array_c16 * source) int n; int packed; - if (source->dim[0].stride == 0) - { - source->dim[0].stride = 1; - return source->data; - } + /* TODO: Investigate how we can figure out if this is a temporary + since the stride=0 thing has been removed from the frontend. */ dim = GFC_DESCRIPTOR_RANK (source); ssize = 1; diff --git a/libgfortran/generated/in_pack_c4.c b/libgfortran/generated/in_pack_c4.c index a4fd709..f16392b 100644 --- a/libgfortran/generated/in_pack_c4.c +++ b/libgfortran/generated/in_pack_c4.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -53,11 +53,8 @@ internal_pack_c4 (gfc_array_c4 * source) int n; int packed; - if (source->dim[0].stride == 0) - { - source->dim[0].stride = 1; - return source->data; - } + /* TODO: Investigate how we can figure out if this is a temporary + since the stride=0 thing has been removed from the frontend. */ dim = GFC_DESCRIPTOR_RANK (source); ssize = 1; diff --git a/libgfortran/generated/in_pack_c8.c b/libgfortran/generated/in_pack_c8.c index a3c6214..abcf571 100644 --- a/libgfortran/generated/in_pack_c8.c +++ b/libgfortran/generated/in_pack_c8.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -53,11 +53,8 @@ internal_pack_c8 (gfc_array_c8 * source) int n; int packed; - if (source->dim[0].stride == 0) - { - source->dim[0].stride = 1; - return source->data; - } + /* TODO: Investigate how we can figure out if this is a temporary + since the stride=0 thing has been removed from the frontend. */ dim = GFC_DESCRIPTOR_RANK (source); ssize = 1; diff --git a/libgfortran/generated/in_pack_i16.c b/libgfortran/generated/in_pack_i16.c index b8c6c29..205c102 100644 --- a/libgfortran/generated/in_pack_i16.c +++ b/libgfortran/generated/in_pack_i16.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -53,11 +53,8 @@ internal_pack_16 (gfc_array_i16 * source) int n; int packed; - if (source->dim[0].stride == 0) - { - source->dim[0].stride = 1; - return source->data; - } + /* TODO: Investigate how we can figure out if this is a temporary + since the stride=0 thing has been removed from the frontend. */ dim = GFC_DESCRIPTOR_RANK (source); ssize = 1; diff --git a/libgfortran/generated/in_pack_i4.c b/libgfortran/generated/in_pack_i4.c index 4452c64..0d2ef2d 100644 --- a/libgfortran/generated/in_pack_i4.c +++ b/libgfortran/generated/in_pack_i4.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -53,11 +53,8 @@ internal_pack_4 (gfc_array_i4 * source) int n; int packed; - if (source->dim[0].stride == 0) - { - source->dim[0].stride = 1; - return source->data; - } + /* TODO: Investigate how we can figure out if this is a temporary + since the stride=0 thing has been removed from the frontend. */ dim = GFC_DESCRIPTOR_RANK (source); ssize = 1; diff --git a/libgfortran/generated/in_pack_i8.c b/libgfortran/generated/in_pack_i8.c index 35e4842..b9be8b3 100644 --- a/libgfortran/generated/in_pack_i8.c +++ b/libgfortran/generated/in_pack_i8.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -53,11 +53,8 @@ internal_pack_8 (gfc_array_i8 * source) int n; int packed; - if (source->dim[0].stride == 0) - { - source->dim[0].stride = 1; - return source->data; - } + /* TODO: Investigate how we can figure out if this is a temporary + since the stride=0 thing has been removed from the frontend. */ dim = GFC_DESCRIPTOR_RANK (source); ssize = 1; diff --git a/libgfortran/generated/in_unpack_c10.c b/libgfortran/generated/in_unpack_c10.c index d7983f9..d4fe858 100644 --- a/libgfortran/generated/in_unpack_c10.c +++ b/libgfortran/generated/in_unpack_c10.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -52,9 +52,6 @@ internal_unpack_c10 (gfc_array_c10 * d, const GFC_COMPLEX_10 * src) if (src == dest || !src) return; - if (d->dim[0].stride == 0) - d->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (d); dsize = 1; for (n = 0; n < dim; n++) diff --git a/libgfortran/generated/in_unpack_c16.c b/libgfortran/generated/in_unpack_c16.c index 9f1baf2..ad5fa07 100644 --- a/libgfortran/generated/in_unpack_c16.c +++ b/libgfortran/generated/in_unpack_c16.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -52,9 +52,6 @@ internal_unpack_c16 (gfc_array_c16 * d, const GFC_COMPLEX_16 * src) if (src == dest || !src) return; - if (d->dim[0].stride == 0) - d->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (d); dsize = 1; for (n = 0; n < dim; n++) diff --git a/libgfortran/generated/in_unpack_c4.c b/libgfortran/generated/in_unpack_c4.c index 965b53a..de1b486 100644 --- a/libgfortran/generated/in_unpack_c4.c +++ b/libgfortran/generated/in_unpack_c4.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -52,9 +52,6 @@ internal_unpack_c4 (gfc_array_c4 * d, const GFC_COMPLEX_4 * src) if (src == dest || !src) return; - if (d->dim[0].stride == 0) - d->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (d); dsize = 1; for (n = 0; n < dim; n++) diff --git a/libgfortran/generated/in_unpack_c8.c b/libgfortran/generated/in_unpack_c8.c index b5d747a..70f22e4 100644 --- a/libgfortran/generated/in_unpack_c8.c +++ b/libgfortran/generated/in_unpack_c8.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -52,9 +52,6 @@ internal_unpack_c8 (gfc_array_c8 * d, const GFC_COMPLEX_8 * src) if (src == dest || !src) return; - if (d->dim[0].stride == 0) - d->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (d); dsize = 1; for (n = 0; n < dim; n++) diff --git a/libgfortran/generated/in_unpack_i16.c b/libgfortran/generated/in_unpack_i16.c index 680b5dd..b64b8bd 100644 --- a/libgfortran/generated/in_unpack_i16.c +++ b/libgfortran/generated/in_unpack_i16.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -52,9 +52,6 @@ internal_unpack_16 (gfc_array_i16 * d, const GFC_INTEGER_16 * src) if (src == dest || !src) return; - if (d->dim[0].stride == 0) - d->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (d); dsize = 1; for (n = 0; n < dim; n++) diff --git a/libgfortran/generated/in_unpack_i4.c b/libgfortran/generated/in_unpack_i4.c index 6cf7bd2..0136349 100644 --- a/libgfortran/generated/in_unpack_i4.c +++ b/libgfortran/generated/in_unpack_i4.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -52,9 +52,6 @@ internal_unpack_4 (gfc_array_i4 * d, const GFC_INTEGER_4 * src) if (src == dest || !src) return; - if (d->dim[0].stride == 0) - d->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (d); dsize = 1; for (n = 0; n < dim; n++) diff --git a/libgfortran/generated/in_unpack_i8.c b/libgfortran/generated/in_unpack_i8.c index 1d4f0e4..3f21843 100644 --- a/libgfortran/generated/in_unpack_i8.c +++ b/libgfortran/generated/in_unpack_i8.c @@ -1,5 +1,5 @@ /* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -52,9 +52,6 @@ internal_unpack_8 (gfc_array_i8 * d, const GFC_INTEGER_8 * src) if (src == dest || !src) return; - if (d->dim[0].stride == 0) - d->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (d); dsize = 1; for (n = 0; n < dim; n++) diff --git a/libgfortran/generated/matmul_c10.c b/libgfortran/generated/matmul_c10.c index 93032f8..72c3a7d 100644 --- a/libgfortran/generated/matmul_c10.c +++ b/libgfortran/generated/matmul_c10.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_c10 (gfc_array_c10 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_c16.c b/libgfortran/generated/matmul_c16.c index 03ad0f7..d87eea1 100644 --- a/libgfortran/generated/matmul_c16.c +++ b/libgfortran/generated/matmul_c16.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_c16 (gfc_array_c16 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_c4.c b/libgfortran/generated/matmul_c4.c index 84c94cd..339c9c0 100644 --- a/libgfortran/generated/matmul_c4.c +++ b/libgfortran/generated/matmul_c4.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_c4 (gfc_array_c4 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_c8.c b/libgfortran/generated/matmul_c8.c index f491ea0..13a9e37 100644 --- a/libgfortran/generated/matmul_c8.c +++ b/libgfortran/generated/matmul_c8.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_c8 (gfc_array_c8 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_i16.c b/libgfortran/generated/matmul_i16.c index 50d87bb..b6136ef 100644 --- a/libgfortran/generated/matmul_i16.c +++ b/libgfortran/generated/matmul_i16.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_i16 (gfc_array_i16 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_i4.c b/libgfortran/generated/matmul_i4.c index 12ac630..4cffcf0 100644 --- a/libgfortran/generated/matmul_i4.c +++ b/libgfortran/generated/matmul_i4.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_i4 (gfc_array_i4 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_i8.c b/libgfortran/generated/matmul_i8.c index 82b2229..c4fb0c7 100644 --- a/libgfortran/generated/matmul_i8.c +++ b/libgfortran/generated/matmul_i8.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_i8 (gfc_array_i8 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_l16.c b/libgfortran/generated/matmul_l16.c index caa1b11..7e7f2f9 100644 --- a/libgfortran/generated/matmul_l16.c +++ b/libgfortran/generated/matmul_l16.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -112,13 +112,6 @@ matmul_l16 (gfc_array_l16 * const restrict retarray, } dest = retarray->data; - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_l4.c b/libgfortran/generated/matmul_l4.c index 9a89113..8428ff9 100644 --- a/libgfortran/generated/matmul_l4.c +++ b/libgfortran/generated/matmul_l4.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -112,13 +112,6 @@ matmul_l4 (gfc_array_l4 * const restrict retarray, } dest = retarray->data; - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_l8.c b/libgfortran/generated/matmul_l8.c index bd01f16..76dee0a 100644 --- a/libgfortran/generated/matmul_l8.c +++ b/libgfortran/generated/matmul_l8.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -112,13 +112,6 @@ matmul_l8 (gfc_array_l8 * const restrict retarray, } dest = retarray->data; - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_r10.c b/libgfortran/generated/matmul_r10.c index 73e1e327..e90ac57 100644 --- a/libgfortran/generated/matmul_r10.c +++ b/libgfortran/generated/matmul_r10.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_r10 (gfc_array_r10 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_r16.c b/libgfortran/generated/matmul_r16.c index 099c6bf..3823fa6 100644 --- a/libgfortran/generated/matmul_r16.c +++ b/libgfortran/generated/matmul_r16.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_r16 (gfc_array_r16 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_r4.c b/libgfortran/generated/matmul_r4.c index ca6a4a4..3757b65 100644 --- a/libgfortran/generated/matmul_r4.c +++ b/libgfortran/generated/matmul_r4.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_r4 (gfc_array_r4 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/matmul_r8.c b/libgfortran/generated/matmul_r8.c index 1844cdc..2bd607c 100644 --- a/libgfortran/generated/matmul_r8.c +++ b/libgfortran/generated/matmul_r8.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -120,15 +120,6 @@ matmul_r8 (gfc_array_r8 * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - if (GFC_DESCRIPTOR_RANK (retarray) == 1) { diff --git a/libgfortran/generated/maxloc0_16_i16.c b/libgfortran/generated/maxloc0_16_i16.c index ab341d8..1883557 100644 --- a/libgfortran/generated/maxloc0_16_i16.c +++ b/libgfortran/generated/maxloc0_16_i16.c @@ -76,16 +76,8 @@ maxloc0_16_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_16_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_16_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_16_i4.c b/libgfortran/generated/maxloc0_16_i4.c index 51bee31..187a6c8 100644 --- a/libgfortran/generated/maxloc0_16_i4.c +++ b/libgfortran/generated/maxloc0_16_i4.c @@ -76,16 +76,8 @@ maxloc0_16_i4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_16_i4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_16_i4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_16_i8.c b/libgfortran/generated/maxloc0_16_i8.c index dd8fb46..c51a70b 100644 --- a/libgfortran/generated/maxloc0_16_i8.c +++ b/libgfortran/generated/maxloc0_16_i8.c @@ -76,16 +76,8 @@ maxloc0_16_i8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_16_i8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_16_i8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_16_r10.c b/libgfortran/generated/maxloc0_16_r10.c index 793885d..75c3f7a 100644 --- a/libgfortran/generated/maxloc0_16_r10.c +++ b/libgfortran/generated/maxloc0_16_r10.c @@ -76,16 +76,8 @@ maxloc0_16_r10 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_16_r10 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_16_r10 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_16_r16.c b/libgfortran/generated/maxloc0_16_r16.c index e3d0c7f..4754bbd 100644 --- a/libgfortran/generated/maxloc0_16_r16.c +++ b/libgfortran/generated/maxloc0_16_r16.c @@ -76,16 +76,8 @@ maxloc0_16_r16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_16_r16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_16_r16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_16_r4.c b/libgfortran/generated/maxloc0_16_r4.c index eedeaff..007932e 100644 --- a/libgfortran/generated/maxloc0_16_r4.c +++ b/libgfortran/generated/maxloc0_16_r4.c @@ -76,16 +76,8 @@ maxloc0_16_r4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_16_r4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_16_r4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_16_r8.c b/libgfortran/generated/maxloc0_16_r8.c index 0e93c2a..6c004b0 100644 --- a/libgfortran/generated/maxloc0_16_r8.c +++ b/libgfortran/generated/maxloc0_16_r8.c @@ -76,16 +76,8 @@ maxloc0_16_r8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_16_r8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_16_r8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_4_i16.c b/libgfortran/generated/maxloc0_4_i16.c index 01d7870..a8b3bab 100644 --- a/libgfortran/generated/maxloc0_4_i16.c +++ b/libgfortran/generated/maxloc0_4_i16.c @@ -76,16 +76,8 @@ maxloc0_4_i16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_4_i16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_4_i16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_4_i4.c b/libgfortran/generated/maxloc0_4_i4.c index 7b1260c..8fe240c 100644 --- a/libgfortran/generated/maxloc0_4_i4.c +++ b/libgfortran/generated/maxloc0_4_i4.c @@ -76,16 +76,8 @@ maxloc0_4_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_4_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_4_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_4_i8.c b/libgfortran/generated/maxloc0_4_i8.c index 18b81c6..dd816de 100644 --- a/libgfortran/generated/maxloc0_4_i8.c +++ b/libgfortran/generated/maxloc0_4_i8.c @@ -76,16 +76,8 @@ maxloc0_4_i8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_4_i8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_4_i8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_4_r10.c b/libgfortran/generated/maxloc0_4_r10.c index 59e521c..db829a9 100644 --- a/libgfortran/generated/maxloc0_4_r10.c +++ b/libgfortran/generated/maxloc0_4_r10.c @@ -76,16 +76,8 @@ maxloc0_4_r10 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_4_r10 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_4_r10 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_4_r16.c b/libgfortran/generated/maxloc0_4_r16.c index 18bf738..de37c03 100644 --- a/libgfortran/generated/maxloc0_4_r16.c +++ b/libgfortran/generated/maxloc0_4_r16.c @@ -76,16 +76,8 @@ maxloc0_4_r16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_4_r16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_4_r16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_4_r4.c b/libgfortran/generated/maxloc0_4_r4.c index daa379c..b69c01f 100644 --- a/libgfortran/generated/maxloc0_4_r4.c +++ b/libgfortran/generated/maxloc0_4_r4.c @@ -76,16 +76,8 @@ maxloc0_4_r4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_4_r4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_4_r4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_4_r8.c b/libgfortran/generated/maxloc0_4_r8.c index 063fed0..8021d1b 100644 --- a/libgfortran/generated/maxloc0_4_r8.c +++ b/libgfortran/generated/maxloc0_4_r8.c @@ -76,16 +76,8 @@ maxloc0_4_r8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_4_r8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_4_r8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_8_i16.c b/libgfortran/generated/maxloc0_8_i16.c index 1e1dbf2..14ce142 100644 --- a/libgfortran/generated/maxloc0_8_i16.c +++ b/libgfortran/generated/maxloc0_8_i16.c @@ -76,16 +76,8 @@ maxloc0_8_i16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_8_i16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_8_i16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_8_i4.c b/libgfortran/generated/maxloc0_8_i4.c index 2a08cd8..df1a27f 100644 --- a/libgfortran/generated/maxloc0_8_i4.c +++ b/libgfortran/generated/maxloc0_8_i4.c @@ -76,16 +76,8 @@ maxloc0_8_i4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_8_i4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_8_i4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_8_i8.c b/libgfortran/generated/maxloc0_8_i8.c index b17a445..3400587 100644 --- a/libgfortran/generated/maxloc0_8_i8.c +++ b/libgfortran/generated/maxloc0_8_i8.c @@ -76,16 +76,8 @@ maxloc0_8_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_8_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_8_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_8_r10.c b/libgfortran/generated/maxloc0_8_r10.c index 63c1467..70860c8 100644 --- a/libgfortran/generated/maxloc0_8_r10.c +++ b/libgfortran/generated/maxloc0_8_r10.c @@ -76,16 +76,8 @@ maxloc0_8_r10 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_8_r10 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_8_r10 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_8_r16.c b/libgfortran/generated/maxloc0_8_r16.c index c1fe42a..e9ef7ef 100644 --- a/libgfortran/generated/maxloc0_8_r16.c +++ b/libgfortran/generated/maxloc0_8_r16.c @@ -76,16 +76,8 @@ maxloc0_8_r16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_8_r16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_8_r16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_8_r4.c b/libgfortran/generated/maxloc0_8_r4.c index 58de2ca..7dede45 100644 --- a/libgfortran/generated/maxloc0_8_r4.c +++ b/libgfortran/generated/maxloc0_8_r4.c @@ -76,16 +76,8 @@ maxloc0_8_r4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_8_r4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_8_r4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc0_8_r8.c b/libgfortran/generated/maxloc0_8_r8.c index e286a81..73531d7 100644 --- a/libgfortran/generated/maxloc0_8_r8.c +++ b/libgfortran/generated/maxloc0_8_r8.c @@ -76,16 +76,8 @@ maxloc0_8_r8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mmaxloc0_8_r8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ smaxloc0_8_r8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_16_i16.c b/libgfortran/generated/maxloc1_16_i16.c index 9f6408b..7ba4fa5 100644 --- a/libgfortran/generated/maxloc1_16_i16.c +++ b/libgfortran/generated/maxloc1_16_i16.c @@ -64,11 +64,6 @@ maxloc1_16_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_16_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_16_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_16_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_16_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_16_i4.c b/libgfortran/generated/maxloc1_16_i4.c index 7810033..af438c7 100644 --- a/libgfortran/generated/maxloc1_16_i4.c +++ b/libgfortran/generated/maxloc1_16_i4.c @@ -64,11 +64,6 @@ maxloc1_16_i4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_16_i4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_16_i4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_16_i4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_16_i4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_16_i8.c b/libgfortran/generated/maxloc1_16_i8.c index 6c6a790..63de2a1 100644 --- a/libgfortran/generated/maxloc1_16_i8.c +++ b/libgfortran/generated/maxloc1_16_i8.c @@ -64,11 +64,6 @@ maxloc1_16_i8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_16_i8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_16_i8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_16_i8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_16_i8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_16_r10.c b/libgfortran/generated/maxloc1_16_r10.c index d122223..e78658d 100644 --- a/libgfortran/generated/maxloc1_16_r10.c +++ b/libgfortran/generated/maxloc1_16_r10.c @@ -64,11 +64,6 @@ maxloc1_16_r10 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_16_r10 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_16_r10 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_16_r10 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_16_r10 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_16_r16.c b/libgfortran/generated/maxloc1_16_r16.c index 18d1225..c92dfc9 100644 --- a/libgfortran/generated/maxloc1_16_r16.c +++ b/libgfortran/generated/maxloc1_16_r16.c @@ -64,11 +64,6 @@ maxloc1_16_r16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_16_r16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_16_r16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_16_r16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_16_r16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_16_r4.c b/libgfortran/generated/maxloc1_16_r4.c index f5fbcac..dbe14d7 100644 --- a/libgfortran/generated/maxloc1_16_r4.c +++ b/libgfortran/generated/maxloc1_16_r4.c @@ -64,11 +64,6 @@ maxloc1_16_r4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_16_r4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_16_r4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_16_r4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_16_r4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_16_r8.c b/libgfortran/generated/maxloc1_16_r8.c index 40922e3..2dd3066 100644 --- a/libgfortran/generated/maxloc1_16_r8.c +++ b/libgfortran/generated/maxloc1_16_r8.c @@ -64,11 +64,6 @@ maxloc1_16_r8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_16_r8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_16_r8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_16_r8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_16_r8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_4_i16.c b/libgfortran/generated/maxloc1_4_i16.c index 1dfb06d..d3609fb 100644 --- a/libgfortran/generated/maxloc1_4_i16.c +++ b/libgfortran/generated/maxloc1_4_i16.c @@ -64,11 +64,6 @@ maxloc1_4_i16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_4_i16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_4_i16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_4_i16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_4_i16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_4_i4.c b/libgfortran/generated/maxloc1_4_i4.c index ae016ac..d4f53a4 100644 --- a/libgfortran/generated/maxloc1_4_i4.c +++ b/libgfortran/generated/maxloc1_4_i4.c @@ -64,11 +64,6 @@ maxloc1_4_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_4_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_4_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_4_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_4_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_4_i8.c b/libgfortran/generated/maxloc1_4_i8.c index d55059b..71e8045 100644 --- a/libgfortran/generated/maxloc1_4_i8.c +++ b/libgfortran/generated/maxloc1_4_i8.c @@ -64,11 +64,6 @@ maxloc1_4_i8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_4_i8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_4_i8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_4_i8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_4_i8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_4_r10.c b/libgfortran/generated/maxloc1_4_r10.c index 70a0b7b..3c37659 100644 --- a/libgfortran/generated/maxloc1_4_r10.c +++ b/libgfortran/generated/maxloc1_4_r10.c @@ -64,11 +64,6 @@ maxloc1_4_r10 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_4_r10 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_4_r10 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_4_r10 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_4_r10 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_4_r16.c b/libgfortran/generated/maxloc1_4_r16.c index e3abb9c..6c98b6f 100644 --- a/libgfortran/generated/maxloc1_4_r16.c +++ b/libgfortran/generated/maxloc1_4_r16.c @@ -64,11 +64,6 @@ maxloc1_4_r16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_4_r16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_4_r16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_4_r16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_4_r16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_4_r4.c b/libgfortran/generated/maxloc1_4_r4.c index bcecc57..e9b8d45 100644 --- a/libgfortran/generated/maxloc1_4_r4.c +++ b/libgfortran/generated/maxloc1_4_r4.c @@ -64,11 +64,6 @@ maxloc1_4_r4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_4_r4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_4_r4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_4_r4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_4_r4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_4_r8.c b/libgfortran/generated/maxloc1_4_r8.c index 5bcf032..4651e37 100644 --- a/libgfortran/generated/maxloc1_4_r8.c +++ b/libgfortran/generated/maxloc1_4_r8.c @@ -64,11 +64,6 @@ maxloc1_4_r8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_4_r8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_4_r8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_4_r8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_4_r8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_8_i16.c b/libgfortran/generated/maxloc1_8_i16.c index 8d5491a..811bb29 100644 --- a/libgfortran/generated/maxloc1_8_i16.c +++ b/libgfortran/generated/maxloc1_8_i16.c @@ -64,11 +64,6 @@ maxloc1_8_i16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_8_i16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_8_i16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_8_i16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_8_i16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_8_i4.c b/libgfortran/generated/maxloc1_8_i4.c index 5c187e2..459d87d 100644 --- a/libgfortran/generated/maxloc1_8_i4.c +++ b/libgfortran/generated/maxloc1_8_i4.c @@ -64,11 +64,6 @@ maxloc1_8_i4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_8_i4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_8_i4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_8_i4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_8_i4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_8_i8.c b/libgfortran/generated/maxloc1_8_i8.c index ea12317..da054c0 100644 --- a/libgfortran/generated/maxloc1_8_i8.c +++ b/libgfortran/generated/maxloc1_8_i8.c @@ -64,11 +64,6 @@ maxloc1_8_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_8_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_8_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_8_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_8_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_8_r10.c b/libgfortran/generated/maxloc1_8_r10.c index 40972e6..94d538e 100644 --- a/libgfortran/generated/maxloc1_8_r10.c +++ b/libgfortran/generated/maxloc1_8_r10.c @@ -64,11 +64,6 @@ maxloc1_8_r10 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_8_r10 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_8_r10 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_8_r10 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_8_r10 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_8_r16.c b/libgfortran/generated/maxloc1_8_r16.c index 11f3e05..01b237e 100644 --- a/libgfortran/generated/maxloc1_8_r16.c +++ b/libgfortran/generated/maxloc1_8_r16.c @@ -64,11 +64,6 @@ maxloc1_8_r16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_8_r16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_8_r16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_8_r16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_8_r16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_8_r4.c b/libgfortran/generated/maxloc1_8_r4.c index 10bd416..359cb7c 100644 --- a/libgfortran/generated/maxloc1_8_r4.c +++ b/libgfortran/generated/maxloc1_8_r4.c @@ -64,11 +64,6 @@ maxloc1_8_r4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_8_r4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_8_r4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_8_r4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_8_r4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxloc1_8_r8.c b/libgfortran/generated/maxloc1_8_r8.c index 534e6cd..8e91eb3 100644 --- a/libgfortran/generated/maxloc1_8_r8.c +++ b/libgfortran/generated/maxloc1_8_r8.c @@ -64,11 +64,6 @@ maxloc1_8_r8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ maxloc1_8_r8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mmaxloc1_8_r8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mmaxloc1_8_r8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ smaxloc1_8_r8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxval_i16.c b/libgfortran/generated/maxval_i16.c index 2b50580..77412e5 100644 --- a/libgfortran/generated/maxval_i16.c +++ b/libgfortran/generated/maxval_i16.c @@ -63,11 +63,6 @@ maxval_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ maxval_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mmaxval_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mmaxval_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ smaxval_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxval_i4.c b/libgfortran/generated/maxval_i4.c index 6513695..2f13580 100644 --- a/libgfortran/generated/maxval_i4.c +++ b/libgfortran/generated/maxval_i4.c @@ -63,11 +63,6 @@ maxval_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ maxval_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mmaxval_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mmaxval_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ smaxval_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxval_i8.c b/libgfortran/generated/maxval_i8.c index fe78be1..40726c0 100644 --- a/libgfortran/generated/maxval_i8.c +++ b/libgfortran/generated/maxval_i8.c @@ -63,11 +63,6 @@ maxval_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ maxval_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mmaxval_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mmaxval_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ smaxval_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxval_r10.c b/libgfortran/generated/maxval_r10.c index 5f9c5db..db31988 100644 --- a/libgfortran/generated/maxval_r10.c +++ b/libgfortran/generated/maxval_r10.c @@ -63,11 +63,6 @@ maxval_r10 (gfc_array_r10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ maxval_r10 (gfc_array_r10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mmaxval_r10 (gfc_array_r10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mmaxval_r10 (gfc_array_r10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ smaxval_r10 (gfc_array_r10 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxval_r16.c b/libgfortran/generated/maxval_r16.c index a526691..abb41bb 100644 --- a/libgfortran/generated/maxval_r16.c +++ b/libgfortran/generated/maxval_r16.c @@ -63,11 +63,6 @@ maxval_r16 (gfc_array_r16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ maxval_r16 (gfc_array_r16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mmaxval_r16 (gfc_array_r16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mmaxval_r16 (gfc_array_r16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ smaxval_r16 (gfc_array_r16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxval_r4.c b/libgfortran/generated/maxval_r4.c index 23cee97..217a37b 100644 --- a/libgfortran/generated/maxval_r4.c +++ b/libgfortran/generated/maxval_r4.c @@ -63,11 +63,6 @@ maxval_r4 (gfc_array_r4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ maxval_r4 (gfc_array_r4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mmaxval_r4 (gfc_array_r4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mmaxval_r4 (gfc_array_r4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ smaxval_r4 (gfc_array_r4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/maxval_r8.c b/libgfortran/generated/maxval_r8.c index 2fd37e5..f455afc 100644 --- a/libgfortran/generated/maxval_r8.c +++ b/libgfortran/generated/maxval_r8.c @@ -63,11 +63,6 @@ maxval_r8 (gfc_array_r8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ maxval_r8 (gfc_array_r8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mmaxval_r8 (gfc_array_r8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mmaxval_r8 (gfc_array_r8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ smaxval_r8 (gfc_array_r8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_16_i16.c b/libgfortran/generated/minloc0_16_i16.c index d41276d..3a85b1b 100644 --- a/libgfortran/generated/minloc0_16_i16.c +++ b/libgfortran/generated/minloc0_16_i16.c @@ -76,16 +76,8 @@ minloc0_16_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_16_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_16_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_16_i4.c b/libgfortran/generated/minloc0_16_i4.c index 16e0863..5fc6123 100644 --- a/libgfortran/generated/minloc0_16_i4.c +++ b/libgfortran/generated/minloc0_16_i4.c @@ -76,16 +76,8 @@ minloc0_16_i4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_16_i4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_16_i4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_16_i8.c b/libgfortran/generated/minloc0_16_i8.c index bd2f08a..486108f 100644 --- a/libgfortran/generated/minloc0_16_i8.c +++ b/libgfortran/generated/minloc0_16_i8.c @@ -76,16 +76,8 @@ minloc0_16_i8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_16_i8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_16_i8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_16_r10.c b/libgfortran/generated/minloc0_16_r10.c index ab88d29..e00fb50 100644 --- a/libgfortran/generated/minloc0_16_r10.c +++ b/libgfortran/generated/minloc0_16_r10.c @@ -76,16 +76,8 @@ minloc0_16_r10 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_16_r10 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_16_r10 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_16_r16.c b/libgfortran/generated/minloc0_16_r16.c index c71a240..c6a8d8e 100644 --- a/libgfortran/generated/minloc0_16_r16.c +++ b/libgfortran/generated/minloc0_16_r16.c @@ -76,16 +76,8 @@ minloc0_16_r16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_16_r16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_16_r16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_16_r4.c b/libgfortran/generated/minloc0_16_r4.c index 4cfa389..f6b10c8 100644 --- a/libgfortran/generated/minloc0_16_r4.c +++ b/libgfortran/generated/minloc0_16_r4.c @@ -76,16 +76,8 @@ minloc0_16_r4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_16_r4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_16_r4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_16_r8.c b/libgfortran/generated/minloc0_16_r8.c index 52ef10b..c129cd7 100644 --- a/libgfortran/generated/minloc0_16_r8.c +++ b/libgfortran/generated/minloc0_16_r8.c @@ -76,16 +76,8 @@ minloc0_16_r8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_16_r8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_16_r8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_4_i16.c b/libgfortran/generated/minloc0_4_i16.c index 5486e93..37233a7 100644 --- a/libgfortran/generated/minloc0_4_i16.c +++ b/libgfortran/generated/minloc0_4_i16.c @@ -76,16 +76,8 @@ minloc0_4_i16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_4_i16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_4_i16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_4_i4.c b/libgfortran/generated/minloc0_4_i4.c index 519b10e..c246b96 100644 --- a/libgfortran/generated/minloc0_4_i4.c +++ b/libgfortran/generated/minloc0_4_i4.c @@ -76,16 +76,8 @@ minloc0_4_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_4_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_4_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_4_i8.c b/libgfortran/generated/minloc0_4_i8.c index 3988838..8b03ceb 100644 --- a/libgfortran/generated/minloc0_4_i8.c +++ b/libgfortran/generated/minloc0_4_i8.c @@ -76,16 +76,8 @@ minloc0_4_i8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_4_i8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_4_i8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_4_r10.c b/libgfortran/generated/minloc0_4_r10.c index 5c0ccfb..06664d8 100644 --- a/libgfortran/generated/minloc0_4_r10.c +++ b/libgfortran/generated/minloc0_4_r10.c @@ -76,16 +76,8 @@ minloc0_4_r10 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_4_r10 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_4_r10 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_4_r16.c b/libgfortran/generated/minloc0_4_r16.c index fbb75ba..29c880c 100644 --- a/libgfortran/generated/minloc0_4_r16.c +++ b/libgfortran/generated/minloc0_4_r16.c @@ -76,16 +76,8 @@ minloc0_4_r16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_4_r16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_4_r16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_4_r4.c b/libgfortran/generated/minloc0_4_r4.c index 9111176..99c6c2f 100644 --- a/libgfortran/generated/minloc0_4_r4.c +++ b/libgfortran/generated/minloc0_4_r4.c @@ -76,16 +76,8 @@ minloc0_4_r4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_4_r4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_4_r4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_4_r8.c b/libgfortran/generated/minloc0_4_r8.c index 461bedb..08d645e 100644 --- a/libgfortran/generated/minloc0_4_r8.c +++ b/libgfortran/generated/minloc0_4_r8.c @@ -76,16 +76,8 @@ minloc0_4_r8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_4_r8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_4_r8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_8_i16.c b/libgfortran/generated/minloc0_8_i16.c index 92bb0a2..f669a93 100644 --- a/libgfortran/generated/minloc0_8_i16.c +++ b/libgfortran/generated/minloc0_8_i16.c @@ -76,16 +76,8 @@ minloc0_8_i16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_8_i16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_8_i16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_8_i4.c b/libgfortran/generated/minloc0_8_i4.c index 6229244..349c8b3 100644 --- a/libgfortran/generated/minloc0_8_i4.c +++ b/libgfortran/generated/minloc0_8_i4.c @@ -76,16 +76,8 @@ minloc0_8_i4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_8_i4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_8_i4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_8_i8.c b/libgfortran/generated/minloc0_8_i8.c index 01090ed..00d737e 100644 --- a/libgfortran/generated/minloc0_8_i8.c +++ b/libgfortran/generated/minloc0_8_i8.c @@ -76,16 +76,8 @@ minloc0_8_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_8_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_8_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_8_r10.c b/libgfortran/generated/minloc0_8_r10.c index 8bd4251..c95778c 100644 --- a/libgfortran/generated/minloc0_8_r10.c +++ b/libgfortran/generated/minloc0_8_r10.c @@ -76,16 +76,8 @@ minloc0_8_r10 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_8_r10 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_8_r10 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_8_r16.c b/libgfortran/generated/minloc0_8_r16.c index ea229d7..1d968f8 100644 --- a/libgfortran/generated/minloc0_8_r16.c +++ b/libgfortran/generated/minloc0_8_r16.c @@ -76,16 +76,8 @@ minloc0_8_r16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_8_r16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_8_r16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_8_r4.c b/libgfortran/generated/minloc0_8_r4.c index e91466e..f83af93 100644 --- a/libgfortran/generated/minloc0_8_r4.c +++ b/libgfortran/generated/minloc0_8_r4.c @@ -76,16 +76,8 @@ minloc0_8_r4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_8_r4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_8_r4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc0_8_r8.c b/libgfortran/generated/minloc0_8_r8.c index 00d3718..8784b28 100644 --- a/libgfortran/generated/minloc0_8_r8.c +++ b/libgfortran/generated/minloc0_8_r8.c @@ -76,16 +76,8 @@ minloc0_8_r8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -196,19 +188,8 @@ mminloc0_8_r8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -335,9 +316,6 @@ sminloc0_8_r8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_16_i16.c b/libgfortran/generated/minloc1_16_i16.c index 5c49e79..e1aa42a 100644 --- a/libgfortran/generated/minloc1_16_i16.c +++ b/libgfortran/generated/minloc1_16_i16.c @@ -64,11 +64,6 @@ minloc1_16_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_16_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_16_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_16_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_16_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_16_i4.c b/libgfortran/generated/minloc1_16_i4.c index cba6b90..6a42d90 100644 --- a/libgfortran/generated/minloc1_16_i4.c +++ b/libgfortran/generated/minloc1_16_i4.c @@ -64,11 +64,6 @@ minloc1_16_i4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_16_i4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_16_i4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_16_i4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_16_i4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_16_i8.c b/libgfortran/generated/minloc1_16_i8.c index ba8be39..72d0f94 100644 --- a/libgfortran/generated/minloc1_16_i8.c +++ b/libgfortran/generated/minloc1_16_i8.c @@ -64,11 +64,6 @@ minloc1_16_i8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_16_i8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_16_i8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_16_i8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_16_i8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_16_r10.c b/libgfortran/generated/minloc1_16_r10.c index 3553c22..16d5903 100644 --- a/libgfortran/generated/minloc1_16_r10.c +++ b/libgfortran/generated/minloc1_16_r10.c @@ -64,11 +64,6 @@ minloc1_16_r10 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_16_r10 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_16_r10 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_16_r10 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_16_r10 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_16_r16.c b/libgfortran/generated/minloc1_16_r16.c index 258a5e2..aee2cd1 100644 --- a/libgfortran/generated/minloc1_16_r16.c +++ b/libgfortran/generated/minloc1_16_r16.c @@ -64,11 +64,6 @@ minloc1_16_r16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_16_r16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_16_r16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_16_r16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_16_r16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_16_r4.c b/libgfortran/generated/minloc1_16_r4.c index 86ba667..16bbfea 100644 --- a/libgfortran/generated/minloc1_16_r4.c +++ b/libgfortran/generated/minloc1_16_r4.c @@ -64,11 +64,6 @@ minloc1_16_r4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_16_r4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_16_r4 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_16_r4 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_16_r4 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_16_r8.c b/libgfortran/generated/minloc1_16_r8.c index 1fe86e5..fe7c940 100644 --- a/libgfortran/generated/minloc1_16_r8.c +++ b/libgfortran/generated/minloc1_16_r8.c @@ -64,11 +64,6 @@ minloc1_16_r8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_16_r8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_16_r8 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_16_r8 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_16_r8 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_4_i16.c b/libgfortran/generated/minloc1_4_i16.c index 5952d21..327e8c9 100644 --- a/libgfortran/generated/minloc1_4_i16.c +++ b/libgfortran/generated/minloc1_4_i16.c @@ -64,11 +64,6 @@ minloc1_4_i16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_4_i16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_4_i16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_4_i16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_4_i16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_4_i4.c b/libgfortran/generated/minloc1_4_i4.c index 79321f1..a7dfa1f 100644 --- a/libgfortran/generated/minloc1_4_i4.c +++ b/libgfortran/generated/minloc1_4_i4.c @@ -64,11 +64,6 @@ minloc1_4_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_4_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_4_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_4_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_4_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_4_i8.c b/libgfortran/generated/minloc1_4_i8.c index 625328b..34d0192 100644 --- a/libgfortran/generated/minloc1_4_i8.c +++ b/libgfortran/generated/minloc1_4_i8.c @@ -64,11 +64,6 @@ minloc1_4_i8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_4_i8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_4_i8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_4_i8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_4_i8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_4_r10.c b/libgfortran/generated/minloc1_4_r10.c index ab4d5b4..1a0d1b5 100644 --- a/libgfortran/generated/minloc1_4_r10.c +++ b/libgfortran/generated/minloc1_4_r10.c @@ -64,11 +64,6 @@ minloc1_4_r10 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_4_r10 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_4_r10 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_4_r10 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_4_r10 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_4_r16.c b/libgfortran/generated/minloc1_4_r16.c index 9ffdd33..ea3f020 100644 --- a/libgfortran/generated/minloc1_4_r16.c +++ b/libgfortran/generated/minloc1_4_r16.c @@ -64,11 +64,6 @@ minloc1_4_r16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_4_r16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_4_r16 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_4_r16 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_4_r16 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_4_r4.c b/libgfortran/generated/minloc1_4_r4.c index a91ee8d..c788433 100644 --- a/libgfortran/generated/minloc1_4_r4.c +++ b/libgfortran/generated/minloc1_4_r4.c @@ -64,11 +64,6 @@ minloc1_4_r4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_4_r4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_4_r4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_4_r4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_4_r4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_4_r8.c b/libgfortran/generated/minloc1_4_r8.c index 355333d..ba96e5f 100644 --- a/libgfortran/generated/minloc1_4_r8.c +++ b/libgfortran/generated/minloc1_4_r8.c @@ -64,11 +64,6 @@ minloc1_4_r8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_4_r8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_4_r8 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_4_r8 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_4_r8 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_8_i16.c b/libgfortran/generated/minloc1_8_i16.c index 4e78589..817b20e 100644 --- a/libgfortran/generated/minloc1_8_i16.c +++ b/libgfortran/generated/minloc1_8_i16.c @@ -64,11 +64,6 @@ minloc1_8_i16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_8_i16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_8_i16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_8_i16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_8_i16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_8_i4.c b/libgfortran/generated/minloc1_8_i4.c index ae71c33..e087776 100644 --- a/libgfortran/generated/minloc1_8_i4.c +++ b/libgfortran/generated/minloc1_8_i4.c @@ -64,11 +64,6 @@ minloc1_8_i4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_8_i4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_8_i4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_8_i4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_8_i4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_8_i8.c b/libgfortran/generated/minloc1_8_i8.c index 31cc822..5c8e882 100644 --- a/libgfortran/generated/minloc1_8_i8.c +++ b/libgfortran/generated/minloc1_8_i8.c @@ -64,11 +64,6 @@ minloc1_8_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_8_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_8_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_8_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_8_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_8_r10.c b/libgfortran/generated/minloc1_8_r10.c index 3dd3b1e..ade86ac 100644 --- a/libgfortran/generated/minloc1_8_r10.c +++ b/libgfortran/generated/minloc1_8_r10.c @@ -64,11 +64,6 @@ minloc1_8_r10 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_8_r10 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_8_r10 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_8_r10 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_8_r10 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_8_r16.c b/libgfortran/generated/minloc1_8_r16.c index 9de92d0..4137672b 100644 --- a/libgfortran/generated/minloc1_8_r16.c +++ b/libgfortran/generated/minloc1_8_r16.c @@ -64,11 +64,6 @@ minloc1_8_r16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_8_r16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_8_r16 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_8_r16 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_8_r16 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_8_r4.c b/libgfortran/generated/minloc1_8_r4.c index a47ef25..643ffa4 100644 --- a/libgfortran/generated/minloc1_8_r4.c +++ b/libgfortran/generated/minloc1_8_r4.c @@ -64,11 +64,6 @@ minloc1_8_r4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_8_r4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_8_r4 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_8_r4 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_8_r4 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minloc1_8_r8.c b/libgfortran/generated/minloc1_8_r8.c index 2637fe6..e9e876f 100644 --- a/libgfortran/generated/minloc1_8_r8.c +++ b/libgfortran/generated/minloc1_8_r8.c @@ -64,11 +64,6 @@ minloc1_8_r8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -105,9 +100,6 @@ minloc1_8_r8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -210,14 +202,6 @@ mminloc1_8_r8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -259,9 +243,6 @@ mminloc1_8_r8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -392,9 +373,6 @@ sminloc1_8_r8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minval_i16.c b/libgfortran/generated/minval_i16.c index f1c2e38..7854fd4 100644 --- a/libgfortran/generated/minval_i16.c +++ b/libgfortran/generated/minval_i16.c @@ -63,11 +63,6 @@ minval_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ minval_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mminval_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mminval_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ sminval_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minval_i4.c b/libgfortran/generated/minval_i4.c index bb79787..a833529 100644 --- a/libgfortran/generated/minval_i4.c +++ b/libgfortran/generated/minval_i4.c @@ -63,11 +63,6 @@ minval_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ minval_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mminval_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mminval_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ sminval_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minval_i8.c b/libgfortran/generated/minval_i8.c index deb5339..9b3de20 100644 --- a/libgfortran/generated/minval_i8.c +++ b/libgfortran/generated/minval_i8.c @@ -63,11 +63,6 @@ minval_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ minval_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mminval_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mminval_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ sminval_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minval_r10.c b/libgfortran/generated/minval_r10.c index be02a66..85b51c61 100644 --- a/libgfortran/generated/minval_r10.c +++ b/libgfortran/generated/minval_r10.c @@ -63,11 +63,6 @@ minval_r10 (gfc_array_r10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ minval_r10 (gfc_array_r10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mminval_r10 (gfc_array_r10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mminval_r10 (gfc_array_r10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ sminval_r10 (gfc_array_r10 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minval_r16.c b/libgfortran/generated/minval_r16.c index cacd524..556d14c 100644 --- a/libgfortran/generated/minval_r16.c +++ b/libgfortran/generated/minval_r16.c @@ -63,11 +63,6 @@ minval_r16 (gfc_array_r16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ minval_r16 (gfc_array_r16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mminval_r16 (gfc_array_r16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mminval_r16 (gfc_array_r16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ sminval_r16 (gfc_array_r16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minval_r4.c b/libgfortran/generated/minval_r4.c index 0f383d9..9fe32a9 100644 --- a/libgfortran/generated/minval_r4.c +++ b/libgfortran/generated/minval_r4.c @@ -63,11 +63,6 @@ minval_r4 (gfc_array_r4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ minval_r4 (gfc_array_r4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mminval_r4 (gfc_array_r4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mminval_r4 (gfc_array_r4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ sminval_r4 (gfc_array_r4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/minval_r8.c b/libgfortran/generated/minval_r8.c index 31ba619..f713332 100644 --- a/libgfortran/generated/minval_r8.c +++ b/libgfortran/generated/minval_r8.c @@ -63,11 +63,6 @@ minval_r8 (gfc_array_r8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -104,9 +99,6 @@ minval_r8 (gfc_array_r8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -204,14 +196,6 @@ mminval_r8 (gfc_array_r8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -253,9 +237,6 @@ mminval_r8 (gfc_array_r8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -381,9 +362,6 @@ sminval_r8 (gfc_array_r8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_c10.c b/libgfortran/generated/product_c10.c index 59552f2..af3e3c2 100644 --- a/libgfortran/generated/product_c10.c +++ b/libgfortran/generated/product_c10.c @@ -62,11 +62,6 @@ product_c10 (gfc_array_c10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_c10 (gfc_array_c10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_c10 (gfc_array_c10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_c10 (gfc_array_c10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_c10 (gfc_array_c10 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_c16.c b/libgfortran/generated/product_c16.c index 97b6ac1..f913b5f 100644 --- a/libgfortran/generated/product_c16.c +++ b/libgfortran/generated/product_c16.c @@ -62,11 +62,6 @@ product_c16 (gfc_array_c16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_c16 (gfc_array_c16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_c16 (gfc_array_c16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_c16 (gfc_array_c16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_c16 (gfc_array_c16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_c4.c b/libgfortran/generated/product_c4.c index 14dc21e..68144dc 100644 --- a/libgfortran/generated/product_c4.c +++ b/libgfortran/generated/product_c4.c @@ -62,11 +62,6 @@ product_c4 (gfc_array_c4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_c4 (gfc_array_c4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_c4 (gfc_array_c4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_c4 (gfc_array_c4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_c4 (gfc_array_c4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_c8.c b/libgfortran/generated/product_c8.c index 3313f2a..183e5b2 100644 --- a/libgfortran/generated/product_c8.c +++ b/libgfortran/generated/product_c8.c @@ -62,11 +62,6 @@ product_c8 (gfc_array_c8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_c8 (gfc_array_c8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_c8 (gfc_array_c8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_c8 (gfc_array_c8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_c8 (gfc_array_c8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_i16.c b/libgfortran/generated/product_i16.c index 7079dc4..7bd1c66 100644 --- a/libgfortran/generated/product_i16.c +++ b/libgfortran/generated/product_i16.c @@ -62,11 +62,6 @@ product_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_i4.c b/libgfortran/generated/product_i4.c index da88e97..8bf7e64 100644 --- a/libgfortran/generated/product_i4.c +++ b/libgfortran/generated/product_i4.c @@ -62,11 +62,6 @@ product_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_i8.c b/libgfortran/generated/product_i8.c index c60e8f7..c5f9e09 100644 --- a/libgfortran/generated/product_i8.c +++ b/libgfortran/generated/product_i8.c @@ -62,11 +62,6 @@ product_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_r10.c b/libgfortran/generated/product_r10.c index 710216f..091cec3 100644 --- a/libgfortran/generated/product_r10.c +++ b/libgfortran/generated/product_r10.c @@ -62,11 +62,6 @@ product_r10 (gfc_array_r10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_r10 (gfc_array_r10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_r10 (gfc_array_r10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_r10 (gfc_array_r10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_r10 (gfc_array_r10 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_r16.c b/libgfortran/generated/product_r16.c index b6df4dd..4a059a9 100644 --- a/libgfortran/generated/product_r16.c +++ b/libgfortran/generated/product_r16.c @@ -62,11 +62,6 @@ product_r16 (gfc_array_r16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_r16 (gfc_array_r16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_r16 (gfc_array_r16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_r16 (gfc_array_r16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_r16 (gfc_array_r16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_r4.c b/libgfortran/generated/product_r4.c index e31b394..763dd95 100644 --- a/libgfortran/generated/product_r4.c +++ b/libgfortran/generated/product_r4.c @@ -62,11 +62,6 @@ product_r4 (gfc_array_r4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_r4 (gfc_array_r4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_r4 (gfc_array_r4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_r4 (gfc_array_r4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_r4 (gfc_array_r4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/product_r8.c b/libgfortran/generated/product_r8.c index a2e805c..4336499 100644 --- a/libgfortran/generated/product_r8.c +++ b/libgfortran/generated/product_r8.c @@ -62,11 +62,6 @@ product_r8 (gfc_array_r8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ product_r8 (gfc_array_r8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ mproduct_r8 (gfc_array_r8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ mproduct_r8 (gfc_array_r8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ sproduct_r8 (gfc_array_r8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/reshape_c10.c b/libgfortran/generated/reshape_c10.c index 21789f8..008dc23 100644 --- a/libgfortran/generated/reshape_c10.c +++ b/libgfortran/generated/reshape_c10.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_c10 (gfc_array_c10 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_c10 (gfc_array_c10 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/reshape_c16.c b/libgfortran/generated/reshape_c16.c index f3c4a90..c176f2f 100644 --- a/libgfortran/generated/reshape_c16.c +++ b/libgfortran/generated/reshape_c16.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_c16 (gfc_array_c16 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_c16 (gfc_array_c16 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/reshape_c4.c b/libgfortran/generated/reshape_c4.c index 384f36f..d713284 100644 --- a/libgfortran/generated/reshape_c4.c +++ b/libgfortran/generated/reshape_c4.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_c4 (gfc_array_c4 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_c4 (gfc_array_c4 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/reshape_c8.c b/libgfortran/generated/reshape_c8.c index e2c7c39..5c0e1ab 100644 --- a/libgfortran/generated/reshape_c8.c +++ b/libgfortran/generated/reshape_c8.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_c8 (gfc_array_c8 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_c8 (gfc_array_c8 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/reshape_i16.c b/libgfortran/generated/reshape_i16.c index a8fece5..e7767dc 100644 --- a/libgfortran/generated/reshape_i16.c +++ b/libgfortran/generated/reshape_i16.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_16 (gfc_array_i16 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_16 (gfc_array_i16 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/reshape_i4.c b/libgfortran/generated/reshape_i4.c index 2c8ee4b..e2f38e7 100644 --- a/libgfortran/generated/reshape_i4.c +++ b/libgfortran/generated/reshape_i4.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_4 (gfc_array_i4 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_4 (gfc_array_i4 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/reshape_i8.c b/libgfortran/generated/reshape_i8.c index 6ffb681..5d54b07 100644 --- a/libgfortran/generated/reshape_i8.c +++ b/libgfortran/generated/reshape_i8.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_8 (gfc_array_i8 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_8 (gfc_array_i8 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/reshape_r10.c b/libgfortran/generated/reshape_r10.c index faf8b22..fe514c7 100644 --- a/libgfortran/generated/reshape_r10.c +++ b/libgfortran/generated/reshape_r10.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_r10 (gfc_array_r10 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_r10 (gfc_array_r10 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/reshape_r16.c b/libgfortran/generated/reshape_r16.c index a83f624..3f260c1 100644 --- a/libgfortran/generated/reshape_r16.c +++ b/libgfortran/generated/reshape_r16.c @@ -1,5 +1,5 @@ /* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -84,15 +84,6 @@ reshape_r16 (gfc_array_r16 * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -112,8 +103,6 @@ reshape_r16 (gfc_array_r16 * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/generated/shape_i16.c b/libgfortran/generated/shape_i16.c index 30209d5..58b5909 100644 --- a/libgfortran/generated/shape_i16.c +++ b/libgfortran/generated/shape_i16.c @@ -1,5 +1,5 @@ /* Implementation of the SHAPE intrinsic - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -47,8 +47,6 @@ shape_16 (gfc_array_i16 * const restrict ret, index_type stride; stride = ret->dim[0].stride; - if (stride == 0) - stride = 1; for (n = 0; n < GFC_DESCRIPTOR_RANK (array); n++) { diff --git a/libgfortran/generated/shape_i4.c b/libgfortran/generated/shape_i4.c index d4b323a..5a7aa03 100644 --- a/libgfortran/generated/shape_i4.c +++ b/libgfortran/generated/shape_i4.c @@ -1,5 +1,5 @@ /* Implementation of the SHAPE intrinsic - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -47,8 +47,6 @@ shape_4 (gfc_array_i4 * const restrict ret, index_type stride; stride = ret->dim[0].stride; - if (stride == 0) - stride = 1; for (n = 0; n < GFC_DESCRIPTOR_RANK (array); n++) { diff --git a/libgfortran/generated/shape_i8.c b/libgfortran/generated/shape_i8.c index acf925f..e3e2bf5 100644 --- a/libgfortran/generated/shape_i8.c +++ b/libgfortran/generated/shape_i8.c @@ -1,5 +1,5 @@ /* Implementation of the SHAPE intrinsic - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -47,8 +47,6 @@ shape_8 (gfc_array_i8 * const restrict ret, index_type stride; stride = ret->dim[0].stride; - if (stride == 0) - stride = 1; for (n = 0; n < GFC_DESCRIPTOR_RANK (array); n++) { diff --git a/libgfortran/generated/sum_c10.c b/libgfortran/generated/sum_c10.c index 344fd3f..7bd3b79 100644 --- a/libgfortran/generated/sum_c10.c +++ b/libgfortran/generated/sum_c10.c @@ -62,11 +62,6 @@ sum_c10 (gfc_array_c10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_c10 (gfc_array_c10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_c10 (gfc_array_c10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_c10 (gfc_array_c10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_c10 (gfc_array_c10 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_c16.c b/libgfortran/generated/sum_c16.c index 8cdf976..a5f66c5 100644 --- a/libgfortran/generated/sum_c16.c +++ b/libgfortran/generated/sum_c16.c @@ -62,11 +62,6 @@ sum_c16 (gfc_array_c16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_c16 (gfc_array_c16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_c16 (gfc_array_c16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_c16 (gfc_array_c16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_c16 (gfc_array_c16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_c4.c b/libgfortran/generated/sum_c4.c index 1e113ad..17d9e91 100644 --- a/libgfortran/generated/sum_c4.c +++ b/libgfortran/generated/sum_c4.c @@ -62,11 +62,6 @@ sum_c4 (gfc_array_c4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_c4 (gfc_array_c4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_c4 (gfc_array_c4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_c4 (gfc_array_c4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_c4 (gfc_array_c4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_c8.c b/libgfortran/generated/sum_c8.c index eec1b78..d5bd3aa 100644 --- a/libgfortran/generated/sum_c8.c +++ b/libgfortran/generated/sum_c8.c @@ -62,11 +62,6 @@ sum_c8 (gfc_array_c8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_c8 (gfc_array_c8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_c8 (gfc_array_c8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_c8 (gfc_array_c8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_c8 (gfc_array_c8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_i16.c b/libgfortran/generated/sum_i16.c index 2a37836..33911eb 100644 --- a/libgfortran/generated/sum_i16.c +++ b/libgfortran/generated/sum_i16.c @@ -62,11 +62,6 @@ sum_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_i16 (gfc_array_i16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_i16 (gfc_array_i16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_i16 (gfc_array_i16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_i4.c b/libgfortran/generated/sum_i4.c index 4062a3b..03d7ce2 100644 --- a/libgfortran/generated/sum_i4.c +++ b/libgfortran/generated/sum_i4.c @@ -62,11 +62,6 @@ sum_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_i4 (gfc_array_i4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_i4 (gfc_array_i4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_i4 (gfc_array_i4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_i8.c b/libgfortran/generated/sum_i8.c index ce02c06..177aae6 100644 --- a/libgfortran/generated/sum_i8.c +++ b/libgfortran/generated/sum_i8.c @@ -62,11 +62,6 @@ sum_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_i8 (gfc_array_i8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_i8 (gfc_array_i8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_i8 (gfc_array_i8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_r10.c b/libgfortran/generated/sum_r10.c index 07f6ae3..87531d3 100644 --- a/libgfortran/generated/sum_r10.c +++ b/libgfortran/generated/sum_r10.c @@ -62,11 +62,6 @@ sum_r10 (gfc_array_r10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_r10 (gfc_array_r10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_r10 (gfc_array_r10 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_r10 (gfc_array_r10 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_r10 (gfc_array_r10 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_r16.c b/libgfortran/generated/sum_r16.c index 975bc25..ea59713 100644 --- a/libgfortran/generated/sum_r16.c +++ b/libgfortran/generated/sum_r16.c @@ -62,11 +62,6 @@ sum_r16 (gfc_array_r16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_r16 (gfc_array_r16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_r16 (gfc_array_r16 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_r16 (gfc_array_r16 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_r16 (gfc_array_r16 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_r4.c b/libgfortran/generated/sum_r4.c index db905ae..2c4441d 100644 --- a/libgfortran/generated/sum_r4.c +++ b/libgfortran/generated/sum_r4.c @@ -62,11 +62,6 @@ sum_r4 (gfc_array_r4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_r4 (gfc_array_r4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_r4 (gfc_array_r4 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_r4 (gfc_array_r4 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_r4 (gfc_array_r4 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/sum_r8.c b/libgfortran/generated/sum_r8.c index ed2440b..6a68db0 100644 --- a/libgfortran/generated/sum_r8.c +++ b/libgfortran/generated/sum_r8.c @@ -62,11 +62,6 @@ sum_r8 (gfc_array_r8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -103,9 +98,6 @@ sum_r8 (gfc_array_r8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -202,14 +194,6 @@ msum_r8 (gfc_array_r8 * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -251,9 +235,6 @@ msum_r8 (gfc_array_r8 * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -379,9 +360,6 @@ ssum_r8 (gfc_array_r8 * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/generated/transpose_c10.c b/libgfortran/generated/transpose_c10.c index 9400c82..aec76c6 100644 --- a/libgfortran/generated/transpose_c10.c +++ b/libgfortran/generated/transpose_c10.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_c10 (gfc_array_c10 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/generated/transpose_c16.c b/libgfortran/generated/transpose_c16.c index a572be3..62d9165 100644 --- a/libgfortran/generated/transpose_c16.c +++ b/libgfortran/generated/transpose_c16.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_c16 (gfc_array_c16 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/generated/transpose_c4.c b/libgfortran/generated/transpose_c4.c index 3dc1475..ac4316c 100644 --- a/libgfortran/generated/transpose_c4.c +++ b/libgfortran/generated/transpose_c4.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_c4 (gfc_array_c4 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/generated/transpose_c8.c b/libgfortran/generated/transpose_c8.c index c127d947..401874a 100644 --- a/libgfortran/generated/transpose_c8.c +++ b/libgfortran/generated/transpose_c8.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_c8 (gfc_array_c8 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/generated/transpose_i16.c b/libgfortran/generated/transpose_i16.c index d780fb1..f47a0ee 100644 --- a/libgfortran/generated/transpose_i16.c +++ b/libgfortran/generated/transpose_i16.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_i16 (gfc_array_i16 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/generated/transpose_i4.c b/libgfortran/generated/transpose_i4.c index cf2bfc7e..23ed03f 100644 --- a/libgfortran/generated/transpose_i4.c +++ b/libgfortran/generated/transpose_i4.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_i4 (gfc_array_i4 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/generated/transpose_i8.c b/libgfortran/generated/transpose_i8.c index 4fd1664..3972032 100644 --- a/libgfortran/generated/transpose_i8.c +++ b/libgfortran/generated/transpose_i8.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_i8 (gfc_array_i8 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/generated/transpose_r10.c b/libgfortran/generated/transpose_r10.c index 9a588b8..97a988c 100644 --- a/libgfortran/generated/transpose_r10.c +++ b/libgfortran/generated/transpose_r10.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_r10 (gfc_array_r10 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/generated/transpose_r16.c b/libgfortran/generated/transpose_r16.c index 797f3c2..ba4c09e 100644 --- a/libgfortran/generated/transpose_r16.c +++ b/libgfortran/generated/transpose_r16.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,11 +71,6 @@ transpose_r16 (gfc_array_r16 * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; diff --git a/libgfortran/intrinsics/etime.c b/libgfortran/intrinsics/etime.c index 547e10f..6263d4d 100644 --- a/libgfortran/intrinsics/etime.c +++ b/libgfortran/intrinsics/etime.c @@ -1,5 +1,5 @@ /* Implementation of the ETIME intrinsic. - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. Contributed by Steven G. Kargl <kargls@comcast.net>. This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,9 +71,6 @@ etime_sub (gfc_array_r4 *t, GFC_REAL_4 *result) if (((t->dim[0].ubound + 1 - t->dim[0].lbound)) < 2) runtime_error ("Insufficient number of elements in TARRAY."); - if (t->dim[0].stride == 0) - t->dim[0].stride = 1; - tp = t->data; *tp = tu; diff --git a/libgfortran/intrinsics/random.c b/libgfortran/intrinsics/random.c index d77a381..9ea2889 100644 --- a/libgfortran/intrinsics/random.c +++ b/libgfortran/intrinsics/random.c @@ -1,5 +1,5 @@ /* Implementation of the RANDOM intrinsics - Copyright 2002, 2004, 2005 Free Software Foundation, Inc. + Copyright 2002, 2004, 2005, 2006 Free Software Foundation, Inc. Contributed by Lars Segerlund <seger@linuxmail.org> and Steve Kargl. @@ -188,9 +188,6 @@ arandom_r4 (gfc_array_r4 *x) dest = x->data; - if (x->dim[0].stride == 0) - x->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (x); for (n = 0; n < dim; n++) @@ -261,9 +258,6 @@ arandom_r8 (gfc_array_r8 *x) dest = x->data; - if (x->dim[0].stride == 0) - x->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (x); for (n = 0; n < dim; n++) @@ -349,9 +343,6 @@ random_seed (GFC_INTEGER_4 *size, gfc_array_i4 *put, gfc_array_i4 *get) if (((put->dim[0].ubound + 1 - put->dim[0].lbound)) < kiss_size) runtime_error ("Array size of PUT is too small."); - if (put->dim[0].stride == 0) - put->dim[0].stride = 1; - /* This code now should do correct strides. */ for (i = 0; i < kiss_size; i++) kiss_seed[i] =(GFC_UINTEGER_4) put->data[i * put->dim[0].stride]; @@ -368,9 +359,6 @@ random_seed (GFC_INTEGER_4 *size, gfc_array_i4 *put, gfc_array_i4 *get) if (((get->dim[0].ubound + 1 - get->dim[0].lbound)) < kiss_size) runtime_error ("Array size of GET is too small."); - if (get->dim[0].stride == 0) - get->dim[0].stride = 1; - /* This code now should do correct strides. */ for (i = 0; i < kiss_size; i++) get->data[i * get->dim[0].stride] = (GFC_INTEGER_4) kiss_seed[i]; diff --git a/libgfortran/intrinsics/reshape_generic.c b/libgfortran/intrinsics/reshape_generic.c index 8cbdc89..4f05416 100644 --- a/libgfortran/intrinsics/reshape_generic.c +++ b/libgfortran/intrinsics/reshape_generic.c @@ -1,5 +1,5 @@ /* Generic implementation of the RESHAPE intrinsic - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -74,15 +74,6 @@ reshape_internal (parray *ret, parray *source, shape_type *shape, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -102,8 +93,6 @@ reshape_internal (parray *ret, parray *source, shape_type *shape, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/intrinsics/spread_generic.c b/libgfortran/intrinsics/spread_generic.c index bdcc0d1..cbc5c49 100644 --- a/libgfortran/intrinsics/spread_generic.c +++ b/libgfortran/intrinsics/spread_generic.c @@ -1,5 +1,5 @@ /* Generic implementation of the SPREAD intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -109,9 +109,6 @@ spread_internal (gfc_array_char *ret, const gfc_array_char *source, if (GFC_DESCRIPTOR_RANK(ret) != rrank) runtime_error ("rank mismatch in spread()"); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - for (n = 0; n < rrank; n++) { if (n == *along - 1) @@ -204,9 +201,6 @@ spread_internal_scalar (gfc_array_char *ret, const char *source, } else { - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (ncopies - 1 > (ret->dim[0].ubound - ret->dim[0].lbound) / ret->dim[0].stride) runtime_error ("dim too large in spread()"); diff --git a/libgfortran/intrinsics/stat.c b/libgfortran/intrinsics/stat.c index ac91204..ab134ab 100644 --- a/libgfortran/intrinsics/stat.c +++ b/libgfortran/intrinsics/stat.c @@ -1,5 +1,5 @@ /* Implementation of the STAT and FSTAT intrinsics. - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. Contributed by Steven G. Kargl <kargls@comcast.net>. This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -81,9 +81,6 @@ stat_i4_sub (char *name, gfc_array_i4 *sarray, GFC_INTEGER_4 *status, if (sarray->dim[0].ubound + 1 - sarray->dim[0].lbound < 13) runtime_error ("Array size of SARRAY is too small."); - if (sarray->dim[0].stride == 0) - sarray->dim[0].stride = 1; - /* Trim trailing spaces from name. */ while (name_len > 0 && name[name_len - 1] == ' ') name_len--; @@ -174,9 +171,6 @@ stat_i8_sub (char *name, gfc_array_i8 *sarray, GFC_INTEGER_8 *status, if (sarray->dim[0].ubound + 1 - sarray->dim[0].lbound < 13) runtime_error ("Array size of SARRAY is too small."); - if (sarray->dim[0].stride == 0) - sarray->dim[0].stride = 1; - /* Trim trailing spaces from name. */ while (name_len > 0 && name[name_len - 1] == ' ') name_len--; @@ -297,9 +291,6 @@ fstat_i4_sub (GFC_INTEGER_4 *unit, gfc_array_i4 *sarray, GFC_INTEGER_4 *status) if (sarray->dim[0].ubound + 1 - sarray->dim[0].lbound < 13) runtime_error ("Array size of SARRAY is too small."); - if (sarray->dim[0].stride == 0) - sarray->dim[0].stride = 1; - /* Convert Fortran unit number to C file descriptor. */ val = unit_to_fd (*unit); if (val >= 0) @@ -381,9 +372,6 @@ fstat_i8_sub (GFC_INTEGER_8 *unit, gfc_array_i8 *sarray, GFC_INTEGER_8 *status) if (sarray->dim[0].ubound + 1 - sarray->dim[0].lbound < 13) runtime_error ("Array size of SARRAY is too small."); - if (sarray->dim[0].stride == 0) - sarray->dim[0].stride = 1; - /* Convert Fortran unit number to C file descriptor. */ val = unit_to_fd ((int) *unit); if (val >= 0) diff --git a/libgfortran/intrinsics/transpose_generic.c b/libgfortran/intrinsics/transpose_generic.c index bd47073..1daae8b 100644 --- a/libgfortran/intrinsics/transpose_generic.c +++ b/libgfortran/intrinsics/transpose_generic.c @@ -1,5 +1,5 @@ /* Implementation of the TRANSPOSE intrinsic - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -71,15 +71,11 @@ transpose_internal (gfc_array_char *ret, gfc_array_char *source, } sxstride = source->dim[0].stride * size; - if (sxstride == 0) - sxstride = size; systride = source->dim[1].stride * size; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; ycount = source->dim[1].ubound + 1 - source->dim[1].lbound; rxstride = ret->dim[0].stride * size; - if (rxstride == 0) - rxstride = size; rystride = ret->dim[1].stride * size; rptr = ret->data; diff --git a/libgfortran/m4/iforeach.m4 b/libgfortran/m4/iforeach.m4 index 7d20213e..6ff9427 100644 --- a/libgfortran/m4/iforeach.m4 +++ b/libgfortran/m4/iforeach.m4 @@ -41,16 +41,8 @@ name`'rtype_qual`_'atype_code (rtype * const restrict retarray, if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -153,19 +145,8 @@ void if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - dstride = retarray->dim[0].stride; dest = retarray->data; for (n = 0; n < rank; n++) @@ -291,9 +272,6 @@ void if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/m4/ifunction.m4 b/libgfortran/m4/ifunction.m4 index d1a34da..74ae6a5 100644 --- a/libgfortran/m4/ifunction.m4 +++ b/libgfortran/m4/ifunction.m4 @@ -44,11 +44,6 @@ name`'rtype_qual`_'atype_code (rtype * const restrict retarray, dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; delta = array->dim[dim].stride; @@ -85,9 +80,6 @@ name`'rtype_qual`_'atype_code (rtype * const restrict retarray, } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -184,14 +176,6 @@ void dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; - /* TODO: It should be a front end job to correctly set the strides. */ - - if (array->dim[0].stride == 0) - array->dim[0].stride = 1; - - if (mask->dim[0].stride == 0) - mask->dim[0].stride = 1; - len = array->dim[dim].ubound + 1 - array->dim[dim].lbound; if (len <= 0) return; @@ -233,9 +217,6 @@ void } else { - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (rank != GFC_DESCRIPTOR_RANK (retarray)) runtime_error ("rank of return array incorrect"); } @@ -360,9 +341,6 @@ void if (retarray->dim[0].ubound + 1 - retarray->dim[0].lbound != rank) runtime_error ("dimension of return array incorrect"); - - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; } dstride = retarray->dim[0].stride; diff --git a/libgfortran/m4/in_pack.m4 b/libgfortran/m4/in_pack.m4 index cb5be52..950919d 100644 --- a/libgfortran/m4/in_pack.m4 +++ b/libgfortran/m4/in_pack.m4 @@ -1,5 +1,5 @@ `/* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -56,11 +56,8 @@ rtype_name * int n; int packed; - if (source->dim[0].stride == 0) - { - source->dim[0].stride = 1; - return source->data; - } + /* TODO: Investigate how we can figure out if this is a temporary + since the stride=0 thing has been removed from the frontend. */ dim = GFC_DESCRIPTOR_RANK (source); ssize = 1; diff --git a/libgfortran/m4/in_unpack.m4 b/libgfortran/m4/in_unpack.m4 index 131eb5d..d6ee7c6 100644 --- a/libgfortran/m4/in_unpack.m4 +++ b/libgfortran/m4/in_unpack.m4 @@ -1,5 +1,5 @@ `/* Helper function for repacking arrays. - Copyright 2003 Free Software Foundation, Inc. + Copyright 2003, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -55,9 +55,6 @@ void if (src == dest || !src) return; - if (d->dim[0].stride == 0) - d->dim[0].stride = 1; - dim = GFC_DESCRIPTOR_RANK (d); dsize = 1; for (n = 0; n < dim; n++) diff --git a/libgfortran/m4/matmul.m4 b/libgfortran/m4/matmul.m4 index 526303c..f83837b 100644 --- a/libgfortran/m4/matmul.m4 +++ b/libgfortran/m4/matmul.m4 @@ -1,5 +1,5 @@ `/* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -121,15 +121,6 @@ matmul_`'rtype_code (rtype * const restrict retarray, retarray->offset = 0; } - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - - /* This prevents constifying the input arguments. */ - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - sinclude(`matmul_asm_'rtype_code`.m4')dnl if (GFC_DESCRIPTOR_RANK (retarray) == 1) diff --git a/libgfortran/m4/matmull.m4 b/libgfortran/m4/matmull.m4 index 5acb4cb..f880199 100644 --- a/libgfortran/m4/matmull.m4 +++ b/libgfortran/m4/matmull.m4 @@ -1,5 +1,5 @@ `/* Implementation of the MATMUL intrinsic - Copyright 2002, 2005 Free Software Foundation, Inc. + Copyright 2002, 2005, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -113,13 +113,6 @@ matmul_`'rtype_code (rtype * const restrict retarray, } dest = retarray->data; - if (retarray->dim[0].stride == 0) - retarray->dim[0].stride = 1; - if (a->dim[0].stride == 0) - a->dim[0].stride = 1; - if (b->dim[0].stride == 0) - b->dim[0].stride = 1; - sinclude(`matmul_asm_'rtype_code`.m4')dnl if (GFC_DESCRIPTOR_RANK (retarray) == 1) diff --git a/libgfortran/m4/reshape.m4 b/libgfortran/m4/reshape.m4 index 5b652b6..569b413 100644 --- a/libgfortran/m4/reshape.m4 +++ b/libgfortran/m4/reshape.m4 @@ -1,5 +1,5 @@ `/* Implementation of the RESHAPE - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -86,15 +86,6 @@ reshape_`'rtype_ccode (rtype * const restrict ret, int n; int dim; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - if (shape->dim[0].stride == 0) - shape->dim[0].stride = 1; - if (pad && pad->dim[0].stride == 0) - pad->dim[0].stride = 1; - if (order && order->dim[0].stride == 0) - order->dim[0].stride = 1; - if (ret->data == NULL) { rdim = shape->dim[0].ubound - shape->dim[0].lbound + 1; @@ -114,8 +105,6 @@ reshape_`'rtype_ccode (rtype * const restrict ret, else { rdim = GFC_DESCRIPTOR_RANK (ret); - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; } rsize = 1; diff --git a/libgfortran/m4/shape.m4 b/libgfortran/m4/shape.m4 index e46c3dd..a219a8b 100644 --- a/libgfortran/m4/shape.m4 +++ b/libgfortran/m4/shape.m4 @@ -1,5 +1,5 @@ `/* Implementation of the SHAPE intrinsic - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2006 Free Software Foundation, Inc. Contributed by Paul Brook <paul@nowt.org> This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -48,8 +48,6 @@ shape_`'rtype_kind (rtype * const restrict ret, index_type stride; stride = ret->dim[0].stride; - if (stride == 0) - stride = 1; for (n = 0; n < GFC_DESCRIPTOR_RANK (array); n++) { diff --git a/libgfortran/m4/transpose.m4 b/libgfortran/m4/transpose.m4 index 9892660..1511258 100644 --- a/libgfortran/m4/transpose.m4 +++ b/libgfortran/m4/transpose.m4 @@ -1,5 +1,5 @@ `/* Implementation of the TRANSPOSE intrinsic - Copyright 2003, 2005 Free Software Foundation, Inc. + Copyright 2003, 2005, 2006 Free Software Foundation, Inc. Contributed by Tobias Schlüter This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -72,11 +72,6 @@ transpose_`'rtype_code (rtype * const restrict ret, ret->offset = 0; } - if (ret->dim[0].stride == 0) - ret->dim[0].stride = 1; - if (source->dim[0].stride == 0) - source->dim[0].stride = 1; - sxstride = source->dim[0].stride; systride = source->dim[1].stride; xcount = source->dim[0].ubound + 1 - source->dim[0].lbound; |