Re: [PATCH] fix frange_nextafter odr violation

2023-06-09 Thread Richard Biener via Gcc-patches
On Fri, Jun 9, 2023 at 2:26 PM Alexandre Oliva wrote: > > On Jun 9, 2023, Richard Biener wrote: > > > On Thu, Jun 8, 2023 at 4:38 PM Alexandre Oliva via Gcc-patches > > wrote: > > >> C++ requires inline functions to be declared inline and defined in > >> every translation unit that uses them.

Re: [PATCH] fix frange_nextafter odr violation

2023-06-09 Thread Alexandre Oliva via Gcc-patches
On Jun 9, 2023, Richard Biener wrote: > On Thu, Jun 8, 2023 at 4:38 PM Alexandre Oliva via Gcc-patches > wrote: >> 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 defin

Re: [PATCH] fix frange_nextafter odr violation

2023-06-09 Thread Richard Biener via Gcc-patches
On Thu, Jun 8, 2023 at 4:38 PM Alexandre Oliva via Gcc-patches wrote: > > > 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 th