aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-09-02 16:08:05 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-09-02 16:08:05 +0000
commit86eb9e2fbeb5541af8ac0ce37fa60cded76877b4 (patch)
tree94801342df0045d013caa64095390881f611a5e6 /gcc/fortran
parente9e67af14893295ed164e269baa26c2325ae7cf1 (diff)
downloadgcc-86eb9e2fbeb5541af8ac0ce37fa60cded76877b4.zip
gcc-86eb9e2fbeb5541af8ac0ce37fa60cded76877b4.tar.gz
gcc-86eb9e2fbeb5541af8ac0ce37fa60cded76877b4.tar.bz2
re PR fortran/62270 (-Wlogical-not-parentheses warnings)
PR fortran/62270 * interface.c (compare_parameter): Fix condition. * trans-expr.c (gfc_conv_procedure_call): Likewise. * gfortran.dg/pointer_intent_7.f90: Adjust dg-error. From-SVN: r214827
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/interface.c2
-rw-r--r--gcc/fortran/trans-expr.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index eab86ed..518923b 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2014-09-02 Marek Polacek <polacek@redhat.com>
+
+ PR fortran/62270
+ * interface.c (compare_parameter): Fix condition.
+ * trans-expr.c (gfc_conv_procedure_call): Likewise.
+
2014-08-31 Fritz Reese <Reese-Fritz@zai.com>
PR fortran/62309
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index b210d18..f6233b7 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -2014,7 +2014,7 @@ compare_parameter (gfc_symbol *formal, gfc_expr *actual,
if (formal->ts.type == BT_CLASS && formal->attr.class_ok
&& actual->expr_type != EXPR_NULL
&& ((CLASS_DATA (formal)->attr.class_pointer
- && !formal->attr.intent == INTENT_IN)
+ && formal->attr.intent != INTENT_IN)
|| CLASS_DATA (formal)->attr.allocatable))
{
if (actual->ts.type != BT_CLASS)
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
index f2ed474..4c057ee 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -4589,7 +4589,7 @@ gfc_conv_procedure_call (gfc_se * se, gfc_symbol * sym,
&& e->expr_type == EXPR_VARIABLE
&& (!e->ref
|| (e->ref->type == REF_ARRAY
- && !e->ref->u.ar.type != AR_FULL))
+ && e->ref->u.ar.type != AR_FULL))
&& e->symtree->n.sym->attr.optional)
{
tmp = fold_build3_loc (input_location, COND_EXPR,