]> git.ipfire.org Git - thirdparty/gcc.git/commit
Declare dconstm0 to go along with dconst0 and friends.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 12 Apr 2023 12:05:57 +0000 (14:05 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 18 Apr 2023 14:05:37 +0000 (16:05 +0200)
commit19cb965e9d16e875944a31173b5e79b65e25d0de
treeb2ca1f5272d8919ecac6ef2c7ddf25666e0e311d
parent278f8f567b5470e87e2e6482ee385d61c7f45a5d
Declare dconstm0 to go along with dconst0 and friends.

Negating dconst0 is getting pretty old, and we will keep adding copies
of the same idiom.  Fixed by adding a dconstm0 constant to go along
with dconst1, dconstm1, etc.

gcc/ChangeLog:

* emit-rtl.cc (init_emit_once): Initialize dconstm0.
* gimple-range-op.cc (class cfn_signbit): Remove dconstm0
declaration.
* range-op-float.cc (zero_range): Use dconstm0.
(zero_to_inf_range): Same.
* real.h (dconstm0): New.
* value-range.cc (frange::flush_denormals_to_zero): Use dconstm0.
(frange::set_zero): Do not declare dconstm0.
gcc/emit-rtl.cc
gcc/gimple-range-op.cc
gcc/range-op-float.cc
gcc/real.h
gcc/value-range.cc