diff --git a/gcc/ChangeLog b/gcc/ChangeLog index baa601b44c7..8b554dad550 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-11-08 Mark Mitchell + + * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for + unprototyped C functions with no parameters. + 2000-11-08 Jakub Jelinek * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int diff --git a/gcc/c-tree.texi b/gcc/c-tree.texi index 8af1429546b..56a2e25e211 100644 --- a/gcc/c-tree.texi +++ b/gcc/c-tree.texi @@ -543,6 +543,10 @@ is the @code{void_type_node}), then functions of this type do not take variable arguments. Otherwise, they do take a variable number of arguments. +Note that in C (but not in C++) a function declared like @code{void f()} +is an unprototyped function taking a variable number of arguments; the +@code{TYPE_ARG_TYPES} of such a function will be NULL. + @item METHOD_TYPE Used to represent the type of a non-static member function. Like a @code{FUNCTION_TYPE}, the return type is given by the @code{TREE_TYPE}.