* cp-tree.h (DECL_MAIN_P): Fix parentheses around expression.
authorDoug Evans <dje@google.com>
Mon, 13 Oct 2008 13:54:47 +0000 (13:54 +0000)
committerDoug Evans <devans@gcc.gnu.org>
Mon, 13 Oct 2008 13:54:47 +0000 (13:54 +0000)
From-SVN: r141088

gcc/cp/ChangeLog
gcc/cp/cp-tree.h

index 6b38199..1b38209 100644 (file)
@@ -1,3 +1,7 @@
+2008-10-13  Doug Evans  <dje@google.com>
+
+       * cp-tree.h (DECL_MAIN_P): Fix parentheses around expression.
+
 2008-10-10  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/37146
index c32fff6..3d52d83 100644 (file)
@@ -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) \