From: Jakub Jelinek Date: Thu, 19 Dec 2019 10:08:06 +0000 (+0100) Subject: re PR fortran/92977 (ICE in gfc_trans_omp_atomic, at fortran/trans-openmp.c:3526) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23cdc1e9b73d2074624799a025d7030145979b92;p=gcc.git re PR fortran/92977 (ICE in gfc_trans_omp_atomic, at fortran/trans-openmp.c:3526) PR fortran/92977 * frontend-passes.c (call_external_blas): Use || instead of |. From-SVN: r279567 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 12465bf4378..b780450a63a 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2019-12-19 Jakub Jelinek + + PR fortran/92977 + * frontend-passes.c (call_external_blas): Use || instead of |. + 2019-12-19 Jakub Jelinek PR fortran/92977 diff --git a/gcc/fortran/frontend-passes.c b/gcc/fortran/frontend-passes.c index 5f83ad27c2c..bd27a68979c 100644 --- a/gcc/fortran/frontend-passes.c +++ b/gcc/fortran/frontend-passes.c @@ -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;