about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-08-06 14:16:53 -0400
committerTrevor Gross <tmgross@umich.edu>2024-08-07 03:24:55 -0500
commit6b3feb49c603096dd904a4689f2b57ba3ed6b27d (patch)
tree19d9f0484388f1a21b152156e4ab4b7f79a940da /compiler/rustc_codegen_llvm/src
parent60d146580c10036ce89e019422c6bc2fd9729b65 (diff)
downloadrust-6b3feb49c603096dd904a4689f2b57ba3ed6b27d.tar.gz
rust-6b3feb49c603096dd904a4689f2b57ba3ed6b27d.zip
Mark `{f32,f64}::{next_up,next_down,midpoint}` inline
Most float functions are marked `#[inline]` so any float symbols used by
these functions only need to be provided if the function itself is used.
RFL recently noticed that `next_up`, `next_down`, and `midpoint` for
`f32` and `f64` are not inline, which causes linker errors when building
with certain configurations [1].

Add the missing attributes so the symbols should no longer be required.

Cc: Gary Guo <gary@garyguo.net>
Reported-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/all/20240806150619.192882-1-ojeda@kernel.org/ [1]
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions