c-parser.c (c_parser_cast_expression): Only insert casts into hash table if pointer.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 5 May 2006 19:57:38 +0000 (19:57 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 5 May 2006 19:57:38 +0000 (19:57 +0000)
commit8d8d1a280135e6530e1d2eb42c5ff8b91a8f570c
tree31aff53c7f9388180b8f468318913668e9cb42be
parentb207220873a208cab0b8fea85bf5be77bcd15914
c-parser.c (c_parser_cast_expression): Only insert casts into hash table if pointer.

        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.

From-SVN: r113561
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]