aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@gcc.gnu.org>2017-11-24 22:40:21 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-11-24 22:40:21 +0100
commit3b3e6283a4b1ea82bb41867ebdccd6a1fc0501d3 (patch)
tree0f71d277ea2d2d8aa0fa93308f9441e03c8f2755 /gcc
parent19cf3a368544af31e3791c27e3c9be9b01e71851 (diff)
downloadgcc-3b3e6283a4b1ea82bb41867ebdccd6a1fc0501d3.zip
gcc-3b3e6283a4b1ea82bb41867ebdccd6a1fc0501d3.tar.gz
gcc-3b3e6283a4b1ea82bb41867ebdccd6a1fc0501d3.tar.bz2
re PR fortran/81304 (Bogus warning with -Wsurprising and -fopenmp: Type specified for intrinsic function 'min' / 'max')
PR fortran/81304 * trans-openmp.c (gfc_trans_omp_array_reduction_or_udr): Set attr.implicit_type in intrinsic_sym to avoid undesirable warning. * testsuite/libgomp.fortran/pr81304.f90: New test. From-SVN: r255144
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog8
-rw-r--r--gcc/fortran/trans-openmp.c1
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 57fe968..3278c5b 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,4 +1,10 @@
-2017-11-23 Dirk Broemmel <dibr-bugzilla@daswigwam.de>
+2017-11-24 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/81304
+ * trans-openmp.c (gfc_trans_omp_array_reduction_or_udr): Set
+ attr.implicit_type in intrinsic_sym to avoid undesirable warning.
+
+2017-11-23 Dirk Broemmel <d.broemmel@fz-juelich.de>
Jakub Jelinek <jakub@redhat.com>
PR fortran/81841
diff --git a/gcc/fortran/trans-openmp.c b/gcc/fortran/trans-openmp.c
index 75eafe4..7f01f22 100644
--- a/gcc/fortran/trans-openmp.c
+++ b/gcc/fortran/trans-openmp.c
@@ -1623,6 +1623,7 @@ gfc_trans_omp_array_reduction_or_udr (tree c, gfc_omp_namelist *n, locus where)
intrinsic_sym.attr.referenced = 1;
intrinsic_sym.attr.intrinsic = 1;
intrinsic_sym.attr.function = 1;
+ intrinsic_sym.attr.implicit_type = 1;
intrinsic_sym.result = &intrinsic_sym;
intrinsic_sym.declared_at = where;