]> git.ipfire.org Git - thirdparty/gcc.git/commit
fix frange_nextafter odr violation
authorAlexandre Oliva <oliva@adacore.com>
Tue, 13 Jun 2023 08:52:22 +0000 (05:52 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Tue, 13 Jun 2023 08:52:22 +0000 (05:52 -0300)
commitd438b67e005bf8fc9e4af26410bf69816c30e969
treea689745c70638c57d76ba2b1a0c19c17aeb22b09
parent0f3d07e16fec7bea2fd033d9ec8ff08ea7effa39
fix frange_nextafter odr violation

C++ requires inline functions to be declared inline and defined in
every translation unit that uses them.  frange_nextafter is used in
gimple-range-op.cc but it's only defined as inline in
range-op-float.cc.  Drop the extraneous inline specifier.

Other non-static inline functions in range-op-float.cc are not
referenced elsewhere, so I'm making them static.

for  gcc/ChangeLog

* range-op-float.cc (frange_nextafter): Drop inline.
(frelop_early_resolve): Add static.
(frange_float): Likewise.
gcc/range-op-float.cc