This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix check for whether a function is a variadic function
- From: Jason Merrill <jason at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 19 Apr 2015 23:17:45 -0400
- Subject: Re: [PATCH] Fix check for whether a function is a variadic function
- Authentication-results: sourceware.org; auth=none
- References: <1429487100-12607-1-git-send-email-patrick at parcs dot ath dot cx>
On 04/19/2015 07:45 PM, Patrick Palka wrote:
stdarg_p() apparently returns false for a variadic function that has no
concrete parameters, e.g. "void foo (...);". This patch fixes this
issue by removing the predicate's seemingly bogus "n != NULL_TREE" test.
What does this do with K&R non-prototype declarations, e.g. "int main();"?
Jason