]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/genattrtab.c
Reduce nesting of parentheses in conditionals generated by genattrtab
authorPatrick Palka <ppalka@gcc.gnu.org>
Wed, 27 Apr 2016 21:18:05 +0000 (21:18 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Wed, 27 Apr 2016 21:18:05 +0000 (21:18 +0000)
commit044a73da40c548ed472948f3138ebf54d69afb09
tree3c79d3a816a038909c373f70215421eeb621be64
parent565f407037aaae41f9111a76c9df7348caf12fb9
Reduce nesting of parentheses in conditionals generated by genattrtab

gcc/ChangeLog:

* genattrtab.c (write_test_expr): New parameter EMIT_PARENS
which defaults to true.  Emit an outer pair of parentheses only if
EMIT_PARENS.  When continuing a chain of && or || (or & or |),
don't emit parentheses for the right-hand operand.

From-SVN: r235536
gcc/ChangeLog
gcc/genattrtab.c