OSDN Git Service

* cp-tree.h (DECL_MAIN_P): Fix parentheses around expression.
authordevans <devans@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Oct 2008 13:54:47 +0000 (13:54 +0000)
committerdevans <devans@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Oct 2008 13:54:47 +0000 (13:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141088 138bc75d-0d04-0410-961f-82ee72b054a4

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) \