Commit 5303129f by Richard Stallman

(unary_expr): Warn about overflows in parser-built unary expressions.

From-SVN: r3403
parent 90374cc2
...@@ -395,7 +395,8 @@ unary_expr: ...@@ -395,7 +395,8 @@ unary_expr:
{ $$ = $3; { $$ = $3;
pedantic = $<itype>1; } pedantic = $<itype>1; }
| unop cast_expr %prec UNARY | unop cast_expr %prec UNARY
{ $$ = build_unary_op ($1, $2, 0); } { $$ = build_unary_op ($1, $2, 0);
overflow_warning ($$); }
/* Refer to the address of a label as a pointer. */ /* Refer to the address of a label as a pointer. */
| ANDAND identifier | ANDAND identifier
{ tree label = lookup_label ($2); { tree label = lookup_label ($2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment