From a341df0a0d0fe21b48767e491799fbd6f2cea349 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 3 May 2011 15:37:53 +0000 Subject: [PATCH] picochip.c (picochip_init_builtins): Call build_function_type_list instead of build_function_type. * config/picochip/picochip.c (picochip_init_builtins): Call build_function_type_list instead of build_function_type. Delete `endlink' variable. From-SVN: r173312 --- gcc/ChangeLog | 6 +++++ gcc/config/picochip/picochip.c | 45 ++++++++++++++++++---------------- 2 files changed, 30 insertions(+), 21 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7202aea2d1..95d48d82b16 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-03 Nathan Froyd + + * config/picochip/picochip.c (picochip_init_builtins): Call + build_function_type_list instead of build_function_type. + Delete `endlink' variable. + 2011-05-03 Nathan Froyd * config/bfin/bfin.c (bfin_init_builtins): Call diff --git a/gcc/config/picochip/picochip.c b/gcc/config/picochip/picochip.c index cab639b2333..8c2a61bb7ef 100644 --- a/gcc/config/picochip/picochip.c +++ b/gcc/config/picochip/picochip.c @@ -4216,18 +4216,6 @@ void picochip_init_builtins (void) { tree noreturn; - tree endlink = void_list_node; - tree int_endlink = tree_cons (NULL_TREE, integer_type_node, endlink); - tree unsigned_endlink = tree_cons (NULL_TREE, unsigned_type_node, endlink); - tree long_endlink = tree_cons (NULL_TREE, long_integer_type_node, endlink); - tree int_int_endlink = - tree_cons (NULL_TREE, integer_type_node, int_endlink); - tree int_int_int_endlink = - tree_cons (NULL_TREE, integer_type_node, int_int_endlink); - tree int_long_endlink = - tree_cons (NULL_TREE, integer_type_node, long_endlink); - tree long_int_int_int_endlink = - tree_cons (NULL_TREE, long_integer_type_node, int_int_int_endlink); tree int_ftype_int, int_ftype_int_int; tree long_ftype_int, long_ftype_int_int_int; @@ -4236,36 +4224,51 @@ picochip_init_builtins (void) tree void_ftype_void, unsigned_ftype_unsigned; /* void func (void) */ - void_ftype_void = build_function_type (void_type_node, endlink); + void_ftype_void = build_function_type_list (void_type_node, NULL_TREE); /* int func (int) */ - int_ftype_int = build_function_type (integer_type_node, int_endlink); + int_ftype_int = build_function_type_list (integer_type_node, + integer_type_node, NULL_TREE); /* unsigned int func (unsigned int) */ - unsigned_ftype_unsigned = build_function_type (unsigned_type_node, unsigned_endlink); + unsigned_ftype_unsigned + = build_function_type_list (unsigned_type_node, + unsigned_type_node, NULL_TREE); /* int func(int, int) */ int_ftype_int_int - = build_function_type (integer_type_node, int_int_endlink); + = build_function_type_list (integer_type_node, + integer_type_node, integer_type_node, + NULL_TREE); /* long func(int) */ - long_ftype_int = build_function_type (long_integer_type_node, int_endlink); + long_ftype_int = build_function_type_list (long_integer_type_node, + integer_type_node, NULL_TREE); /* long func(int, int, int) */ long_ftype_int_int_int - = build_function_type (long_integer_type_node, int_int_int_endlink); + = build_function_type_list (long_integer_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, int_int_int_endlink); + = build_function_type_list (integer_type_node, + integer_type_node, integer_type_node, + integer_type_node, NULL_TREE); /* void func(int, long) */ void_ftype_int_long - = build_function_type (void_type_node, int_long_endlink); + = build_function_type_list (void_type_node, + integer_type_node, long_integer_type_node, + NULL_TREE); /* void func(long, int, int, int) */ void_ftype_long_int_int_int - = build_function_type (void_type_node, long_int_int_int_endlink); + = build_function_type_list (void_type_node, + long_integer_type_node, integer_type_node, + integer_type_node, integer_type_node, + NULL_TREE); /* Initialise the sign-bit-count function. */ add_builtin_function ("__builtin_sbc", int_ftype_int, -- 2.30.2