llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.75k stars 11.89k forks source link

[Clang][PowerPC] Clang does not define soft float macros with `-msoft-float` #105972

Closed alexrp closed 1 month ago

alexrp commented 2 months ago

GCC defines at least _SOFT_FLOAT, _SOFT_DOUBLE, and __NO_FPRS__. Clang not defining these makes it impossible to build musl for PowerPC in soft float mode, for example.

llvmbot commented 2 months ago

@llvm/issue-subscribers-backend-powerpc

Author: Alex Rønne Petersen (alexrp)

GCC defines at least `_SOFT_FLOAT`, `_SOFT_DOUBLE`, and `__NO_FPRS__`. Clang not defining these makes it impossible to build musl for PowerPC in soft float mode, for example.
llvmbot commented 2 months ago

@llvm/issue-subscribers-clang-driver

Author: Alex Rønne Petersen (alexrp)

GCC defines at least `_SOFT_FLOAT`, `_SOFT_DOUBLE`, and `__NO_FPRS__`. Clang not defining these makes it impossible to build musl for PowerPC in soft float mode, for example.