]> gcc.gnu.org Git - gcc.git/commitdiff
re PR c++/24979 (DECL_MAIN_P is declared twice in cp-tree.h)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Sun, 27 Nov 2005 22:37:06 +0000 (22:37 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sun, 27 Nov 2005 22:37:06 +0000 (22:37 +0000)
PR c++/24979
* cp-tree.h (DECL_MAIN_P): Remove duplicate definition.

From-SVN: r107578

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

index b6936aa1e3cbc8950afd7706a8d3ff955baa261f..71f7d0bb44da1292fd459273b9d43e7c6a65d5d1 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c++/24979
+       * cp-tree.h (DECL_MAIN_P): Remove duplicate definition.
+
 2005-11-26  Richard Henderson  <rth@redhat.com>
 
        * lex.c: Update for pragma_lex rename.
index 978a95f85af47cc51d01a097b46f1b61932da333..86b98a0776c69c0cedecb19a7c5017984ae58863 100644 (file)
@@ -3274,13 +3274,6 @@ extern GTY(()) VEC(tree,gc) *local_classes;
                                  && IDENTIFIER_POINTER (ID_NODE)[1] == '_')
 #endif /* !defined(NO_DOLLAR_IN_LABEL) || !defined(NO_DOT_IN_LABEL) */
 
-/* Returns nonzero iff NODE is a declaration for the global function
-   `main'.  */
-#define DECL_MAIN_P(NODE)                              \
-   (DECL_EXTERN_C_FUNCTION_P (NODE)                    \
-    && DECL_NAME (NODE) != NULL_TREE                   \
-    && MAIN_NAME_P (DECL_NAME (NODE)))
-
 \f
 /* Nonzero if we're done parsing and into end-of-file activities.  */
 
This page took 0.080758 seconds and 5 git commands to generate.