From: Nathan Froyd Date: Tue, 3 May 2011 15:40:26 +0000 (+0000) Subject: i2000.c (iq2000_init_builtins): Call build_function_type_list instead of build_functi... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=baeec5f2d8cbfffb7414eebd012683c5f32faefe;p=gcc.git i2000.c (iq2000_init_builtins): Call build_function_type_list instead of build_function_type. * config/iq2000/i2000.c (iq2000_init_builtins): Call build_function_type_list instead of build_function_type. Delete `endlink' variable. From-SVN: r173314 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2835b9d8ff4..a564ac616e2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-03 Nathan Froyd + + * config/iq2000/i2000.c (iq2000_init_builtins): Call + build_function_type_list instead of build_function_type. + Delete `endlink' variable. + 2011-05-03 Nathan Froyd * config/avr/avr.c (avr_init_builtins): Call diff --git a/gcc/config/iq2000/iq2000.c b/gcc/config/iq2000/iq2000.c index 2d6908545db..aa63674c470 100644 --- a/gcc/config/iq2000/iq2000.c +++ b/gcc/config/iq2000/iq2000.c @@ -2466,7 +2466,6 @@ iq2000_output_conditional_branch (rtx insn, rtx * operands, int two_operands_p, static void iq2000_init_builtins (void) { - tree endlink = void_list_node; tree void_ftype, void_ftype_int, void_ftype_int_int; tree void_ftype_int_int_int; tree int_ftype_int, int_ftype_int_int, int_ftype_int_int_int; @@ -2474,76 +2473,55 @@ iq2000_init_builtins (void) /* func () */ void_ftype - = build_function_type (void_type_node, - tree_cons (NULL_TREE, void_type_node, endlink)); + = build_function_type_list (void_type_node, NULL_TREE); /* func (int) */ void_ftype_int - = build_function_type (void_type_node, - tree_cons (NULL_TREE, integer_type_node, endlink)); + = build_function_type_list (void_type_node, integer_type_node, NULL_TREE); /* void func (int, int) */ void_ftype_int_int - = build_function_type (void_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - endlink))); + = build_function_type_list (void_type_node, + integer_type_node, + integer_type_node, + NULL_TREE); /* int func (int) */ int_ftype_int - = build_function_type (integer_type_node, - tree_cons (NULL_TREE, integer_type_node, endlink)); + = build_function_type_list (integer_type_node, + integer_type_node, NULL_TREE); /* int func (int, int) */ int_ftype_int_int - = build_function_type (integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - endlink))); + = build_function_type_list (integer_type_node, + integer_type_node, + integer_type_node, + NULL_TREE); /* void func (int, int, int) */ -void_ftype_int_int_int - = build_function_type - (void_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, - integer_type_node, - endlink)))); - - /* int func (int, int, int, int) */ - int_ftype_int_int_int_int - = build_function_type - (integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, - integer_type_node, - tree_cons (NULL_TREE, - integer_type_node, - endlink))))); + void_ftype_int_int_int + = build_function_type_list (void_type_node, + integer_type_node, + integer_type_node, + integer_type_node, + NULL_TREE); /* int func (int, int, int) */ int_ftype_int_int_int - = build_function_type - (integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, - integer_type_node, - endlink)))); + = build_function_type_list (integer_type_node, + integer_type_node, + integer_type_node, + integer_type_node, + NULL_TREE); /* int func (int, int, int, int) */ int_ftype_int_int_int_int - = build_function_type - (integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, integer_type_node, - tree_cons (NULL_TREE, - integer_type_node, - tree_cons (NULL_TREE, - integer_type_node, - endlink))))); + = build_function_type_list (integer_type_node, + integer_type_node, + integer_type_node, + integer_type_node, + integer_type_node, + NULL_TREE); def_builtin ("__builtin_ado16", int_ftype_int_int, IQ2000_BUILTIN_ADO16); def_builtin ("__builtin_ram", int_ftype_int_int_int_int, IQ2000_BUILTIN_RAM);