]> git.ipfire.org Git - thirdparty/gcc.git/commit
genattrtab: Parenthesize expressions correctly (PR92107)
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Oct 2019 23:47:47 +0000 (23:47 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Oct 2019 23:47:47 +0000 (23:47 +0000)
commit29d5845fd6498e64919aa026248349920f3775d8
treead862a9f925a8ec66792f00a7c5a2507e216c568
parent5725fb5e9f4a6404fa2a05ab95a68db24f51e1e3
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277023 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/genattrtab.c