re PR c/35441 (pretty-printer cannot handle some expressions)
authorVolker Reichelt <v.reichelt@netcologne.de>
Tue, 9 May 2017 19:09:22 +0000 (19:09 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Tue, 9 May 2017 19:09:22 +0000 (19:09 +0000)
commit31c2d57d4a1439c8165ef95754ebc28bdc302166
treea81e55f587f1c4ae9fb2698bcb08e76432ca6583
parent731f2c8acb3fcecd1bab2557e1374148d67ed106
re PR c/35441 (pretty-printer cannot handle some expressions)

        PR c/35441
        * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
        MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
        (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
        (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
        RDIV_EXPR.
        (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.

        * gcc.dg/pr35441.c: New test.

From-SVN: r247810
gcc/c-family/ChangeLog
gcc/c-family/c-pretty-print.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr35441.c [new file with mode: 0644]