From: Doug Evans Date: Thu, 28 Apr 1994 16:39:50 +0000 (+0000) Subject: (expand_builtin): Fix typo in previous patch X-Git-Tag: misc/cutover-egcs-0~6779 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33162bebd8a1a87a3bca35d8f82eaa961d8ded02;p=thirdparty%2Fgcc.git (expand_builtin): Fix typo in previous patch (allow __builtin_next_arg in varargs functions). From-SVN: r7164 --- diff --git a/gcc/expr.c b/gcc/expr.c index b2ec8863a794..61fe3c1dee48 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -6912,10 +6912,10 @@ expand_builtin (exp, target, subtarget, mode, ignore) { tree fntype = TREE_TYPE (current_function_decl); - if (TYPE_ARG_TYPES (fntype) == 0 - || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype))) - == void_type_node) - || current_function_varargs) + if ((TYPE_ARG_TYPES (fntype) == 0 + || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype))) + == void_type_node)) + && ! current_function_varargs) { error ("`va_start' used in function with fixed args"); return const0_rtx;