frv.c (frv_init_builtins): Delete `endlink' variable.
authorNathan Froyd <froydnj@codesourcery.com>
Thu, 21 Apr 2011 20:14:21 +0000 (20:14 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Thu, 21 Apr 2011 20:14:21 +0000 (20:14 +0000)
* config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
Call builtin_function_type_list instead of builtin_function_type.
(UNARY, BINARY, TRINARY, QUAD): Likewise.

From-SVN: r172842

gcc/ChangeLog
gcc/config/frv/frv.c

index e9af41cc7983ddd65fb16d3174c0fe79b6e216d5..3dd9f19d90ebc15901333693fc995f63a02f04c6 100644 (file)
@@ -1,3 +1,9 @@
+2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
+       Call builtin_function_type_list instead of builtin_function_type.
+       (UNARY, BINARY, TRINARY, QUAD): Likewise.
+
 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
 
        * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
index 9e2f7189b1bc4ff086bf9cf43ac1789f910dc3b6..ddd3fa03a07822e649ca2ed652f21bae72a920fa 100644 (file)
@@ -8392,7 +8392,6 @@ static struct builtin_description bdesc_stores[] =
 static void
 frv_init_builtins (void)
 {
-  tree endlink = void_list_node;
   tree accumulator = integer_type_node;
   tree integer = integer_type_node;
   tree voidt = void_type_node;
@@ -8407,24 +8406,18 @@ frv_init_builtins (void)
   tree iacc   = integer_type_node;
 
 #define UNARY(RET, T1) \
-  build_function_type (RET, tree_cons (NULL_TREE, T1, endlink))
+  build_function_type_list (RET, T1, NULL_TREE)
 
 #define BINARY(RET, T1, T2) \
-  build_function_type (RET, tree_cons (NULL_TREE, T1, \
-                           tree_cons (NULL_TREE, T2, endlink)))
+  build_function_type_list (RET, T1, T2, NULL_TREE)
 
 #define TRINARY(RET, T1, T2, T3) \
-  build_function_type (RET, tree_cons (NULL_TREE, T1, \
-                           tree_cons (NULL_TREE, T2, \
-                           tree_cons (NULL_TREE, T3, endlink))))
+  build_function_type_list (RET, T1, T2, T3, NULL_TREE)
 
 #define QUAD(RET, T1, T2, T3, T4) \
-  build_function_type (RET, tree_cons (NULL_TREE, T1, \
-                           tree_cons (NULL_TREE, T2, \
-                           tree_cons (NULL_TREE, T3, \
-                           tree_cons (NULL_TREE, T4, endlink)))))
+  build_function_type_list (RET, T1, T2, T3, NULL_TREE)
 
-  tree void_ftype_void = build_function_type (voidt, endlink);
+  tree void_ftype_void = build_function_type_list (voidt, NULL_TREE);
 
   tree void_ftype_acc = UNARY (voidt, accumulator);
   tree void_ftype_uw4_uw1 = BINARY (voidt, uword4, uword1);