From 4aef466788a964688458f4e633398b140ad89e24 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Wed, 2 Oct 2019 10:41:59 +0000 Subject: [PATCH] Fix coding style comment, missed in last commit * trans-openmp.c (gfc_omp_is_optional_argument): Fix coding style. From-SVN: r276446 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/trans-openmp.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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)); } -- 2.30.2