summaryrefslogtreecommitdiff
path: root/libgfortran/generated/minloc1_4_i1.c
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-30 21:35:46 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-30 21:35:46 +0000
commit47e0c827b52f4a4f977186336acb40175cbc1c45 (patch)
tree7c5a928fbb50b9cb9084bfef0e0da0f3317084bd /libgfortran/generated/minloc1_4_i1.c
parent43f4896f0f8428aaef3e83ef582479bf1dab1567 (diff)
parent9ddbb4046b6e821bffa1495bcafa22b17cfc8265 (diff)
downloadgcc-47e0c827b52f4a4f977186336acb40175cbc1c45.tar.gz
2013-03-30 Tobias Burnus <burnus@net-b.de>
* Merged Revs. 189741 to 197268 from the trunk. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/fortran-dev@197269 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/generated/minloc1_4_i1.c')
-rw-r--r--libgfortran/generated/minloc1_4_i1.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libgfortran/generated/minloc1_4_i1.c b/libgfortran/generated/minloc1_4_i1.c
index 04a127ec479..2ada8b33303 100644
--- a/libgfortran/generated/minloc1_4_i1.c
+++ b/libgfortran/generated/minloc1_4_i1.c
@@ -1,5 +1,5 @@
/* Implementation of the MINLOC intrinsic
- Copyright 2002, 2007, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2002-2013 Free Software Foundation, Inc.
Contributed by Paul Brook <paul@nowt.org>
This file is part of the GNU Fortran runtime library (libgfortran).
@@ -354,12 +354,8 @@ mminloc1_4_i1 (gfc_array_i4 * const restrict retarray,
GFC_INTEGER_4 result2 = 0;
#endif
result = 0;
- if (len <= 0)
- *dest = 0;
- else
+ for (n = 0; n < len; n++, src += delta, msrc += mdelta)
{
- for (n = 0; n < len; n++, src += delta, msrc += mdelta)
- {
if (*msrc)
{
@@ -387,9 +383,8 @@ mminloc1_4_i1 (gfc_array_i4 * const restrict retarray,
minval = *src;
result = (GFC_INTEGER_4)n + 1;
}
- }
- *dest = result;
}
+ *dest = result;
}
/* Advance to the next element. */
count[0]++;