From 475e85347d79a1c6b7c5ea6c63dd25f05bd7cfdb Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 18 Apr 1993 03:37:03 +0000 Subject: (unary_expr): Delete the alternate REALPART and IMAGPART rules with explicit parens. (unary_expr): Delete the alternate REALPART and IMAGPART rules with explicit parens. Make the simple REALPART and IMAGPART rules contain cast_expr. From-SVN: r4179 --- gcc/c-parse.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gcc') diff --git a/gcc/c-parse.in b/gcc/c-parse.in index b46cb4c..0693371 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -445,14 +445,10 @@ unary_expr: { $$ = c_alignof_expr ($2); } | ALIGNOF '(' typename ')' %prec HYPERUNARY { $$ = c_alignof (groktypename ($3)); } - | REALPART unary_expr %prec UNARY + | REALPART cast_expr %prec UNARY { $$ = build_unary_op (REALPART_EXPR, $2, 0); } - | IMAGPART unary_expr %prec UNARY + | IMAGPART cast_expr %prec UNARY { $$ = build_unary_op (IMAGPART_EXPR, $2, 0); } - | REALPART '(' unary_expr ')' %prec HYPERUNARY - { $$ = build_unary_op (REALPART_EXPR, $3, 0); } - | IMAGPART '(' unary_expr ')' %prec HYPERUNARY - { $$ = build_unary_op (IMAGPART_EXPR, $3, 0); } ; cast_expr: -- cgit v1.1