summaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-27 18:44:35 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-27 18:44:35 +0000
commit0480ded14d2a84b0f34643b8202fb2bab84f828e (patch)
tree4ff4d2b88bc9080362f66598286ba4d9eeff820b /gcc/fortran/interface.c
parentc288f7b5a44266a0965bebe7017904bfa31f943f (diff)
2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR fortran/64771 * interface.c: Remove <algorithm>. (check_dummy_characteristics): Use MAX instead of std::max. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220182 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r--gcc/fortran/interface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index 0463a58fa7f6..837dc8c42283 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -63,8 +63,6 @@ along with GCC; see the file COPYING3. If not see
formal argument list points to symbols within the same namespace as
the program unit name. */
-#include <algorithm> /* For std::max. */
-
#include "config.h"
#include "system.h"
#include "coretypes.h"
@@ -1215,7 +1213,7 @@ check_dummy_characteristics (gfc_symbol *s1, gfc_symbol *s2,
}
if (s1->as->type == AS_EXPLICIT)
- for (i = 0; i < s1->as->rank + std::max(0, s1->as->corank-1); i++)
+ for (i = 0; i < s1->as->rank + MAX (0, s1->as->corank-1); i++)
{
shape1 = gfc_subtract (gfc_copy_expr (s1->as->upper[i]),
gfc_copy_expr (s1->as->lower[i]));