re PR fortran/92977 (ICE in gfc_trans_omp_atomic, at fortran/trans-openmp.c:3526)
authorJakub Jelinek <jakub@redhat.com>
Thu, 19 Dec 2019 10:08:06 +0000 (11:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 19 Dec 2019 10:08:06 +0000 (11:08 +0100)
PR fortran/92977
* frontend-passes.c (call_external_blas): Use || instead of |.

From-SVN: r279567

gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c

index 12465bf43782a6a3afa97556f3241130d8901189..b780450a63a5fa23c7ffcc102ab6aef1fc53e275 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR fortran/92977
+       * frontend-passes.c (call_external_blas): Use || instead of |.
+
 2019-12-19  Jakub Jelinek  <jakub@redhat.com>
 
        PR fortran/92977
index 5f83ad27c2cb2ae052cebe0d481b374e2c0d938c..bd27a68979c2c61037c4c3777091692e608bb74f 100644 (file)
@@ -4390,7 +4390,7 @@ call_external_blas (gfc_code **c, int *walk_subtrees ATTRIBUTE_UNUSED,
   /* For now don't do anything in OpenMP workshare, it confuses
      its translation, which expects only the allowed statements in there. */
 
-  if (in_omp_workshare | in_omp_atomic)
+  if (in_omp_workshare || in_omp_atomic)
     return 0;
 
   expr1 = co->expr1;