tree.c (maybe_canonicalize_argtypes): New.
authorDouglas Gregor <doug.gregor@gmail.com>
Wed, 4 Jul 2007 06:32:30 +0000 (06:32 +0000)
committerDoug Gregor <dgregor@gcc.gnu.org>
Wed, 4 Jul 2007 06:32:30 +0000 (06:32 +0000)
commit8de08f4c8650d8b1b00901d0ada78ffd87a7cfa9
tree57e6f75b199598a710c4e2a6c1666ad20df96b3c
parent2d1a1007a08a449f45c830d78e955ed9bb2a23ca
tree.c (maybe_canonicalize_argtypes): New.

2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>

* tree.c (maybe_canonicalize_argtypes): New.
(build_function_type): Set canonical type.
(build_method_type_directly): Ditto.
(reconstruct_complex_type): Rebuild the METHOD_TYPE node
properly.

2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>

* decl.c (build_ptrmemfunc_type): Always use structural equality
tests when comparing pointer-to-member-function types, because the
handling of TYPE_GET_PTRMEMFUNC_TYPE currently defeats canonical
types.

From-SVN: r126303
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/tree.c