From 7791247664583a58c7580c54ebba4e1e0629ffc7 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 29 Sep 1996 19:02:58 -0400 Subject: [PATCH] (yylex): Add new arg, TYPE, to call to build_complex. From-SVN: r12864 --- gcc/c-lex.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 966d5efa23f..d8e9e80da40 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -1465,7 +1465,8 @@ yylex () /* Create a node with determined type and value. */ if (imag) - yylval.ttype = build_complex (convert (type, integer_zero_node), + yylval.ttype = build_complex (NULL_TREE, + convert (type, integer_zero_node), build_real (type, value)); else yylval.ttype = build_real (type, value); @@ -1634,8 +1635,9 @@ yylex () if (TYPE_PRECISION (type) <= TYPE_PRECISION (integer_type_node)) yylval.ttype - = build_complex (integer_zero_node, - convert (integer_type_node, yylval.ttype)); + = build_complex (NULL_TREE, integer_zero_node, + convert (integer_type_node, + yylval.ttype)); else error ("complex integer constant is too wide for `complex int'"); } -- 2.30.2