re PR c++/33506 (TYPE_RAISES_EXCEPTIONS dumped with attributes)
authorJakub Jelinek <jakub@redhat.com>
Mon, 24 Sep 2007 15:16:23 +0000 (17:16 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 24 Sep 2007 15:16:23 +0000 (17:16 +0200)
commit2dff8956e37c835db601f922cadc5b1229a0a6bd
treef797391d227e5aa4b01ffffd275aa29817b4403c
parentc946ce8bb9716d31286140dad73e0d3b9e48c36b
re PR c++/33506 (TYPE_RAISES_EXCEPTIONS dumped with attributes)

PR c++/33506
* langhooks.h (struct lang_hooks_for_types): Add type_hash_eq
field.
* langhooks-def.h (LANG_HOOKS_TYPE_HASH_EQ): Define.
(LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_TYPE_HASH_EQ.
* tree.c (type_hash_eq): For FUNCTION_TYPE use
lang_hooks.type.type_hash_eq in addition to generic tests.

* cp-tree.h (cxx_type_hash_eq): New prototype.
* cp-objcp-common.h (LANG_HOOKS_TYPE_HASH_EQ): Redefine.
* tree.c (cxx_type_hash_eq): New function.

* g++.dg/ext/attrib29.C: New test.

From-SVN: r128718
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.h
gcc/cp/cp-tree.h
gcc/cp/tree.c
gcc/langhooks-def.h
gcc/langhooks.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attrib29.C [new file with mode: 0644]
gcc/tree.c