[libc-commits] [PATCH] D148739: [libc] Use __builtin_bit_cast only when src and dest types are trivially copyable

Alex Bradbury via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Apr 19 22:56:46 PDT 2023


asb added a comment.

In case it's helpful, I'll note you can force enable int128 support for rv32 clang with `-fforce-enable-int128`. This is a bit of a hacky solution to allow building compiler-rt for RV32 (which relies heavily in int128_t for its long double routines - I believe this wasn't an issue for other 32-bit architectures as RV32 is fairly unique in having sizeof(long double) == 16 rather than 8. GCC doesn't have such an option though, so avoiding that compiler option is probably preferable.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148739/new/

https://reviews.llvm.org/D148739



More information about the libc-commits mailing list