From: Volker Reichelt Date: Sun, 27 Nov 2005 22:37:06 +0000 (+0000) Subject: re PR c++/24979 (DECL_MAIN_P is declared twice in cp-tree.h) X-Git-Tag: releases/gcc-4.2.0~5719 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=bebcccaef2289104cb70459925a43ffa16cecbf3;p=gcc.git re PR c++/24979 (DECL_MAIN_P is declared twice in cp-tree.h) PR c++/24979 * cp-tree.h (DECL_MAIN_P): Remove duplicate definition. From-SVN: r107578 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b6936aa1e3cb..71f7d0bb44da 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-11-27 Volker Reichelt + + PR c++/24979 + * cp-tree.h (DECL_MAIN_P): Remove duplicate definition. + 2005-11-26 Richard Henderson * lex.c: Update for pragma_lex rename. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 978a95f85af4..86b98a0776c6 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -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))) - /* Nonzero if we're done parsing and into end-of-file activities. */