From patchwork Mon Sep 24 15:49:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Two tiny C++ PATCHes Date: Mon, 24 Sep 2012 05:49:26 -0000 From: Jason Merrill X-Patchwork-Id: 186475 Message-Id: <50608106.3040406@redhat.com> To: gcc-patches List 1) parser.o was missing a dependency on decl.h. 2) The assignment to fn_ptr_type was dead. Tested x86_64-pc-linux-gnu, applying to trunk. commit bc4d28411e7d43df0f8fec4fee9c29bf7b1c975e Author: Jason Merrill Date: Mon Sep 24 10:05:43 2012 -0400 * decl.c (get_atexit_node): Remove dead code. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 6b5b986..452f761 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6515,7 +6515,6 @@ get_atexit_node (void) fn_type = build_function_type_list (integer_type_node, argtype0, argtype1, argtype2, NULL_TREE); - fn_ptr_type = build_pointer_type (fn_type); if (use_aeabi_atexit) name = "__aeabi_atexit"; else