intrinsic.c (add_subroutines): ERRMSG is INTENT(INOUT) in co_broadcast, co_max, co_mi...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 22 Aug 2019 23:50:57 +0000 (23:50 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 22 Aug 2019 23:50:57 +0000 (23:50 +0000)
2019-08-22  Steven G. Kargl  <kargl@gcc.gnu.org>

* intrinsic.c (add_subroutines): ERRMSG is INTENT(INOUT) in
co_broadcast, co_max, co_min, co_reduce, and  co_sum.

From-SVN: r274838

gcc/fortran/ChangeLog
gcc/fortran/intrinsic.c

index 3eca99ecc7cfc364c2647783ee452032244b95c1..69ec726ac83e8d9f0252e2241793c878b2c13d0f 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-22  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       * intrinsic.c (add_subroutines): ERRMSG is INTENT(INOUT) in
+       co_broadcast, co_max, co_min, co_reduce, and  co_sum.
+
 2019-08-20  Mark Eggleston  <mark.eggleston@codethink.com>
 
        PR fortran/89236
index c35ea73f5d9707755aba2e75731cc79ce2609ecf..1b6eedaff6c3925cb1c3d4d9dabdc50d487d323d 100644 (file)
@@ -3691,7 +3691,7 @@ add_subroutines (void)
              a, BT_REAL, dr, REQUIRED, INTENT_INOUT,
              "source_image", BT_INTEGER, di, REQUIRED, INTENT_IN,
              stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT,
-             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT);
+             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT);
 
   add_sym_4s ("co_max", GFC_ISYM_CO_MAX, CLASS_IMPURE,
              BT_UNKNOWN, 0, GFC_STD_F2018,
@@ -3699,7 +3699,7 @@ add_subroutines (void)
              a, BT_REAL, dr, REQUIRED, INTENT_INOUT,
              result_image, BT_INTEGER, di, OPTIONAL, INTENT_IN,
              stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT,
-             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT);
+             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT);
 
   add_sym_4s ("co_min", GFC_ISYM_CO_MIN, CLASS_IMPURE,
              BT_UNKNOWN, 0, GFC_STD_F2018,
@@ -3707,7 +3707,7 @@ add_subroutines (void)
              a, BT_REAL, dr, REQUIRED, INTENT_INOUT,
              result_image, BT_INTEGER, di, OPTIONAL, INTENT_IN,
              stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT,
-             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT);
+             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT);
 
   add_sym_4s ("co_sum", GFC_ISYM_CO_SUM, CLASS_IMPURE,
              BT_UNKNOWN, 0, GFC_STD_F2018,
@@ -3715,7 +3715,7 @@ add_subroutines (void)
              a, BT_REAL, dr, REQUIRED, INTENT_INOUT,
              result_image, BT_INTEGER, di, OPTIONAL, INTENT_IN,
              stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT,
-             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT);
+             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT);
 
   add_sym_5s ("co_reduce", GFC_ISYM_CO_REDUCE, CLASS_IMPURE,
              BT_UNKNOWN, 0, GFC_STD_F2018,
@@ -3724,7 +3724,7 @@ add_subroutines (void)
              "operator", BT_INTEGER, di, REQUIRED, INTENT_IN,
              result_image, BT_INTEGER, di, OPTIONAL, INTENT_IN,
              stat, BT_INTEGER, di, OPTIONAL, INTENT_OUT,
-             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_OUT);
+             errmsg, BT_CHARACTER, dc, OPTIONAL, INTENT_INOUT);
 
 
   /* The following subroutine is internally used for coarray libray functions.