diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2006-05-05 19:57:38 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2006-05-05 19:57:38 +0000 |
commit | 8d8d1a280135e6530e1d2eb42c5ff8b91a8f570c (patch) | |
tree | 31aff53c7f9388180b8f468318913668e9cb42be /gcc/function.h | |
parent | b207220873a208cab0b8fea85bf5be77bcd15914 (diff) | |
download | gcc-8d8d1a280135e6530e1d2eb42c5ff8b91a8f570c.zip gcc-8d8d1a280135e6530e1d2eb42c5ff8b91a8f570c.tar.gz gcc-8d8d1a280135e6530e1d2eb42c5ff8b91a8f570c.tar.bz2 |
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
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.h b/gcc/function.h index bce5290..6329525 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -576,6 +576,6 @@ extern bool pass_by_reference (CUMULATIVE_ARGS *, enum machine_mode, extern bool reference_callee_copied (CUMULATIVE_ARGS *, enum machine_mode, tree, bool); -extern void used_types_insert (tree, struct function *); +extern void used_types_insert (tree); #endif /* GCC_FUNCTION_H */ |