From: Tobias Burnus Date: Wed, 2 Oct 2019 10:41:59 +0000 (+0000) Subject: Fix coding style comment, missed in last commit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4aef466788a964688458f4e633398b140ad89e24;p=gcc.git Fix coding style comment, missed in last commit * trans-openmp.c (gfc_omp_is_optional_argument): Fix coding style. From-SVN: r276446 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index d8c891f04bc..af0a0aca343 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2019-10-02 Tobias Burnus + + * trans-openmp.c (gfc_omp_is_optional_argument): Fix coding + style. + 2019-10-02 Kwok Cheung Yeung * f95-lang.c (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Define to diff --git a/gcc/fortran/trans-openmp.c b/gcc/fortran/trans-openmp.c index 88ecc331166..f83bab4850e 100644 --- a/gcc/fortran/trans-openmp.c +++ b/gcc/fortran/trans-openmp.c @@ -52,7 +52,8 @@ int ompws_flags; bool gfc_omp_is_optional_argument (const_tree decl) { - return (TREE_CODE (decl) == PARM_DECL && DECL_LANG_SPECIFIC (decl) + return (TREE_CODE (decl) == PARM_DECL + && DECL_LANG_SPECIFIC (decl) && GFC_DECL_OPTIONAL_ARGUMENT (decl)); }