aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2005-11-27 22:37:06 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2005-11-27 22:37:06 +0000
commitbebcccaef2289104cb70459925a43ffa16cecbf3 (patch)
treed27a216d29572a8c76dc2579c19852be283f5648
parenta0ba8cb101681c4bcfb0ca25dde1d433843d2086 (diff)
downloadgcc-bebcccaef2289104cb70459925a43ffa16cecbf3.zip
gcc-bebcccaef2289104cb70459925a43ffa16cecbf3.tar.gz
gcc-bebcccaef2289104cb70459925a43ffa16cecbf3.tar.bz2
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
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/cp-tree.h7
2 files changed, 5 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b6936aa..71f7d0b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 978a95f..86b98a0 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. */