Patchwork Two tiny C++ PATCHes

login
register
mail settings
Submitter Jason Merrill
Date Sept. 24, 2012, 3:49 p.m.
Message ID <50608106.3040406@redhat.com>
Download mbox | patch
Permalink /patch/186475/
State New
Headers show

Comments

Jason Merrill - Sept. 24, 2012, 3:49 p.m.
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.

Patch

commit bc4d28411e7d43df0f8fec4fee9c29bf7b1c975e
Author: Jason Merrill <jason@redhat.com>
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