This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Remove duplicate definition of DECL_MAIN_P in cp-tree.h
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 25 Nov 2005 16:09:00 +0100 (CET)
- Subject: [patch] Remove duplicate definition of DECL_MAIN_P in cp-tree.h
As noted by Andrew Pinski, there are two identical definitions of
DECL_MAIN_P in cp-tree.h. (The duplicate was introduced in GCC 3.0.)
The patch below removes the second one.
Bootstrapped and regtested on i686-pc-linux-gnu.
Ok for mainline?
Regards,
Volker
2005-11-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/24979
* cp-tree.h (DECL_MAIN_P): Remove duplicate definition.
===================================================================
--- gcc/gcc/cp/cp-tree.h (revision 107450)
+++ gcc/gcc/cp/cp-tree.h (working copy)
@@ -3274,13 +3274,6 @@
&& 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. */
===================================================================