This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[lto] Use alloc_parm_types in do_free_exception.


Hi,

Tested on x86_64-pc-linux-gnu.  Committed to the LTO branch as
obvious.

Kazu Hirata

2006-08-10  Kazu Hirata  <kazu@codesourcery.com>

	* except.c (do_free_exception): Use alloc_parm_types.

Index: cp/except.c
===================================================================
--- cp/except.c	(revision 116055)
+++ cp/except.c	(working copy)
@@ -553,8 +553,10 @@ do_free_exception (tree ptr)
   if (!get_global_value_if_present (fn, &fn))
     {
       /* Declare void __cxa_free_exception (void *).  */
-      fn = push_void_library_fn (fn, tree_cons (NULL_TREE, ptr_type_node,
-						void_list_node));
+      tree parm_types = alloc_parm_types (2);
+      *(nth_parm_type_ptr (parm_types, 0)) = ptr_type_node;
+      *(nth_parm_type_ptr (parm_types, 1)) = void_type_node;
+      fn = push_void_library_fn (fn, parm_types);
     }
 
   return build_function_call (fn, tree_cons (NULL_TREE, ptr, NULL_TREE));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]