diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-19 17:43:54 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-19 17:43:54 +0000 |
commit | 2debc264ae3dbd8f41209f21eaff88881341dc47 (patch) | |
tree | 379e706639fac601c7a33fba9b6597855c065b16 /libjava/resolve.cc | |
parent | e657e37cec7eef18fa89712083ad48c76a10fab6 (diff) | |
download | ppe42-gcc-2debc264ae3dbd8f41209f21eaff88881341dc47.tar.gz ppe42-gcc-2debc264ae3dbd8f41209f21eaff88881341dc47.zip |
Handle anonymous unions at the tree level.
C++ ABI change: Mangle anonymous unions using the name of their
first named field (by depth-first search). Should not cause
binary compatibility problems, though, as the compiler previously
didn't emit anything for affected unions.
* cp-tree.def (ALIAS_DECL): New tree code.
* decl2.c (build_anon_union_vars): Build ALIAS_DECLs. Return the
first field, not the largest.
(finish_anon_union): Don't mess with RTL. Do set DECL_ASSEMBLER_NAME,
push the decl, and write it out at namespace scope.
* decl.c (lookup_name_real): See through an ALIAS_DECL.
(pushdecl): Add namespace bindings for ALIAS_DECLs.
* rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name
of a decl which doesn't have one.
* typeck.c (build_class_member_access_expr): Don't recurse if
we already have the type we want.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60315 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/resolve.cc')
0 files changed, 0 insertions, 0 deletions