aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1994-04-28 16:39:50 +0000
committerDoug Evans <dje@gnu.org>1994-04-28 16:39:50 +0000
commit33162bebd8a1a87a3bca35d8f82eaa961d8ded02 (patch)
tree73d570995e645d45923783515c49d3f0c87da5eb /gcc/expr.c
parent7d91bb4ebfb38a7aee1d977234dbe93e38eb3f25 (diff)
downloadgcc-33162bebd8a1a87a3bca35d8f82eaa961d8ded02.zip
gcc-33162bebd8a1a87a3bca35d8f82eaa961d8ded02.tar.gz
gcc-33162bebd8a1a87a3bca35d8f82eaa961d8ded02.tar.bz2
(expand_builtin): Fix typo in previous patch
(allow __builtin_next_arg in varargs functions). From-SVN: r7164
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index b2ec8863..61fe3c1 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;