diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2010-05-12 15:53:39 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-05-12 15:53:39 +0000 |
commit | 1df439077d1f123c12e9947dc56a749d5a44d1f8 (patch) | |
tree | ebd6158388ab0aee8a5fa7649044f5793d5a6fa0 /gcc | |
parent | f9b36bb32f30e9f39221122f9c7a2d524f316ecf (diff) | |
download | gcc-1df439077d1f123c12e9947dc56a749d5a44d1f8.zip gcc-1df439077d1f123c12e9947dc56a749d5a44d1f8.tar.gz gcc-1df439077d1f123c12e9947dc56a749d5a44d1f8.tar.bz2 |
tree-mudflap.c (build_function_type_0, [...]): Remove.
* tree-mudflap.c (build_function_type_0, build_function_type_1,
build_function_type_2, build_function_type_3): Remove.
(mudflap_init): Use build_function_type_list.
Co-Authored-By: Nathan Froyd <froydnj@codesourcery.com>
From-SVN: r159328
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tree-mudflap.c | 34 |
2 files changed, 13 insertions, 28 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44924d8..8fb04d5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,13 @@ 2010-05-12 Kazu Hirata <kazu@codesourcery.com> Nathan Froyd <froydnj@codesourcery.com> + * tree-mudflap.c (build_function_type_0, build_function_type_1, + build_function_type_2, build_function_type_3): Remove. + (mudflap_init): Use build_function_type_list. + +2010-05-12 Kazu Hirata <kazu@codesourcery.com> + Nathan Froyd <froydnj@codesourcery.com> + * coverage.c (build_fn_info_value): Call build_constructor instead of build_constructor_from_list. (build_ctr_info_value): Likewise. diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index 590f7c3..8938800 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -332,24 +332,6 @@ mf_make_mf_cache_struct_type (tree field_type) return struct_type; } -#define build_function_type_0(rtype) \ - build_function_type (rtype, void_list_node) -#define build_function_type_1(rtype, arg1) \ - build_function_type (rtype, tree_cons (0, arg1, void_list_node)) -#define build_function_type_3(rtype, arg1, arg2, arg3) \ - build_function_type (rtype, \ - tree_cons (0, arg1, \ - tree_cons (0, arg2, \ - tree_cons (0, arg3, \ - void_list_node)))) -#define build_function_type_4(rtype, arg1, arg2, arg3, arg4) \ - build_function_type (rtype, \ - tree_cons (0, arg1, \ - tree_cons (0, arg2, \ - tree_cons (0, arg3, \ - tree_cons (0, arg4, \ - void_list_node))))) - /* Initialize the global tree nodes that correspond to mf-runtime.h declarations. */ void @@ -377,15 +359,15 @@ mudflap_init (void) mf_cache_structptr_type = build_pointer_type (mf_cache_struct_type); mf_cache_array_type = build_array_type (mf_cache_struct_type, 0); mf_check_register_fntype = - build_function_type_4 (void_type_node, ptr_type_node, size_type_node, - integer_type_node, mf_const_string_type); + build_function_type_list (void_type_node, ptr_type_node, size_type_node, + integer_type_node, mf_const_string_type, NULL_TREE); mf_unregister_fntype = - build_function_type_3 (void_type_node, ptr_type_node, size_type_node, - integer_type_node); + build_function_type_list (void_type_node, ptr_type_node, size_type_node, + integer_type_node, NULL_TREE); mf_init_fntype = - build_function_type_0 (void_type_node); + build_function_type_list (void_type_node, NULL_TREE); mf_set_options_fntype = - build_function_type_1 (integer_type_node, mf_const_string_type); + build_function_type_list (integer_type_node, mf_const_string_type, NULL_TREE); mf_cache_array_decl = mf_make_builtin (VAR_DECL, "__mf_lookup_cache", mf_cache_array_type); @@ -409,10 +391,6 @@ mudflap_init (void) mf_set_options_fndecl = mf_make_builtin (FUNCTION_DECL, "__mf_set_options", mf_set_options_fntype); } -#undef build_function_type_4 -#undef build_function_type_3 -#undef build_function_type_1 -#undef build_function_type_0 /* ------------------------------------------------------------------------ */ |