decl.c (annotate_value): Use test on the sign bit instead of on the sign of the value.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 26 Jan 2019 11:34:39 +0000 (11:34 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 26 Jan 2019 11:34:39 +0000 (11:34 +0000)
commit03160cc9d6a54017ced6e3f8566649b63f42a040
tree23f7d23da445eb1212e1d218d8371c970fd44c9a
parent18f5df94df9a8abcbf9410c79c180de6f7b85f51
decl.c (annotate_value): Use test on the sign bit instead of on the sign of the value.

* gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Use test on
the sign bit instead of on the sign of the value.
<PLUS_EXPR>: Turn addition of negative constant into subtraction.
<MULT_EXPR>: Add test for degenerate case.
<BIT_AND_EXPR>: Simplify.

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