PR/21391
commit35df6eb4cf95a3b0bcecbca6d63e9d6e8d8e8bd0
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 May 2006 19:57:38 +0000 (5 19:57 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 May 2006 19:57:38 +0000 (5 19:57 +0000)
tree31aff53c7f9388180b8f468318913668e9cb42be
parented672485f9897c7c1e2c9901f875c1b6690aa35c
    PR/21391
        * c-parser.c (c_parser_cast_expression): Only insert casts into
        hash table if pointer.
        * function.c (used_types_insert_helper): Rename from
        used_types_insert.
        (used_types_insert): Call used_types_insert_helper.
        * function.h (used_types_insert): Accept only one argument.
        * cp/typeck.c (build_static_cast_1): Save casted types in used types
        hash table.
        (build_reinterpret_cast_1): Same.
        * cp/rtti.c (build_dynamic_cast_1): Same.
        * testsuite/g++.dg/other/unused1.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113561 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-parser.c
gcc/cp/ChangeLog
gcc/cp/rtti.c
gcc/cp/typeck.c
gcc/function.c
gcc/function.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/unused1.C [new file with mode: 0644]