decl.c (duplicate_decls): Use same_type_p.
authorJason Merrill <jason@yorick.cygnus.com>
Sun, 14 Mar 1999 01:29:36 +0000 (01:29 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 14 Mar 1999 01:29:36 +0000 (20:29 -0500)
commit407f03b8d71c2869f66877df32c9395c8e4fde18
tree45e7638ad30668c4227f064885621d3e26c31758
parent54206178b9468daa7639803e124bf662f1bf0b70
decl.c (duplicate_decls): Use same_type_p.

* decl.c (duplicate_decls): Use same_type_p.
* method.c (try_old_backref): Renamed from flush_repeats.  Use
same_type_p.  Don't try to handle repeats.  Return success.
(is_back_referenceable_type): Return 0 if TYPE_FOR_JAVA.  Support
calls from old-style code, too.
(check_ktype): Use same_type_p.
(check_btype): Use same_type_p.  Don't pull out TYPE_MAIN_VARIANT.
(build_qualified_name): Simplify logic.
(build_mangled_name_for_type_with_Gcode): Remove call to
type_canonical_variant.
(process_overload_item): Strip typedefs and quals at the top.
(build_mangled_name): Likewise.  Remove support for old-style
repeats, which have been disabled since 2.7.2.  Don't mess with
TREE_USED.
(build_decl_overload_real): Don't mess with TREE_USED.

From-SVN: r25758
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/method.c