zephyr/arch
Alberto Escolar Piedras d4e48d5feb POSIX arch: Fix literal floating comparison in 32bit targets
When building the 32bit native board targets variants
for x86(-64) hosts, gcc will promote float literals to double
(See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92875 )

This can result in unexpected comparison differences.

This is due to the compiler using the 8087 float mode by
default.
Instead let's tell the compiler to use the SSE float path,
which is the default for 64 bit x86-64 builds.

The assumption that any x86 host used for development
will have SSE support should be safe enough.

For more background see
https://github.com/zephyrproject-rtos/zephyr/issues/61345

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-08-14 13:37:27 +00:00
..
arc kernel: spinlock: LOCKED -> K_SPINLOCK 2023-07-10 09:27:21 +02:00
arm clang: Don't specify FP16 format 2023-08-01 11:24:07 +02:00
arm64 drivers: pm_cpu_ops: psci: provide sys_poweroff hook 2023-08-04 16:59:36 +02:00
common arch/common: Fix moving location counter backwards when using LLD 2023-07-14 12:08:02 +02:00
mips
nios2
posix POSIX arch: Fix literal floating comparison in 32bit targets 2023-08-14 13:37:27 +00:00
riscv riscv: renames shadow variables 2023-08-10 08:14:12 +00:00
sparc
x86 x86-64: Early TLS initialization 2023-08-08 19:08:04 -04:00
xtensa soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
CMakeLists.txt
Kconfig kernel: canaries: Allow using TLS to store it 2023-08-08 19:08:04 -04:00