genattrtab: Parenthesize expressions correctly (PR92107)
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 15 Oct 2019 23:47:47 +0000 (01:47 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 15 Oct 2019 23:47:47 +0000 (01:47 +0200)
commitf93701433432f27896183f57b82e9d2b22998c0f
treead862a9f925a8ec66792f00a7c5a2507e216c568
parent85093ac6c9f83d1b1206a21dcd0e243eacf69be9
genattrtab: Parenthesize expressions correctly (PR92107)

As PR92107 shows, genattrtab doesn't parenthesize expressions correctly
(or at all, even).  This fixes it.

PR rtl-optimization/92107
* genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
expression written.

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