]> git.ipfire.org Git - thirdparty/gcc.git/commit
decl.c (annotate_value): Really test the sign of the value when deciding to build...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 11 Oct 2019 08:57:58 +0000 (08:57 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 11 Oct 2019 08:57:58 +0000 (08:57 +0000)
commita49f79b7a949aa50cd97eb96b5eb4339c27288a8
tree93c1f595bb08c81ecb395e5d6718e007dd79e3a3
parentf439d7065fc072d5c0823c3ea4641159e01fed98
decl.c (annotate_value): Really test the sign of the value when deciding to build a NEGATE_EXPR.

* gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Really test the
sign of the value when deciding to build a NEGATE_EXPR.
<PLUS_EXPR>: Remove redundant line.
<BIT_AND_EXPR>: Do the negation here.

From-SVN: r276869
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c