cp-tree.h (MAIN_NAME_P): New macro.
authorMark Mitchell <mmitchell@usa.net>
Wed, 20 May 1998 10:04:25 +0000 (10:04 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 20 May 1998 10:04:25 +0000 (10:04 +0000)
commit3568074438b66ec38030db7e1a604158f73fc630
treea65451c103401649edab63a17b403de48f8b42ca
parent3e98dfd1cb277152daf7d1b2146fb9f0386f75f3
cp-tree.h (MAIN_NAME_P): New macro.

* cp-tree.h (MAIN_NAME_P): New macro.
(DECL_MAIN_P): Likwise.
* decl.c (pushdecl): Avoid crashing on redefinitions of `main'.
(grokfndecl): Use the new macros.
(grokdeclarator): Likewise.
(start_function): Likewise.
(store_parm_decls): Likewise.
(finsh_function): Likewise.
* friend.c (do_friend): Likewise.
* typeck.c (build_function_call_real): Likewise.
(build_unary_op): Likewise.

From-SVN: r19907
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/friend.c
gcc/cp/typeck.c