[libcp1] handle anon aggregates linkage-named by typedefs
commita57c52b8d3231e21eb23c9a8d545551949b90751
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Apr 2017 03:28:31 +0000 (15 03:28 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Apr 2017 03:28:31 +0000 (15 03:28 +0000)
tree4d33781a146f21c9564a837fd95a447a96ac847c
parentce326081d5bfd49f173a3a8f6549384e545be0ae
[libcp1] handle anon aggregates linkage-named by typedefs

Arrange for the first typedef to an anonymous type in the same context
to be used as the linkage name for the type.

for  gcc/cp/ChangeLog

* decl.c (name_unnamed_type): Split out of...
(grokdeclarator): ... this.
* decl.h (name_unnamed_type): Declare.

for  libcc1/ChangeLog

* libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246938 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl.h
libcc1/ChangeLog
libcc1/libcp1plugin.cc