aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2002-07-01 18:40:24 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2002-07-01 18:40:24 +0000
commit97ebc06f5d025e98046e8f0aff98a144fe1cfa17 (patch)
tree0269833309b77aba7f93b7a0b33c04469dc5577e /gcc
parent9035b63a1450f6465dcb0a3f2e20536232bd9453 (diff)
downloadgcc-97ebc06f5d025e98046e8f0aff98a144fe1cfa17.zip
gcc-97ebc06f5d025e98046e8f0aff98a144fe1cfa17.tar.gz
gcc-97ebc06f5d025e98046e8f0aff98a144fe1cfa17.tar.bz2
tree.c (build_function_type_list): Update function comment.
2002-07-01 Aldy Hernandez <aldyh@redhat.com> * tree.c (build_function_type_list): Update function comment. Rename first argument to return_type. From-SVN: r55141
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c15
2 files changed, 13 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1a67262..84b62a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-01 Aldy Hernandez <aldyh@redhat.com>
+
+ * tree.c (build_function_type_list): Update function comment.
+ Rename first argument to return_type.
+
2002-07-01 Neil Booth <neil@daikokuya.co.uk>
* Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
diff --git a/gcc/tree.c b/gcc/tree.c
index 78364e1..b307a94 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3801,17 +3801,18 @@ build_function_type (value_type, arg_types)
return t;
}
-/* Like build_function_type, but take a vararg list of nodes. The
- list of nodes should end with a NULL_TREE. This is typically used
- for creating function types for builtins. */
+/* Build a function type. The RETURN_TYPE is the type retured by the
+ function. If additional arguments are provided, they are
+ additional argument types. The list of argument types must always
+ be terminated by NULL_TREE. */
tree
-build_function_type_list VPARAMS ((tree first, ...))
+build_function_type_list VPARAMS ((tree return_type, ...))
{
tree t, args, last;
- VA_OPEN (p, first);
- VA_FIXEDARG (p, tree, first);
+ VA_OPEN (p, return_type);
+ VA_FIXEDARG (p, tree, return_type);
t = va_arg (p, tree);
for (args = NULL_TREE; t != NULL_TREE; t = va_arg (p, tree))
@@ -3820,7 +3821,7 @@ build_function_type_list VPARAMS ((tree first, ...))
last = args;
args = nreverse (args);
TREE_CHAIN (last) = void_list_node;
- args = build_function_type (first, args);
+ args = build_function_type (return_type, args);
VA_CLOSE (p);
return args;