OSDN Git Service

* decl.c (grokfndecl): ::main and __builtin_* get C linkage.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Oct 1998 19:43:51 +0000 (19:43 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Oct 1998 19:43:51 +0000 (19:43 +0000)
commit16fd72fab67a4b3a320c99c65163a11e04ab2078
treeff389523064167bec47d1d00530d97b280e24d9b
parentd4820d7096be3e22080ab05cdf724b4de5907983
* decl.c (grokfndecl): ::main and __builtin_* get C linkage.
Do mangling here.
(grokdeclarator): Instead of here.
* friend.c (do_friend): Lose special handling of ::main and
__builtin_*.
* cp-tree.h (DECL_MAIN_P): Check for C linkage.
* spew.c (yylex): Clear looking_for_typename if we got
'enum { ... };'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23117 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/friend.c
gcc/cp/spew.c