From 7f7aa9e154db9cd6b52925a7ca2ce75829f38179 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 13 Oct 2008 13:54:47 +0000 Subject: [PATCH] * cp-tree.h (DECL_MAIN_P): Fix parentheses around expression. From-SVN: r141088 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/cp-tree.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6b38199..1b38209 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2008-10-13 Doug Evans + + * cp-tree.h (DECL_MAIN_P): Fix parentheses around expression. + 2008-10-10 Jakub Jelinek PR c++/37146 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index c32fff6..3d52d83 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -316,8 +316,8 @@ typedef struct ptrmem_cst * ptrmem_cst_t; #define DECL_MAIN_P(NODE) \ (DECL_EXTERN_C_FUNCTION_P (NODE) \ && DECL_NAME (NODE) != NULL_TREE \ - && MAIN_NAME_P (DECL_NAME (NODE))) \ - && flag_hosted + && MAIN_NAME_P (DECL_NAME (NODE)) \ + && flag_hosted) /* The overloaded FUNCTION_DECL. */ #define OVL_FUNCTION(NODE) \ -- 2.7.4