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:18 +0000 (08:57 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 11 Oct 2019 08:57:18 +0000 (08:57 +0000)
commit05626b02e8d02720771d361677b1d6cc38df9ddc
tree94c3f94377f4d1e8177698edacad64458991477e
parent43b60e578393cc58f1d75387b811cc90bc74297b
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: r276866
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c