aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2006-05-05 19:57:38 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2006-05-05 19:57:38 +0000
commit8d8d1a280135e6530e1d2eb42c5ff8b91a8f570c (patch)
tree31aff53c7f9388180b8f468318913668e9cb42be /gcc/function.h
parentb207220873a208cab0b8fea85bf5be77bcd15914 (diff)
downloadgcc-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.h2
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 */