aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-11-08 19:05:08 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-11-08 19:05:08 +0000
commitc39c0db36cf7fa0ff4c71d47b33ea8f8acee67ab (patch)
tree13c9c933931e07a51cbd3aaf5b93f19c16d0b1d8 /gcc
parent6cada0cd7de6e3270af99022e893d7bb087e641c (diff)
downloadgcc-c39c0db36cf7fa0ff4c71d47b33ea8f8acee67ab.zip
gcc-c39c0db36cf7fa0ff4c71d47b33ea8f8acee67ab.tar.gz
gcc-c39c0db36cf7fa0ff4c71d47b33ea8f8acee67ab.tar.bz2
c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for unprototyped C functions with no parameters.
* c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for unprototyped C functions with no parameters. From-SVN: r37321
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-tree.texi4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index baa601b..8b554da 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-08 Mark Mitchell <mark@codesourcery.com>
+
+ * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
+ unprototyped C functions with no parameters.
+
2000-11-08 Jakub Jelinek <jakub@redhat.com>
* 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 8af1429..56a2e25 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}.